diff --git a/Cargo.toml b/Cargo.toml index 1596d38..c770280 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "keycloak" -version = "25.0.400" +version = "26.0.0" authors = ["Alexander Korolev "] edition = "2021" categories = ["api-bindings", "asynchronous"] diff --git a/README.md b/README.md index bf6d73b..debfc90 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Dual-licensed under `MIT` or the [UNLICENSE](http://unlicense.org/). ## Features -Implements [Keycloak Admin REST API version 25.0.4](https://www.keycloak.org/docs-api/25.0.4/rest-api/index.html). +Implements [Keycloak Admin REST API version 26.0.0](https://www.keycloak.org/docs-api/26.0.0/rest-api/index.html). ### Feature flags @@ -24,7 +24,7 @@ Add dependency to Cargo.toml: ```toml [dependencies] -keycloak = "25.0" +keycloak = "26.0" ``` ```rust diff --git a/api/openapi.json b/api/openapi.json index a96fac1..8b5a2a2 100644 --- a/api/openapi.json +++ b/api/openapi.json @@ -7124,6 +7124,13 @@ "schema" : { "type" : "string" } + }, { + "name" : "briefRepresentation", + "in" : "query", + "description" : "Boolean which defines whether brief representations are returned (default: false)", + "schema" : { + "type" : "boolean" + } }, { "name" : "first", "in" : "query", @@ -9208,6 +9215,13 @@ "format" : "int32", "type" : "integer" } + }, { + "name" : "realmOnly", + "in" : "query", + "description" : "Boolean which defines if only realm-level IDPs (not associated with orgs) should be returned (default: false)", + "schema" : { + "type" : "boolean" + } }, { "name" : "search", "in" : "query", @@ -10856,6 +10870,13 @@ "schema" : { "type" : "string" } + }, { + "name" : "briefRepresentation", + "in" : "query", + "description" : "Boolean which defines whether brief representations are returned (default: false)", + "schema" : { + "type" : "boolean" + } }, { "name" : "first", "in" : "query", @@ -13922,6 +13943,9 @@ "provider" : { "type" : "string" }, + "parent" : { + "type" : "string" + }, "config" : { "type" : "object", "additionalProperties" : { @@ -14536,12 +14560,18 @@ "linkOnly" : { "type" : "boolean" }, + "hideOnLogin" : { + "type" : "boolean" + }, "firstBrokerLoginFlowAlias" : { "type" : "string" }, "postBrokerLoginFlowAlias" : { "type" : "string" }, + "organizationId" : { + "type" : "string" + }, "config" : { "type" : "object", "additionalProperties" : { @@ -14716,6 +14746,149 @@ } } }, + "MemberRepresentation" : { + "type" : "object", + "properties" : { + "id" : { + "type" : "string" + }, + "username" : { + "type" : "string" + }, + "firstName" : { + "type" : "string" + }, + "lastName" : { + "type" : "string" + }, + "email" : { + "type" : "string" + }, + "emailVerified" : { + "type" : "boolean" + }, + "attributes" : { + "type" : "object", + "additionalProperties" : { + "type" : "array", + "items" : { + "type" : "string" + } + } + }, + "userProfileMetadata" : { + "$ref" : "#/components/schemas/UserProfileMetadata" + }, + "self" : { + "type" : "string" + }, + "origin" : { + "type" : "string" + }, + "createdTimestamp" : { + "format" : "int64", + "type" : "integer" + }, + "enabled" : { + "type" : "boolean" + }, + "totp" : { + "type" : "boolean" + }, + "federationLink" : { + "type" : "string" + }, + "serviceAccountClientId" : { + "type" : "string" + }, + "credentials" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/CredentialRepresentation" + } + }, + "disableableCredentialTypes" : { + "uniqueItems" : true, + "type" : "array", + "items" : { + "type" : "string" + } + }, + "requiredActions" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "federatedIdentities" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/FederatedIdentityRepresentation" + } + }, + "realmRoles" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "clientRoles" : { + "type" : "object", + "additionalProperties" : { + "type" : "array", + "items" : { + "type" : "string" + } + } + }, + "clientConsents" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/UserConsentRepresentation" + } + }, + "notBefore" : { + "format" : "int32", + "type" : "integer" + }, + "applicationRoles" : { + "type" : "object", + "additionalProperties" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "deprecated" : true + }, + "socialLinks" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/SocialLinkRepresentation" + }, + "deprecated" : true + }, + "groups" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "access" : { + "type" : "object", + "additionalProperties" : { + "type" : "boolean" + } + }, + "membershipType" : { + "$ref" : "#/components/schemas/MembershipType" + } + } + }, + "MembershipType" : { + "enum" : [ "UNMANAGED", "MANAGED" ], + "type" : "string" + }, "MethodConfig" : { "type" : "object", "properties" : { @@ -14955,12 +15128,18 @@ "name" : { "type" : "string" }, + "alias" : { + "type" : "string" + }, "enabled" : { "type" : "boolean" }, "description" : { "type" : "string" }, + "redirectUrl" : { + "type" : "string" + }, "attributes" : { "type" : "object", "additionalProperties" : { @@ -14980,7 +15159,7 @@ "members" : { "type" : "array", "items" : { - "$ref" : "#/components/schemas/UserRepresentation" + "$ref" : "#/components/schemas/MemberRepresentation" } }, "identityProviders" : { diff --git a/src/lib.rs b/src/lib.rs index ea92a81..82f82b5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,7 @@ Dual-licensed under `MIT` or the [UNLICENSE](http://unlicense.org/). ## Features -Implements [Keycloak Admin REST API version 25.0.4](https://www.keycloak.org/docs-api/25.0.4/rest-api/index.html). +Implements [Keycloak Admin REST API version 26.0.0](https://www.keycloak.org/docs-api/26.0.0/rest-api/index.html). ### Feature flags @@ -25,7 +25,7 @@ Add dependency to Cargo.toml: ```toml [dependencies] -keycloak = "25.0" +keycloak = "26.0" ``` ```rust, no_run @@ -118,4 +118,4 @@ pub use error::KeycloakError; pub use rest::{ KeycloakAdmin, KeycloakAdminToken, KeycloakServiceAccountAdminTokenRetriever, KeycloakTokenSupplier, -}; \ No newline at end of file +}; diff --git a/src/rest/generated_rest.rs b/src/rest/generated_rest.rs index d47eac5..e6f365f 100644 --- a/src/rest/generated_rest.rs +++ b/src/rest/generated_rest.rs @@ -16,7 +16,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/attack-detection/brute-force/users` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-attack-detection")] pub async fn realm_attack_detection_brute_force_users_delete( &self, @@ -46,7 +46,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/attack-detection/brute-force/users/{user_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/attack-detection/brute-force/users/{userId}` #[cfg(feature = "tag-attack-detection")] @@ -79,7 +79,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/attack-detection/brute-force/users/{user_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/attack-detection/brute-force/users/{userId}` #[cfg(feature = "tag-attack-detection")] @@ -114,7 +114,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/authenticator-providers` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_authenticator_providers_get( &self, @@ -142,7 +142,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/client-authenticator-providers` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_client_authenticator_providers_get( &self, @@ -173,7 +173,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/config` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] #[deprecated] pub async fn realm_authentication_config_post( @@ -205,7 +205,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/config-description/{provider_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/authentication/config-description/{providerId}` #[cfg(feature = "tag-authentication-management")] @@ -238,7 +238,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/config/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_config_with_id_get( &self, @@ -270,7 +270,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/authentication/config/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_config_with_id_put( &self, @@ -304,7 +304,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/authentication/config/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_config_with_id_delete( &self, @@ -338,7 +338,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/executions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_executions_post( &self, @@ -369,7 +369,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/executions/{execution_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/authentication/executions/{executionId}` #[cfg(feature = "tag-authentication-management")] @@ -402,7 +402,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/authentication/executions/{execution_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/authentication/executions/{executionId}` #[cfg(feature = "tag-authentication-management")] @@ -439,7 +439,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/executions/{execution_id}/config` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/authentication/executions/{executionId}/config` #[cfg(feature = "tag-authentication-management")] @@ -475,7 +475,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/executions/{execution_id}/config/{id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/authentication/executions/{executionId}/config/{id}` #[cfg(feature = "tag-authentication-management")] @@ -513,7 +513,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/executions/{execution_id}/lower-priority` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/authentication/executions/{executionId}/lower-priority` #[cfg(feature = "tag-authentication-management")] @@ -548,7 +548,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/executions/{execution_id}/raise-priority` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/authentication/executions/{executionId}/raise-priority` #[cfg(feature = "tag-authentication-management")] @@ -580,7 +580,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/flows` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_flows_get( &self, @@ -611,7 +611,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/flows` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_flows_post( &self, @@ -645,7 +645,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/flows/{flow_alias}/copy` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/authentication/flows/{flowAlias}/copy` #[cfg(feature = "tag-authentication-management")] @@ -680,7 +680,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/flows/{flow_alias}/executions` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/authentication/flows/{flowAlias}/executions` #[cfg(feature = "tag-authentication-management")] @@ -714,7 +714,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/authentication/flows/{flow_alias}/executions` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/authentication/flows/{flowAlias}/executions` #[cfg(feature = "tag-authentication-management")] @@ -753,7 +753,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/flows/{flow_alias}/executions/execution` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/authentication/flows/{flowAlias}/executions/execution` #[cfg(feature = "tag-authentication-management")] @@ -791,7 +791,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/flows/{flow_alias}/executions/flow` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/authentication/flows/{flowAlias}/executions/flow` #[cfg(feature = "tag-authentication-management")] @@ -826,7 +826,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/flows/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_flows_with_id_get( &self, @@ -858,7 +858,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/authentication/flows/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_flows_with_id_put( &self, @@ -892,7 +892,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/authentication/flows/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_flows_with_id_delete( &self, @@ -923,7 +923,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/form-action-providers` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_form_action_providers_get( &self, @@ -951,7 +951,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/form-providers` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_form_providers_get( &self, @@ -979,7 +979,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/per-client-config-description` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_per_client_config_description_get( &self, @@ -1010,7 +1010,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/register-required-action` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_register_required_action_post( &self, @@ -1040,7 +1040,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/required-actions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_required_actions_get( &self, @@ -1069,7 +1069,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/required-actions/{alias}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_required_actions_with_alias_get( &self, @@ -1101,7 +1101,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/authentication/required-actions/{alias}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_required_actions_with_alias_put( &self, @@ -1135,7 +1135,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/authentication/required-actions/{alias}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_required_actions_with_alias_delete( &self, @@ -1167,7 +1167,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/required-actions/{alias}/config` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_required_actions_with_alias_config_get( &self, @@ -1199,7 +1199,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/authentication/required-actions/{alias}/config` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_required_actions_with_alias_config_put( &self, @@ -1233,7 +1233,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/authentication/required-actions/{alias}/config` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_required_actions_with_alias_config_delete( &self, @@ -1265,7 +1265,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/required-actions/{alias}/config-description` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_required_actions_with_alias_config_description_get( &self, @@ -1298,7 +1298,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/required-actions/{alias}/lower-priority` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_required_actions_with_alias_lower_priority_post( &self, @@ -1331,7 +1331,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/required-actions/{alias}/raise-priority` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_required_actions_with_alias_raise_priority_post( &self, @@ -1361,7 +1361,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/unregistered-required-actions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_unregistered_required_actions_get( &self, @@ -1393,7 +1393,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/certificates/{attr}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}` #[cfg(feature = "tag-client-attribute-certificate")] @@ -1430,7 +1430,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/certificates/{attr}/download` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/download` #[cfg(feature = "tag-client-attribute-certificate")] @@ -1468,7 +1468,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/certificates/{attr}/generate` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate` #[cfg(feature = "tag-client-attribute-certificate")] @@ -1508,7 +1508,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/certificates/{attr}/generate-and-download` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate-and-download` #[cfg(feature = "tag-client-attribute-certificate")] @@ -1546,7 +1546,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/certificates/{attr}/upload` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload` #[cfg(feature = "tag-client-attribute-certificate")] @@ -1582,7 +1582,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/certificates/{attr}/upload-certificate` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload-certificate` #[cfg(feature = "tag-client-attribute-certificate")] @@ -1616,7 +1616,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients-initial-access` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-initial-access")] pub async fn realm_clients_initial_access_get( &self, @@ -1645,7 +1645,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients-initial-access` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-initial-access")] pub async fn realm_clients_initial_access_post( &self, @@ -1674,7 +1674,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients-initial-access/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-initial-access")] pub async fn realm_clients_initial_access_with_id_delete( &self, @@ -1707,7 +1707,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-registration-policy/providers` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-registration-policy")] pub async fn realm_client_registration_policy_providers_get( &self, @@ -1739,7 +1739,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{group_id}/role-mappings/clients/{client_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}` #[cfg(feature = "tag-client-role-mappings")] @@ -1778,7 +1778,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/groups/{group_id}/role-mappings/clients/{client_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}` #[cfg(feature = "tag-client-role-mappings")] @@ -1817,7 +1817,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/groups/{group_id}/role-mappings/clients/{client_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}` #[cfg(feature = "tag-client-role-mappings")] @@ -1856,7 +1856,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{group_id}/role-mappings/clients/{client_id}/available` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}/available` #[cfg(feature = "tag-client-role-mappings")] @@ -1893,7 +1893,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{group_id}/role-mappings/clients/{client_id}/composite` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}/composite` #[cfg(feature = "tag-client-role-mappings")] @@ -1933,7 +1933,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{user_id}/role-mappings/clients/{client_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}` #[cfg(feature = "tag-client-role-mappings")] @@ -1972,7 +1972,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{user_id}/role-mappings/clients/{client_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}` #[cfg(feature = "tag-client-role-mappings")] @@ -2011,7 +2011,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{user_id}/role-mappings/clients/{client_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}` #[cfg(feature = "tag-client-role-mappings")] @@ -2050,7 +2050,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{user_id}/role-mappings/clients/{client_id}/available` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}/available` #[cfg(feature = "tag-client-role-mappings")] @@ -2087,7 +2087,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{user_id}/role-mappings/clients/{client_id}/composite` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}/composite` #[cfg(feature = "tag-client-role-mappings")] @@ -2127,7 +2127,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_scopes_get( &self, @@ -2155,7 +2155,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-scopes` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_scopes_post( &self, @@ -2183,7 +2183,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-scopes/{client-scope-id}` #[cfg(feature = "tag-client-scopes")] @@ -2217,7 +2217,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/client-scopes/{client-scope-id}` #[cfg(feature = "tag-client-scopes")] @@ -2253,7 +2253,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/client-scopes/{client-scope-id}` #[cfg(feature = "tag-client-scopes")] @@ -2286,7 +2286,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_templates_get( &self, @@ -2317,7 +2317,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-templates` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_templates_post( &self, @@ -2348,7 +2348,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-templates/{client-scope-id}` #[cfg(feature = "tag-client-scopes")] @@ -2382,7 +2382,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/client-templates/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/client-templates/{client-scope-id}` #[cfg(feature = "tag-client-scopes")] @@ -2418,7 +2418,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-templates/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/client-templates/{client-scope-id}` #[cfg(feature = "tag-client-scopes")] @@ -2459,7 +2459,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] #[allow(clippy::too_many_arguments)] pub async fn realm_clients_get( @@ -2512,7 +2512,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_post( &self, @@ -2540,7 +2540,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}` #[cfg(feature = "tag-clients")] @@ -2574,7 +2574,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{client_uuid}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{client-uuid}` #[cfg(feature = "tag-clients")] @@ -2610,7 +2610,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{client_uuid}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{client-uuid}` #[cfg(feature = "tag-clients")] @@ -2644,7 +2644,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/client-secret` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/client-secret` #[cfg(feature = "tag-clients")] @@ -2677,7 +2677,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/client-secret` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/client-secret` #[cfg(feature = "tag-clients")] @@ -2710,7 +2710,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/client-secret/rotated` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/client-secret/rotated` #[cfg(feature = "tag-clients")] @@ -2743,7 +2743,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{client_uuid}/client-secret/rotated` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{client-uuid}/client-secret/rotated` #[cfg(feature = "tag-clients")] @@ -2777,7 +2777,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/default-client-scopes` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/default-client-scopes` #[cfg(feature = "tag-clients")] @@ -2809,7 +2809,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{client_uuid}/default-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{client-uuid}/default-client-scopes/{clientScopeId}` #[cfg(feature = "tag-clients")] @@ -2845,7 +2845,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{client_uuid}/default-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{client-uuid}/default-client-scopes/{clientScopeId}` #[cfg(feature = "tag-clients")] @@ -2883,7 +2883,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/evaluate-scopes/generate-example-access-token` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-access-token` #[cfg(feature = "tag-clients")] @@ -2926,7 +2926,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/evaluate-scopes/generate-example-id-token` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-id-token` #[cfg(feature = "tag-clients")] @@ -2969,7 +2969,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/evaluate-scopes/generate-example-userinfo` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-userinfo` #[cfg(feature = "tag-clients")] @@ -3011,7 +3011,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/evaluate-scopes/protocol-mappers` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/protocol-mappers` #[cfg(feature = "tag-clients")] @@ -3050,7 +3050,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/evaluate-scopes/scope-mappings/{role_container_id}/granted` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/scope-mappings/{roleContainerId}/granted` #[cfg(feature = "tag-clients")] @@ -3091,7 +3091,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/evaluate-scopes/scope-mappings/{role_container_id}/not-granted` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted` #[cfg(feature = "tag-clients")] @@ -3129,7 +3129,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/installation/providers/{provider_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/installation/providers/{providerId}` #[cfg(feature = "tag-clients")] @@ -3165,7 +3165,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/management/permissions` #[cfg(feature = "tag-clients")] @@ -3199,7 +3199,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{client_uuid}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{client-uuid}/management/permissions` #[cfg(feature = "tag-clients")] @@ -3237,7 +3237,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/nodes` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/nodes` #[cfg(feature = "tag-clients")] @@ -3273,7 +3273,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{client_uuid}/nodes/{node}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{client-uuid}/nodes/{node}` #[cfg(feature = "tag-clients")] @@ -3309,7 +3309,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/offline-session-count` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/offline-session-count` #[cfg(feature = "tag-clients")] @@ -3344,7 +3344,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/offline-sessions` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/offline-sessions` #[cfg(feature = "tag-clients")] @@ -3385,7 +3385,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/optional-client-scopes` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes` #[cfg(feature = "tag-clients")] @@ -3417,7 +3417,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{client_uuid}/optional-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes/{clientScopeId}` #[cfg(feature = "tag-clients")] @@ -3453,7 +3453,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{client_uuid}/optional-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes/{clientScopeId}` #[cfg(feature = "tag-clients")] @@ -3489,7 +3489,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/push-revocation` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/push-revocation` #[cfg(feature = "tag-clients")] @@ -3522,7 +3522,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/registration-access-token` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/registration-access-token` #[cfg(feature = "tag-clients")] @@ -3555,7 +3555,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/service-account-user` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/service-account-user` #[cfg(feature = "tag-clients")] @@ -3588,7 +3588,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/session-count` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/session-count` #[cfg(feature = "tag-clients")] @@ -3621,7 +3621,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/test-nodes-available` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/test-nodes-available` #[cfg(feature = "tag-clients")] @@ -3656,7 +3656,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/user-sessions` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/user-sessions` #[cfg(feature = "tag-clients")] @@ -3699,7 +3699,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/components` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-component")] pub async fn realm_components_get( &self, @@ -3737,7 +3737,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/components` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-component")] pub async fn realm_components_post( &self, @@ -3763,7 +3763,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/components/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-component")] pub async fn realm_components_with_id_get( &self, @@ -3793,7 +3793,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/components/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-component")] pub async fn realm_components_with_id_put( &self, @@ -3825,7 +3825,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/components/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-component")] pub async fn realm_components_with_id_delete( &self, @@ -3858,7 +3858,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/components/{id}/sub-component-types` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-component")] pub async fn realm_components_with_id_sub_component_types_get( &self, @@ -3901,7 +3901,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] #[allow(clippy::too_many_arguments)] pub async fn realm_groups_get( @@ -3958,7 +3958,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/groups` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_post( &self, @@ -3987,7 +3987,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/count` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_count_get( &self, @@ -4019,7 +4019,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{group_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/groups/{group-id}` #[cfg(feature = "tag-groups")] @@ -4053,7 +4053,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/groups/{group_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/groups/{group-id}` #[cfg(feature = "tag-groups")] @@ -4087,7 +4087,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/groups/{group_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/groups/{group-id}` #[cfg(feature = "tag-groups")] @@ -4126,7 +4126,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{group_id}/children` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/groups/{group-id}/children` #[cfg(feature = "tag-groups")] @@ -4183,7 +4183,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/groups/{group_id}/children` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/groups/{group-id}/children` #[cfg(feature = "tag-groups")] @@ -4218,7 +4218,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{group_id}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/groups/{group-id}/management/permissions` #[cfg(feature = "tag-groups")] @@ -4252,7 +4252,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/groups/{group_id}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/groups/{group-id}/management/permissions` #[cfg(feature = "tag-groups")] @@ -4290,7 +4290,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{group_id}/members` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/groups/{group-id}/members` #[cfg(feature = "tag-groups")] @@ -4337,7 +4337,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/identity-provider/import-config` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_import_config_post( &self, @@ -4365,13 +4365,14 @@ impl KeycloakAdmin { /// - `brief_representation`: Boolean which defines whether brief representations are returned (default: false) /// - `first`: Pagination offset /// - `max`: Maximum results size (defaults to 100) + /// - `realm_only`: Boolean which defines if only realm-level IDPs (not associated with orgs) should be returned (default: false) /// - `search`: Filter specific providers by name. Search can be prefix (name*), contains (*name*) or exact ("name"). Default prefixed. /// /// Resource: `Identity Providers` /// /// `GET /admin/realms/{realm}/identity-provider/instances` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_get( &self, @@ -4379,6 +4380,7 @@ impl KeycloakAdmin { brief_representation: Option, first: Option, max: Option, + realm_only: Option, search: Option, ) -> Result, KeycloakError> { let realm = p(realm); @@ -4398,6 +4400,9 @@ impl KeycloakAdmin { if let Some(v) = max { builder = builder.query(&[("max", v)]); } + if let Some(v) = realm_only { + builder = builder.query(&[("realmOnly", v)]); + } if let Some(v) = search { builder = builder.query(&[("search", v)]); } @@ -4418,7 +4423,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/identity-provider/instances` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_post( &self, @@ -4449,7 +4454,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/identity-provider/instances/{alias}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_get( &self, @@ -4481,7 +4486,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/identity-provider/instances/{alias}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_put( &self, @@ -4515,7 +4520,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/identity-provider/instances/{alias}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_delete( &self, @@ -4548,7 +4553,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/identity-provider/instances/{alias}/export` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_export_get( &self, @@ -4584,7 +4589,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_management_permissions_get( &self, @@ -4616,7 +4621,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_management_permissions_put( &self, @@ -4649,7 +4654,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/identity-provider/instances/{alias}/mapper-types` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_mapper_types_get( &self, @@ -4680,7 +4685,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/identity-provider/instances/{alias}/mappers` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_mappers_get( &self, @@ -4714,7 +4719,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/identity-provider/instances/{alias}/mappers` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_mappers_post( &self, @@ -4748,7 +4753,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_mappers_with_id_get( &self, @@ -4783,7 +4788,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_mappers_with_id_put( &self, @@ -4820,7 +4825,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_mappers_with_id_delete( &self, @@ -4854,7 +4859,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/identity-provider/instances/{alias}/reload-keys` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_reload_keys_get( &self, @@ -4885,7 +4890,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/identity-provider/providers/{provider_id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_providers_with_provider_id_get( &self, @@ -4915,7 +4920,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/keys` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-key")] pub async fn realm_keys_get( &self, @@ -4946,7 +4951,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-scopes/{client_scope_id}/protocol-mappers/add-models` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/add-models` #[cfg(feature = "tag-protocol-mappers")] @@ -4981,7 +4986,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{client_scope_id}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models` #[cfg(feature = "tag-protocol-mappers")] @@ -5017,7 +5022,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-scopes/{client_scope_id}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models` #[cfg(feature = "tag-protocol-mappers")] @@ -5053,7 +5058,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{client_scope_id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id}` #[cfg(feature = "tag-protocol-mappers")] @@ -5090,7 +5095,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/client-scopes/{client_scope_id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id}` #[cfg(feature = "tag-protocol-mappers")] @@ -5129,7 +5134,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-scopes/{client_scope_id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id}` #[cfg(feature = "tag-protocol-mappers")] @@ -5166,7 +5171,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{client_scope_id}/protocol-mappers/protocol/{protocol}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/protocol/{protocol}` #[cfg(feature = "tag-protocol-mappers")] @@ -5204,7 +5209,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-templates/{client_scope_id}/protocol-mappers/add-models` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/add-models` #[cfg(feature = "tag-protocol-mappers")] @@ -5239,7 +5244,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{client_scope_id}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models` #[cfg(feature = "tag-protocol-mappers")] @@ -5275,7 +5280,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-templates/{client_scope_id}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models` #[cfg(feature = "tag-protocol-mappers")] @@ -5311,7 +5316,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{client_scope_id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models/{id}` #[cfg(feature = "tag-protocol-mappers")] @@ -5348,7 +5353,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/client-templates/{client_scope_id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models/{id}` #[cfg(feature = "tag-protocol-mappers")] @@ -5387,7 +5392,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-templates/{client_scope_id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models/{id}` #[cfg(feature = "tag-protocol-mappers")] @@ -5424,7 +5429,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{client_scope_id}/protocol-mappers/protocol/{protocol}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/protocol/{protocol}` #[cfg(feature = "tag-protocol-mappers")] @@ -5462,7 +5467,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/protocol-mappers/add-models` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/add-models` #[cfg(feature = "tag-protocol-mappers")] @@ -5497,7 +5502,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models` #[cfg(feature = "tag-protocol-mappers")] @@ -5533,7 +5538,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models` #[cfg(feature = "tag-protocol-mappers")] @@ -5569,7 +5574,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models/{id}` #[cfg(feature = "tag-protocol-mappers")] @@ -5606,7 +5611,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{client_uuid}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models/{id}` #[cfg(feature = "tag-protocol-mappers")] @@ -5645,7 +5650,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{client_uuid}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models/{id}` #[cfg(feature = "tag-protocol-mappers")] @@ -5682,7 +5687,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/protocol-mappers/protocol/{protocol}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/protocol/{protocol}` #[cfg(feature = "tag-protocol-mappers")] @@ -5718,7 +5723,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn get( &self, @@ -5747,7 +5752,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn post( &self, @@ -5772,7 +5777,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_get(&self, realm: &str) -> Result { let realm = p(realm); @@ -5795,7 +5800,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_put( &self, @@ -5823,7 +5828,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_delete(&self, realm: &str) -> Result<(), KeycloakError> { let realm = p(realm); @@ -5857,7 +5862,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/admin-events` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] #[allow(clippy::too_many_arguments)] pub async fn realm_admin_events_get( @@ -5935,7 +5940,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/admin-events` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_admin_events_delete(&self, realm: &str) -> Result<(), KeycloakError> { let realm = p(realm); @@ -5959,7 +5964,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-description-converter` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_client_description_converter_post( &self, @@ -5988,7 +5993,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-policies/policies` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_client_policies_policies_get( &self, @@ -6019,7 +6024,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/client-policies/policies` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_client_policies_policies_put( &self, @@ -6049,7 +6054,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-policies/profiles` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_client_policies_profiles_get( &self, @@ -6080,7 +6085,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/client-policies/profiles` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_client_policies_profiles_put( &self, @@ -6111,7 +6116,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-session-stats` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_client_session_stats_get( &self, @@ -6139,7 +6144,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-types` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_client_types_get( &self, @@ -6165,7 +6170,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/client-types` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_client_types_put( &self, @@ -6191,7 +6196,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/credential-registrators` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_credential_registrators_get( &self, @@ -6219,7 +6224,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/default-default-client-scopes` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_default_default_client_scopes_get( &self, @@ -6246,7 +6251,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/default-default-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/default-default-client-scopes/{clientScopeId}` #[cfg(feature = "tag-realms-admin")] @@ -6279,7 +6284,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/default-default-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/default-default-client-scopes/{clientScopeId}` #[cfg(feature = "tag-realms-admin")] @@ -6312,7 +6317,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/default-groups` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_default_groups_get( &self, @@ -6336,7 +6341,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/default-groups/{group_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/default-groups/{groupId}` #[cfg(feature = "tag-realms-admin")] @@ -6369,7 +6374,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/default-groups/{group_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/default-groups/{groupId}` #[cfg(feature = "tag-realms-admin")] @@ -6402,7 +6407,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/default-optional-client-scopes` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_default_optional_client_scopes_get( &self, @@ -6429,7 +6434,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/default-optional-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}` #[cfg(feature = "tag-realms-admin")] @@ -6462,7 +6467,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/default-optional-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}` #[cfg(feature = "tag-realms-admin")] @@ -6503,7 +6508,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/events` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] #[allow(clippy::too_many_arguments)] pub async fn realm_events_get( @@ -6561,7 +6566,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/events` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_events_delete(&self, realm: &str) -> Result<(), KeycloakError> { let realm = p(realm); @@ -6584,7 +6589,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/events/config` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_events_config_get( &self, @@ -6608,7 +6613,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/events/config` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_events_config_put( &self, @@ -6635,7 +6640,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/group-by-path/{path}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_group_by_path_with_path_get( &self, @@ -6663,7 +6668,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/localization` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_localization_get( &self, @@ -6688,7 +6693,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/localization/{locale}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_localization_with_locale_get( &self, @@ -6726,7 +6731,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/localization/{locale}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_localization_with_locale_post( &self, @@ -6757,7 +6762,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/localization/{locale}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_localization_with_locale_delete( &self, @@ -6788,7 +6793,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/localization/{locale}/{key}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_localization_with_locale_with_key_get( &self, @@ -6821,7 +6826,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/localization/{locale}/{key}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_localization_with_locale_with_key_put( &self, @@ -6856,7 +6861,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/localization/{locale}/{key}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_localization_with_locale_with_key_delete( &self, @@ -6889,7 +6894,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/logout-all` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_logout_all_post( &self, @@ -6918,7 +6923,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/partial-export` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_partial_export_post( &self, @@ -6954,7 +6959,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/partialImport` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_partial_import_post( &self, @@ -6981,7 +6986,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/push-revocation` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_push_revocation_post( &self, @@ -7011,7 +7016,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/sessions/{session}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_sessions_with_session_delete( &self, @@ -7049,7 +7054,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/testSMTPConnection` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] #[deprecated] pub async fn realm_test_smtp_connection_post( @@ -7078,7 +7083,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users-management-permissions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_users_management_permissions_get( &self, @@ -7105,7 +7110,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users-management-permissions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_users_management_permissions_put( &self, @@ -7138,7 +7143,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{group_id}/role-mappings` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/groups/{group-id}/role-mappings` #[cfg(feature = "tag-role-mapper")] @@ -7171,7 +7176,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{group_id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/groups/{group-id}/role-mappings/realm` #[cfg(feature = "tag-role-mapper")] @@ -7207,7 +7212,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/groups/{group_id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/groups/{group-id}/role-mappings/realm` #[cfg(feature = "tag-role-mapper")] @@ -7243,7 +7248,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/groups/{group_id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/groups/{group-id}/role-mappings/realm` #[cfg(feature = "tag-role-mapper")] @@ -7279,7 +7284,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{group_id}/role-mappings/realm/available` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/groups/{group-id}/role-mappings/realm/available` #[cfg(feature = "tag-role-mapper")] @@ -7313,7 +7318,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{group_id}/role-mappings/realm/composite` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/groups/{group-id}/role-mappings/realm/composite` #[cfg(feature = "tag-role-mapper")] @@ -7350,7 +7355,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{user_id}/role-mappings` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{user-id}/role-mappings` #[cfg(feature = "tag-role-mapper")] @@ -7383,7 +7388,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{user_id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{user-id}/role-mappings/realm` #[cfg(feature = "tag-role-mapper")] @@ -7419,7 +7424,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{user_id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/users/{user-id}/role-mappings/realm` #[cfg(feature = "tag-role-mapper")] @@ -7455,7 +7460,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{user_id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/users/{user-id}/role-mappings/realm` #[cfg(feature = "tag-role-mapper")] @@ -7491,7 +7496,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{user_id}/role-mappings/realm/available` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{user-id}/role-mappings/realm/available` #[cfg(feature = "tag-role-mapper")] @@ -7525,7 +7530,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{user_id}/role-mappings/realm/composite` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{user-id}/role-mappings/realm/composite` #[cfg(feature = "tag-role-mapper")] @@ -7568,7 +7573,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/roles` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/roles` #[cfg(feature = "tag-roles")] @@ -7620,7 +7625,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/roles` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/roles` #[cfg(feature = "tag-roles")] @@ -7656,7 +7661,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/roles/{role_name}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}` #[cfg(feature = "tag-roles")] @@ -7693,7 +7698,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{client_uuid}/roles/{role_name}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}` #[cfg(feature = "tag-roles")] @@ -7732,7 +7737,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{client_uuid}/roles/{role_name}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}` #[cfg(feature = "tag-roles")] @@ -7769,7 +7774,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/roles/{role_name}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites` #[cfg(feature = "tag-roles")] @@ -7808,7 +7813,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/roles/{role_name}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites` #[cfg(feature = "tag-roles")] @@ -7847,7 +7852,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{client_uuid}/roles/{role_name}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites` #[cfg(feature = "tag-roles")] @@ -7886,7 +7891,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/roles/{role_name}/composites/clients/{client_uuid}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/clients/{client-uuid}` #[cfg(feature = "tag-roles")] @@ -7922,7 +7927,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/roles/{role_name}/composites/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/realm` #[cfg(feature = "tag-roles")] @@ -7961,7 +7966,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/roles/{role_name}/groups` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/groups` #[cfg(feature = "tag-roles")] @@ -8009,7 +8014,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/roles/{role_name}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/management/permissions` #[cfg(feature = "tag-roles")] @@ -8046,7 +8051,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{client_uuid}/roles/{role_name}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/management/permissions` #[cfg(feature = "tag-roles")] @@ -8079,6 +8084,7 @@ impl KeycloakAdmin { /// - `realm`: realm name (not id!) /// - `client_uuid`: id of client (not client-id!) /// - `role_name`: the role name. + /// - `brief_representation`: Boolean which defines whether brief representations are returned (default: false) /// - `first`: first result to return. Ignored if negative or {@code null}. /// - `max`: maximum number of results to return. Ignored if negative or {@code null}. /// @@ -8086,7 +8092,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/roles/{role_name}/users` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/users` #[cfg(feature = "tag-roles")] @@ -8095,6 +8101,7 @@ impl KeycloakAdmin { realm: &str, client_uuid: &str, role_name: &str, + brief_representation: Option, first: Option, max: Option, ) -> Result, KeycloakError> { @@ -8108,6 +8115,9 @@ impl KeycloakAdmin { self.url )) .bearer_auth(self.token_supplier.get(&self.url).await?); + if let Some(v) = brief_representation { + builder = builder.query(&[("briefRepresentation", v)]); + } if let Some(v) = first { builder = builder.query(&[("first", v)]); } @@ -8132,7 +8142,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-roles")] pub async fn realm_roles_get( &self, @@ -8176,7 +8186,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/roles` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-roles")] pub async fn realm_roles_post( &self, @@ -8204,7 +8214,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles/{role_name}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles/{role-name}` #[cfg(feature = "tag-roles")] @@ -8238,7 +8248,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/roles/{role_name}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/roles/{role-name}` #[cfg(feature = "tag-roles")] @@ -8274,7 +8284,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/roles/{role_name}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/roles/{role-name}` #[cfg(feature = "tag-roles")] @@ -8308,7 +8318,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles/{role_name}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles/{role-name}/composites` #[cfg(feature = "tag-roles")] @@ -8344,7 +8354,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/roles/{role_name}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/roles/{role-name}/composites` #[cfg(feature = "tag-roles")] @@ -8380,7 +8390,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/roles/{role_name}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/roles/{role-name}/composites` #[cfg(feature = "tag-roles")] @@ -8417,7 +8427,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles/{role_name}/composites/clients/{client_uuid}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles/{role-name}/composites/clients/{client-uuid}` #[cfg(feature = "tag-roles")] @@ -8452,7 +8462,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles/{role_name}/composites/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles/{role-name}/composites/realm` #[cfg(feature = "tag-roles")] @@ -8488,7 +8498,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles/{role_name}/groups` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles/{role-name}/groups` #[cfg(feature = "tag-roles")] @@ -8533,7 +8543,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles/{role_name}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles/{role-name}/management/permissions` #[cfg(feature = "tag-roles")] @@ -8567,7 +8577,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/roles/{role_name}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/roles/{role-name}/management/permissions` #[cfg(feature = "tag-roles")] @@ -8597,6 +8607,7 @@ impl KeycloakAdmin { /// /// - `realm`: realm name (not id!) /// - `role_name`: the role name. + /// - `brief_representation`: Boolean which defines whether brief representations are returned (default: false) /// - `first`: first result to return. Ignored if negative or {@code null}. /// - `max`: maximum number of results to return. Ignored if negative or {@code null}. /// @@ -8604,7 +8615,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles/{role_name}/users` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles/{role-name}/users` #[cfg(feature = "tag-roles")] @@ -8612,6 +8623,7 @@ impl KeycloakAdmin { &self, realm: &str, role_name: &str, + brief_representation: Option, first: Option, max: Option, ) -> Result, KeycloakError> { @@ -8624,6 +8636,9 @@ impl KeycloakAdmin { self.url )) .bearer_auth(self.token_supplier.get(&self.url).await?); + if let Some(v) = brief_representation { + builder = builder.query(&[("briefRepresentation", v)]); + } if let Some(v) = first { builder = builder.query(&[("first", v)]); } @@ -8647,7 +8662,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles-by-id/{role_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles-by-id/{role-id}` #[cfg(feature = "tag-roles-by-id")] @@ -8681,7 +8696,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/roles-by-id/{role_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/roles-by-id/{role-id}` #[cfg(feature = "tag-roles-by-id")] @@ -8717,7 +8732,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/roles-by-id/{role_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/roles-by-id/{role-id}` #[cfg(feature = "tag-roles-by-id")] @@ -8754,7 +8769,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles-by-id/{role_id}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles-by-id/{role-id}/composites` #[cfg(feature = "tag-roles-by-id")] @@ -8802,7 +8817,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/roles-by-id/{role_id}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/roles-by-id/{role-id}/composites` #[cfg(feature = "tag-roles-by-id")] @@ -8838,7 +8853,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/roles-by-id/{role_id}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/roles-by-id/{role-id}/composites` #[cfg(feature = "tag-roles-by-id")] @@ -8875,7 +8890,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles-by-id/{role_id}/composites/clients/{client_uuid}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles-by-id/{role-id}/composites/clients/{clientUuid}` #[cfg(feature = "tag-roles-by-id")] @@ -8910,7 +8925,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles-by-id/{role_id}/composites/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles-by-id/{role-id}/composites/realm` #[cfg(feature = "tag-roles-by-id")] @@ -8943,7 +8958,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles-by-id/{role_id}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles-by-id/{role-id}/management/permissions` #[cfg(feature = "tag-roles-by-id")] @@ -8977,7 +8992,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/roles-by-id/{role_id}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/roles-by-id/{role-id}/management/permissions` #[cfg(feature = "tag-roles-by-id")] @@ -9014,7 +9029,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{client_scope_id}/scope-mappings` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings` #[cfg(feature = "tag-scope-mappings")] @@ -9049,7 +9064,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{client_scope_id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}` #[cfg(feature = "tag-scope-mappings")] @@ -9088,7 +9103,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-scopes/{client_scope_id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}` #[cfg(feature = "tag-scope-mappings")] @@ -9127,7 +9142,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-scopes/{client_scope_id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}` #[cfg(feature = "tag-scope-mappings")] @@ -9166,7 +9181,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{client_scope_id}/scope-mappings/clients/{client}/available` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}/available` #[cfg(feature = "tag-scope-mappings")] @@ -9203,7 +9218,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{client_scope_id}/scope-mappings/clients/{client}/composite` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}/composite` #[cfg(feature = "tag-scope-mappings")] @@ -9242,7 +9257,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{client_scope_id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm` #[cfg(feature = "tag-scope-mappings")] @@ -9278,7 +9293,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-scopes/{client_scope_id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm` #[cfg(feature = "tag-scope-mappings")] @@ -9314,7 +9329,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-scopes/{client_scope_id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm` #[cfg(feature = "tag-scope-mappings")] @@ -9350,7 +9365,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{client_scope_id}/scope-mappings/realm/available` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm/available` #[cfg(feature = "tag-scope-mappings")] @@ -9384,7 +9399,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{client_scope_id}/scope-mappings/realm/composite` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm/composite` #[cfg(feature = "tag-scope-mappings")] @@ -9421,7 +9436,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{client_scope_id}/scope-mappings` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings` #[cfg(feature = "tag-scope-mappings")] @@ -9456,7 +9471,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{client_scope_id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}` #[cfg(feature = "tag-scope-mappings")] @@ -9495,7 +9510,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-templates/{client_scope_id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}` #[cfg(feature = "tag-scope-mappings")] @@ -9534,7 +9549,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-templates/{client_scope_id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}` #[cfg(feature = "tag-scope-mappings")] @@ -9573,7 +9588,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{client_scope_id}/scope-mappings/clients/{client}/available` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}/available` #[cfg(feature = "tag-scope-mappings")] @@ -9610,7 +9625,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{client_scope_id}/scope-mappings/clients/{client}/composite` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}/composite` #[cfg(feature = "tag-scope-mappings")] @@ -9649,7 +9664,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{client_scope_id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm` #[cfg(feature = "tag-scope-mappings")] @@ -9685,7 +9700,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-templates/{client_scope_id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm` #[cfg(feature = "tag-scope-mappings")] @@ -9721,7 +9736,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-templates/{client_scope_id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm` #[cfg(feature = "tag-scope-mappings")] @@ -9757,7 +9772,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{client_scope_id}/scope-mappings/realm/available` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm/available` #[cfg(feature = "tag-scope-mappings")] @@ -9791,7 +9806,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{client_scope_id}/scope-mappings/realm/composite` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm/composite` #[cfg(feature = "tag-scope-mappings")] @@ -9828,7 +9843,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/scope-mappings` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/scope-mappings` #[cfg(feature = "tag-scope-mappings")] @@ -9863,7 +9878,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}` #[cfg(feature = "tag-scope-mappings")] @@ -9902,7 +9917,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}` #[cfg(feature = "tag-scope-mappings")] @@ -9941,7 +9956,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{client_uuid}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}` #[cfg(feature = "tag-scope-mappings")] @@ -9980,7 +9995,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/scope-mappings/clients/{client}/available` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}/available` #[cfg(feature = "tag-scope-mappings")] @@ -10017,7 +10032,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/scope-mappings/clients/{client}/composite` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}/composite` #[cfg(feature = "tag-scope-mappings")] @@ -10056,7 +10071,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm` #[cfg(feature = "tag-scope-mappings")] @@ -10092,7 +10107,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm` #[cfg(feature = "tag-scope-mappings")] @@ -10128,7 +10143,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{client_uuid}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm` #[cfg(feature = "tag-scope-mappings")] @@ -10164,7 +10179,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/scope-mappings/realm/available` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm/available` #[cfg(feature = "tag-scope-mappings")] @@ -10198,7 +10213,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/scope-mappings/realm/composite` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm/composite` #[cfg(feature = "tag-scope-mappings")] @@ -10250,7 +10265,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] #[allow(clippy::too_many_arguments)] pub async fn realm_users_get( @@ -10335,7 +10350,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_post( &self, @@ -10370,7 +10385,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/count` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] #[allow(clippy::too_many_arguments)] pub async fn realm_users_count_get( @@ -10426,7 +10441,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/profile` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_profile_get(&self, realm: &str) -> Result { let realm = p(realm); @@ -10447,7 +10462,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/profile` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_profile_put( &self, @@ -10472,7 +10487,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/profile/metadata` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_profile_metadata_get( &self, @@ -10502,7 +10517,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{user_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{user-id}` #[cfg(feature = "tag-users")] @@ -10540,7 +10555,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{user_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/users/{user-id}` #[cfg(feature = "tag-users")] @@ -10576,7 +10591,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{user_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/users/{user-id}` #[cfg(feature = "tag-users")] @@ -10610,7 +10625,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{user_id}/configured-user-storage-credential-types` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{user-id}/configured-user-storage-credential-types` #[cfg(feature = "tag-users")] @@ -10643,7 +10658,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{user_id}/consents` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{user-id}/consents` #[cfg(feature = "tag-users")] @@ -10677,7 +10692,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{user_id}/consents/{client}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/users/{user-id}/consents/{client}` #[cfg(feature = "tag-users")] @@ -10711,7 +10726,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{user_id}/credentials` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{user-id}/credentials` #[cfg(feature = "tag-users")] @@ -10745,7 +10760,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{user_id}/credentials/{credential_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/users/{user-id}/credentials/{credentialId}` #[cfg(feature = "tag-users")] @@ -10785,7 +10800,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{user_id}/credentials/{credential_id}/moveAfter/{new_previous_credential_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}` #[cfg(feature = "tag-users")] @@ -10825,7 +10840,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{user_id}/credentials/{credential_id}/moveToFirst` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/moveToFirst` #[cfg(feature = "tag-users")] @@ -10862,7 +10877,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{user_id}/credentials/{credential_id}/userLabel` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/userLabel` #[cfg(feature = "tag-users")] @@ -10901,7 +10916,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{user_id}/disable-credential-types` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/users/{user-id}/disable-credential-types` #[cfg(feature = "tag-users")] @@ -10941,7 +10956,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{user_id}/execute-actions-email` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/users/{user-id}/execute-actions-email` #[cfg(feature = "tag-users")] @@ -10989,7 +11004,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{user_id}/federated-identity` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{user-id}/federated-identity` #[cfg(feature = "tag-users")] @@ -11025,7 +11040,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{user_id}/federated-identity/{provider}` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/users/{user-id}/federated-identity/{provider}` #[cfg(feature = "tag-users")] @@ -11061,7 +11076,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{user_id}/federated-identity/{provider}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/users/{user-id}/federated-identity/{provider}` #[cfg(feature = "tag-users")] @@ -11099,7 +11114,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{user_id}/groups` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{user-id}/groups` #[cfg(feature = "tag-users")] @@ -11147,7 +11162,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{user_id}/groups/count` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{user-id}/groups/count` #[cfg(feature = "tag-users")] @@ -11183,7 +11198,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{user_id}/groups/{group_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/users/{user-id}/groups/{groupId}` #[cfg(feature = "tag-users")] @@ -11219,7 +11234,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{user_id}/groups/{group_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/users/{user-id}/groups/{groupId}` #[cfg(feature = "tag-users")] @@ -11255,7 +11270,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{user_id}/impersonation` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/users/{user-id}/impersonation` #[cfg(feature = "tag-users")] @@ -11290,7 +11305,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{user_id}/logout` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/users/{user-id}/logout` #[cfg(feature = "tag-users")] @@ -11324,7 +11339,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{user_id}/offline-sessions/{client_uuid}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{user-id}/offline-sessions/{clientUuid}` #[cfg(feature = "tag-users")] @@ -11360,7 +11375,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{user_id}/reset-password` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/users/{user-id}/reset-password` #[cfg(feature = "tag-users")] @@ -11398,7 +11413,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{user_id}/reset-password-email` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/users/{user-id}/reset-password-email` #[cfg(feature = "tag-users")] @@ -11445,7 +11460,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{user_id}/send-verify-email` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/users/{user-id}/send-verify-email` #[cfg(feature = "tag-users")] @@ -11492,7 +11507,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{user_id}/sessions` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{user-id}/sessions` #[cfg(feature = "tag-users")] @@ -11523,7 +11538,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{user_id}/unmanagedAttributes` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{user-id}/unmanagedAttributes` #[cfg(feature = "tag-users")] @@ -11554,7 +11569,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server` pub async fn realm_clients_with_client_uuid_authz_resource_server_get( @@ -11562,6 +11577,8 @@ impl KeycloakAdmin { realm: &str, client_uuid: &str, ) -> Result { + let realm = p(realm); + let client_uuid = p(client_uuid); let builder = self .client .get(&format!( @@ -11581,7 +11598,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server` pub async fn realm_clients_with_client_uuid_authz_resource_server_put( @@ -11590,6 +11607,8 @@ impl KeycloakAdmin { client_uuid: &str, body: ResourceServerRepresentation, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let builder = self .client .put(&format!( @@ -11613,7 +11632,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/import` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/import` pub async fn realm_clients_with_client_uuid_authz_resource_server_import_post( @@ -11622,6 +11641,8 @@ impl KeycloakAdmin { client_uuid: &str, body: ResourceServerRepresentation, ) -> Result, KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let builder = self .client .post(&format!( @@ -11651,7 +11672,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/permission` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission` #[allow(clippy::too_many_arguments)] @@ -11670,6 +11691,8 @@ impl KeycloakAdmin { scope: Option, type_: Option, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let mut builder = self .client .get(&format!( @@ -11722,7 +11745,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/permission` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission` pub async fn realm_clients_with_client_uuid_authz_resource_server_permission_post( @@ -11731,6 +11754,8 @@ impl KeycloakAdmin { client_uuid: &str, body: String, ) -> Result, KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let builder = self .client .post(&format!( @@ -11753,7 +11778,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/permission/evaluate` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/evaluate` pub async fn realm_clients_with_client_uuid_authz_resource_server_permission_evaluate_post( @@ -11762,6 +11787,8 @@ impl KeycloakAdmin { client_uuid: &str, body: PolicyEvaluationRequest, ) -> Result, KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let builder = self .client .post(&format!( @@ -11781,7 +11808,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/permission/providers` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/providers` pub async fn realm_clients_with_client_uuid_authz_resource_server_permission_providers_get( @@ -11789,6 +11816,8 @@ impl KeycloakAdmin { realm: &str, client_uuid: &str, ) -> Result, KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let builder = self .client .get(&format!( @@ -11809,7 +11838,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/permission/search` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/search` pub async fn realm_clients_with_client_uuid_authz_resource_server_permission_search_get( @@ -11819,6 +11848,8 @@ impl KeycloakAdmin { fields: Option, name: Option, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let mut builder = self .client .get(&format!( @@ -11854,7 +11885,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/policy` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy` #[allow(clippy::too_many_arguments)] @@ -11873,6 +11904,8 @@ impl KeycloakAdmin { scope: Option, type_: Option, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let mut builder = self .client .get(&format!( @@ -11925,7 +11958,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/policy` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy` pub async fn realm_clients_with_client_uuid_authz_resource_server_policy_post( @@ -11934,6 +11967,8 @@ impl KeycloakAdmin { client_uuid: &str, body: String, ) -> Result, KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let builder = self .client .post(&format!( @@ -11956,7 +11991,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/policy/evaluate` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/evaluate` pub async fn realm_clients_with_client_uuid_authz_resource_server_policy_evaluate_post( @@ -11965,6 +12000,8 @@ impl KeycloakAdmin { client_uuid: &str, body: PolicyEvaluationRequest, ) -> Result, KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let builder = self .client .post(&format!( @@ -11984,7 +12021,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/policy/providers` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/providers` pub async fn realm_clients_with_client_uuid_authz_resource_server_policy_providers_get( @@ -11992,6 +12029,8 @@ impl KeycloakAdmin { realm: &str, client_uuid: &str, ) -> Result, KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let builder = self .client .get(&format!( @@ -12012,7 +12051,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/policy/search` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/search` pub async fn realm_clients_with_client_uuid_authz_resource_server_policy_search_get( @@ -12022,6 +12061,8 @@ impl KeycloakAdmin { fields: Option, name: Option, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let mut builder = self .client .get(&format!( @@ -12058,7 +12099,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/resource` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource` #[allow(clippy::too_many_arguments)] @@ -12078,6 +12119,8 @@ impl KeycloakAdmin { type_: Option, uri: Option, ) -> Result, KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let mut builder = self .client .get(&format!( @@ -12143,7 +12186,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/resource` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource` #[allow(clippy::too_many_arguments)] @@ -12164,6 +12207,8 @@ impl KeycloakAdmin { uri: Option, body: ResourceRepresentation, ) -> Result, KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let mut builder = self .client .post(&format!( @@ -12227,7 +12272,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/resource/search` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/search` #[allow(clippy::too_many_arguments)] @@ -12247,6 +12292,8 @@ impl KeycloakAdmin { type_: Option, uri: Option, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let mut builder = self .client .get(&format!( @@ -12311,7 +12358,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/resource/{resource_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}` #[allow(clippy::too_many_arguments)] @@ -12332,6 +12379,9 @@ impl KeycloakAdmin { uri: Option, resource_id: &str, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); + let resource_id = p(resource_id); let mut builder = self .client .get(&format!( @@ -12397,7 +12447,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/resource/{resource_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}` #[allow(clippy::too_many_arguments)] @@ -12419,6 +12469,9 @@ impl KeycloakAdmin { resource_id: &str, body: ResourceRepresentation, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); + let resource_id = p(resource_id); let mut builder = self .client .put(&format!( @@ -12484,7 +12537,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/resource/{resource_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}` #[allow(clippy::too_many_arguments)] @@ -12505,6 +12558,9 @@ impl KeycloakAdmin { uri: Option, resource_id: &str, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); + let resource_id = p(resource_id); let mut builder = self .client .delete(&format!( @@ -12569,7 +12625,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/resource/{resource_id}/attributes` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/attributes` #[allow(clippy::too_many_arguments)] @@ -12590,6 +12646,9 @@ impl KeycloakAdmin { uri: Option, resource_id: &str, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); + let resource_id = p(resource_id); let mut builder = self .client .get(&format!( @@ -12654,7 +12713,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/resource/{resource_id}/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/permissions` #[allow(clippy::too_many_arguments)] @@ -12675,6 +12734,9 @@ impl KeycloakAdmin { uri: Option, resource_id: &str, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); + let resource_id = p(resource_id); let mut builder = self .client .get(&format!( @@ -12739,7 +12801,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/resource/{resource_id}/scopes` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/scopes` #[allow(clippy::too_many_arguments)] @@ -12760,6 +12822,9 @@ impl KeycloakAdmin { uri: Option, resource_id: &str, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); + let resource_id = p(resource_id); let mut builder = self .client .get(&format!( @@ -12816,7 +12881,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/scope` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope` pub async fn realm_clients_with_client_uuid_authz_resource_server_scope_get( @@ -12828,6 +12893,8 @@ impl KeycloakAdmin { name: Option, scope_id: Option, ) -> Result, KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let mut builder = self .client .get(&format!( @@ -12861,7 +12928,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/scope` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope` pub async fn realm_clients_with_client_uuid_authz_resource_server_scope_post( @@ -12870,6 +12937,8 @@ impl KeycloakAdmin { client_uuid: &str, body: ScopeRepresentation, ) -> Result, KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let builder = self .client .post(&format!( @@ -12890,7 +12959,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/scope/search` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/search` pub async fn realm_clients_with_client_uuid_authz_resource_server_scope_search_get( @@ -12899,6 +12968,8 @@ impl KeycloakAdmin { client_uuid: &str, name: Option, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); let mut builder = self .client .get(&format!( @@ -12922,7 +12993,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/scope/{scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}` pub async fn realm_clients_with_client_uuid_authz_resource_server_scope_with_scope_id_get( @@ -12931,6 +13002,9 @@ impl KeycloakAdmin { client_uuid: &str, scope_id: &str, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); + let scope_id = p(scope_id); let builder = self .client .get(&format!( @@ -12952,7 +13026,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/scope/{scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}` pub async fn realm_clients_with_client_uuid_authz_resource_server_scope_with_scope_id_put( @@ -12962,6 +13036,9 @@ impl KeycloakAdmin { scope_id: &str, body: ScopeRepresentation, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); + let scope_id = p(scope_id); let builder = self .client .put(&format!( @@ -12983,7 +13060,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/scope/{scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}` pub async fn realm_clients_with_client_uuid_authz_resource_server_scope_with_scope_id_delete( @@ -12992,6 +13069,9 @@ impl KeycloakAdmin { client_uuid: &str, scope_id: &str, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); + let scope_id = p(scope_id); let builder = self .client .delete(&format!( @@ -13012,7 +13092,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/scope/{scope_id}/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}/permissions` pub async fn realm_clients_with_client_uuid_authz_resource_server_scope_with_scope_id_permissions_get( @@ -13021,6 +13101,9 @@ impl KeycloakAdmin { client_uuid: &str, scope_id: &str, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); + let scope_id = p(scope_id); let builder = self .client .get(&format!( @@ -13041,7 +13124,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/scope/{scope_id}/resources` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}/resources` pub async fn realm_clients_with_client_uuid_authz_resource_server_scope_with_scope_id_resources_get( @@ -13050,6 +13133,9 @@ impl KeycloakAdmin { client_uuid: &str, scope_id: &str, ) -> Result<(), KeycloakError> { + let realm = p(realm); + let client_uuid = p(client_uuid); + let scope_id = p(scope_id); let builder = self .client .get(&format!( @@ -13069,7 +13155,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{client_uuid}/authz/resource-server/settings` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/settings` pub async fn realm_clients_with_client_uuid_authz_resource_server_settings_get( @@ -13077,6 +13163,8 @@ impl KeycloakAdmin { realm: &str, client_uuid: &str, ) -> Result { + let realm = p(realm); + let client_uuid = p(client_uuid); let builder = self .client .get(&format!( diff --git a/src/types.rs b/src/types.rs index 9e6aa9f..9080393 100644 --- a/src/types.rs +++ b/src/types.rs @@ -511,6 +511,7 @@ pub struct ClientTemplateRepresentation { pub struct ClientTypeRepresentation { pub config: Option>, pub name: Option, + pub parent: Option, pub provider: Option, } @@ -803,8 +804,10 @@ pub struct IdentityProviderRepresentation { pub display_name: Option, pub enabled: Option, pub first_broker_login_flow_alias: Option, + pub hide_on_login: Option, pub internal_id: Option, pub link_only: Option, + pub organization_id: Option, pub post_broker_login_flow_alias: Option, pub provider_id: Option, pub store_token: Option, @@ -917,6 +920,52 @@ pub struct MappingsRepresentation { pub realm_mappings: Option>, } +#[skip_serializing_none] +#[derive(Clone, Debug, Default, PartialEq, Eq, Deserialize, Serialize)] +#[cfg_attr(feature = "schemars", derive(JsonSchema))] +#[serde(rename_all = "camelCase")] +pub struct MemberRepresentation { + pub access: Option>, + #[deprecated] + pub application_roles: Option>>, + pub attributes: Option>>, + pub client_consents: Option>, + pub client_roles: Option>>, + pub created_timestamp: Option, + pub credentials: Option>, + pub disableable_credential_types: Option>, + pub email: Option, + pub email_verified: Option, + pub enabled: Option, + pub federated_identities: Option>, + pub federation_link: Option, + pub first_name: Option, + pub groups: Option>, + pub id: Option, + pub last_name: Option, + pub membership_type: Option, + pub not_before: Option, + pub origin: Option, + pub realm_roles: Option>, + pub required_actions: Option>, + #[serde(rename = "self")] + pub self_: Option, + pub service_account_client_id: Option, + #[deprecated] + pub social_links: Option>, + pub totp: Option, + pub user_profile_metadata: Option, + pub username: Option, +} + +#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Deserialize, Serialize)] +#[cfg_attr(feature = "schemars", derive(JsonSchema))] +#[serde(rename_all = "SCREAMING_SNAKE_CASE")] +pub enum MembershipType { + Unmanaged, + Managed, +} + #[skip_serializing_none] #[derive(Clone, Debug, Default, PartialEq, Eq, Deserialize, Serialize)] #[cfg_attr(feature = "schemars", derive(JsonSchema))] @@ -1006,14 +1055,16 @@ pub struct OrganizationDomainRepresentation { #[cfg_attr(feature = "schemars", derive(JsonSchema))] #[serde(rename_all = "camelCase")] pub struct OrganizationRepresentation { + pub alias: Option, pub attributes: Option>>, pub description: Option, pub domains: Option>, pub enabled: Option, pub id: Option, pub identity_providers: Option>, - pub members: Option>, + pub members: Option>, pub name: Option, + pub redirect_url: Option, } #[skip_serializing_none]