From 04b1c3cd5b84f58bae96c0701ffd02a567de1ef9 Mon Sep 17 00:00:00 2001 From: Alexander Korolev Date: Fri, 29 Mar 2024 18:09:54 +0100 Subject: [PATCH] Keycloak Admin REST API v22.0.500 --- Cargo.toml | 2 +- README.md | 10 +- docs/openapi.json | 55 ++++ docs/rest-api.html | 132 +++++++- src/lib.rs | 10 +- src/rest/generated_rest.rs | 653 +++++++++++++++++++------------------ src/types.rs | 13 + templates/README.md | 8 +- 8 files changed, 559 insertions(+), 324 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8ea8dc1..8b663e0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "keycloak" -version = "22.0.301" +version = "22.0.500" authors = ["Alexander Korolev "] edition = "2021" categories = ["api-bindings", "asynchronous"] diff --git a/README.md b/README.md index 8c4c2f9..4b5093a 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,15 @@ Dual-licensed under `MIT` or the [UNLICENSE](http://unlicense.org/). ## Features -Implements [Keycloak Admin REST API version 22.0.3](https://www.keycloak.org/docs-api/22.0.3/rest-api/index.html). +Implements [Keycloak Admin REST API version 22.0.5](https://www.keycloak.org/docs-api/22.0.5/rest-api/index.html). -To add [schemars](https://crates.io/crates/schemars) support enable feature `schemars`. +### Feature flags + +Default flags: `tags-all`. + +- `rc`: use `Arc` for deserialization. +- `schemars`: add [schemars](https://crates.io/crates/schemars) support. +- `tags-all`: activate all tags (resource groups) in REST API, it is default behavior. Disable default features and use individual `tag-xxx` features to activate only required resource groups. For a full list reference the [Cargo.toml](Cargo.toml). ## Usage diff --git a/docs/openapi.json b/docs/openapi.json index 20382ff..7f9166e 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -8945,6 +8945,32 @@ } } ] }, + "/admin/realms/{realm}/users/profile/metadata" : { + "get" : { + "tags" : [ "Users" ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UserProfileMetadata" + } + } + } + } + } + }, + "parameters" : [ { + "name" : "realm", + "in" : "path", + "description" : "realm name (not id!)", + "required" : true, + "schema" : { + "type" : "string" + } + } ] + }, "/admin/realms/{realm}/users/{id}" : { "get" : { "tags" : [ "Users" ], @@ -13497,6 +13523,26 @@ "UserManagedAccessConfig" : { "type" : "object" }, + "UserProfileAttributeGroupMetadata" : { + "type" : "object", + "properties" : { + "name" : { + "type" : "string" + }, + "displayHeader" : { + "type" : "string" + }, + "displayDescription" : { + "type" : "string" + }, + "annotations" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + } + } + }, "UserProfileAttributeMetadata" : { "type" : "object", "properties" : { @@ -13526,6 +13572,9 @@ "type" : "object" } } + }, + "group" : { + "type" : "string" } } }, @@ -13537,6 +13586,12 @@ "items" : { "$ref" : "#/components/schemas/UserProfileAttributeMetadata" } + }, + "groups" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/UserProfileAttributeGroupMetadata" + } } } }, diff --git a/docs/rest-api.html b/docs/rest-api.html index ee4ead9..e976ae4 100644 --- a/docs/rest-api.html +++ b/docs/rest-api.html @@ -544,6 +544,7 @@

Keycloak Admin REST API

  • UserConsentRepresentation
  • UserFederationMapperRepresentation
  • UserFederationProviderRepresentation
  • +
  • UserProfileAttributeGroupMetadata
  • UserProfileAttributeMetadata
  • UserProfileMetadata
  • UserRepresentation
  • @@ -28136,8 +28137,8 @@
    Responses
    -
    -

    PUT /admin/realms/{realm}/users/profile

    +
    +

    GET /admin/realms/{realm}/users/profile/metadata

    Parameters
    @@ -28168,6 +28169,74 @@
    Path Parameters
    +
    +
    +
    Content Type
    +
    +
      +
    • +

      application/json

      +
    • +
    +
    +
    +
    +
    Responses
    + +++++ + + + + + + + + + + + + + + +
    CodeMessageDatatype

    200

    OK

    UserProfileMetadata

    +
    +
    +
    +

    PUT /admin/realms/{realm}/users/profile

    +
    +
    Parameters
    +
    +
    Path Parameters
    + ++++++ + + + + + + + + + + + + + + + + +
    NameDescriptionDefaultPattern

    realm
    +required

    realm name (not id!)

    null

    +
    Body Parameter
    @@ -28198,7 +28267,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -34052,6 +34121,49 @@

    UserFederationProviderRepresentati

    +

    UserProfileAttributeGroupMetadata

    + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +

    UserProfileAttributeMetadata

    @@ -34103,6 +34215,12 @@

    UserProfileAttributeMetadata

    + + + + +
    @@ -34128,6 +34246,12 @@

    UserProfileMetadata

    List of UserProfileAttributeMetadata

    + +

    groups
    +optional

    +

    List of UserProfileAttributeGroupMetadata

    + +
    @@ -34317,7 +34441,7 @@

    UserRepresentation

    diff --git a/src/lib.rs b/src/lib.rs index 6bc5f09..7576e71 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,9 +7,15 @@ Dual-licensed under `MIT` or the [UNLICENSE](http://unlicense.org/). ## Features -Implements [Keycloak Admin REST API version 22.0.3](https://www.keycloak.org/docs-api/22.0.3/rest-api/index.html). +Implements [Keycloak Admin REST API version 22.0.5](https://www.keycloak.org/docs-api/22.0.5/rest-api/index.html). -To add [schemars](https://crates.io/crates/schemars) support enable feature `schemars`. +### Feature flags + +Default flags: `tags-all`. + +- `rc`: use `Arc` for deserialization. +- `schemars`: add [schemars](https://crates.io/crates/schemars) support. +- `tags-all`: activate all tags (resource groups) in REST API, it is default behavior. Disable default features and use individual `tag-xxx` features to activate only required resource groups. For a full list reference the [Cargo.toml](Cargo.toml). ## Usage diff --git a/src/rest/generated_rest.rs b/src/rest/generated_rest.rs index 17037ae..9686faf 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, @@ -45,7 +45,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")] @@ -76,7 +76,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")] @@ -109,7 +109,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, @@ -136,7 +136,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, @@ -164,7 +164,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/config` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] #[deprecated] pub async fn realm_authentication_config_post( @@ -196,7 +196,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")] @@ -227,7 +227,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, @@ -257,7 +257,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, @@ -289,7 +289,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, @@ -319,7 +319,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/executions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_executions_post( &self, @@ -350,7 +350,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")] @@ -382,7 +382,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")] @@ -415,7 +415,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")] @@ -450,7 +450,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")] @@ -483,7 +483,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")] @@ -515,7 +515,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")] @@ -546,7 +546,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/flows` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_flows_get( &self, @@ -574,7 +574,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/flows` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_flows_post( &self, @@ -606,7 +606,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")] @@ -640,7 +640,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")] @@ -673,7 +673,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")] @@ -708,7 +708,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")] @@ -743,7 +743,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")] @@ -777,7 +777,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, @@ -807,7 +807,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, @@ -839,7 +839,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, @@ -868,7 +868,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, @@ -895,7 +895,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, @@ -922,7 +922,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, @@ -950,7 +950,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, @@ -980,7 +980,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, @@ -1008,7 +1008,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, @@ -1038,7 +1038,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, @@ -1070,7 +1070,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, @@ -1100,7 +1100,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, @@ -1130,7 +1130,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, @@ -1159,7 +1159,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, @@ -1190,7 +1190,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/certificates/{attr}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-attribute-certificate")] pub async fn realm_clients_with_id_certificates_with_attr_get( &self, @@ -1222,7 +1222,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/certificates/{attr}/download` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-attribute-certificate")] pub async fn realm_clients_with_id_certificates_with_attr_download_post( &self, @@ -1255,7 +1255,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/certificates/{attr}/generate` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-attribute-certificate")] pub async fn realm_clients_with_id_certificates_with_attr_generate_post( &self, @@ -1290,7 +1290,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/certificates/{attr}/generate-and-download` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-attribute-certificate")] pub async fn realm_clients_with_id_certificates_with_attr_generate_and_download_post( &self, @@ -1323,7 +1323,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/certificates/{attr}/upload` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-attribute-certificate")] pub async fn realm_clients_with_id_certificates_with_attr_upload_post( &self, @@ -1354,7 +1354,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/certificates/{attr}/upload-certificate` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-attribute-certificate")] pub async fn realm_clients_with_id_certificates_with_attr_upload_certificate_post( &self, @@ -1383,7 +1383,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, @@ -1411,7 +1411,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, @@ -1439,7 +1439,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, @@ -1470,7 +1470,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, @@ -1501,7 +1501,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_groups_with_id_role_mappings_clients_with_client_get( &self, @@ -1533,7 +1533,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_groups_with_id_role_mappings_clients_with_client_post( &self, @@ -1568,7 +1568,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_groups_with_id_role_mappings_clients_with_client_delete( &self, @@ -1602,7 +1602,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_groups_with_id_role_mappings_clients_with_client_available_get( &self, @@ -1634,7 +1634,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_groups_with_id_role_mappings_clients_with_client_composite_get( &self, @@ -1669,7 +1669,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/role-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_users_with_id_role_mappings_clients_with_client_get( &self, @@ -1701,7 +1701,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{id}/role-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_users_with_id_role_mappings_clients_with_client_post( &self, @@ -1736,7 +1736,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{id}/role-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_users_with_id_role_mappings_clients_with_client_delete( &self, @@ -1770,7 +1770,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/role-mappings/clients/{client}/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_users_with_id_role_mappings_clients_with_client_available_get( &self, @@ -1802,7 +1802,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/role-mappings/clients/{client}/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_users_with_id_role_mappings_clients_with_client_composite_get( &self, @@ -1837,7 +1837,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_scopes_get( &self, @@ -1862,7 +1862,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-scopes` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_scopes_post( &self, @@ -1890,7 +1890,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_scopes_with_id_get( &self, @@ -1920,7 +1920,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/client-scopes/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_scopes_with_id_put( &self, @@ -1952,7 +1952,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-scopes/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_scopes_with_id_delete( &self, @@ -1981,7 +1981,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_templates_get( &self, @@ -2009,7 +2009,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-templates` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_templates_post( &self, @@ -2040,7 +2040,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_templates_with_id_get( &self, @@ -2070,7 +2070,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/client-templates/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_templates_with_id_put( &self, @@ -2102,7 +2102,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-templates/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_templates_with_id_delete( &self, @@ -2139,7 +2139,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( @@ -2189,7 +2189,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_post( &self, @@ -2217,7 +2217,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_get( &self, @@ -2244,7 +2244,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_put( &self, @@ -2273,7 +2273,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_delete( &self, @@ -2300,7 +2300,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/client-secret` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_client_secret_get( &self, @@ -2329,7 +2329,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/client-secret` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_client_secret_post( &self, @@ -2358,7 +2358,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/client-secret/rotated` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_client_secret_rotated_get( &self, @@ -2387,7 +2387,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/client-secret/rotated` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_client_secret_rotated_delete( &self, @@ -2417,7 +2417,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/default-client-scopes` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_default_client_scopes_get( &self, @@ -2445,7 +2445,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{id}/default-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{id}/default-client-scopes/{clientScopeId}` #[cfg(feature = "tag-clients")] @@ -2478,7 +2478,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/default-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{id}/default-client-scopes/{clientScopeId}` #[cfg(feature = "tag-clients")] @@ -2513,7 +2513,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/evaluate-scopes/generate-example-access-token` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_evaluate_scopes_generate_example_access_token_get( &self, @@ -2552,7 +2552,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/evaluate-scopes/generate-example-id-token` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_evaluate_scopes_generate_example_id_token_get( &self, @@ -2591,7 +2591,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/evaluate-scopes/generate-example-userinfo` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_evaluate_scopes_generate_example_userinfo_get( &self, @@ -2629,7 +2629,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/evaluate-scopes/protocol-mappers` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_evaluate_scopes_protocol_mappers_get( &self, @@ -2664,7 +2664,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{role_container_id}/granted` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/granted` #[cfg(feature = "tag-clients")] @@ -2702,7 +2702,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{role_container_id}/not-granted` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted` #[cfg(feature = "tag-clients")] @@ -2737,7 +2737,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/installation/providers/{provider_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/installation/providers/{providerId}` #[cfg(feature = "tag-clients")] @@ -2770,7 +2770,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/management/permissions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_management_permissions_get( &self, @@ -2800,7 +2800,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{id}/management/permissions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_management_permissions_put( &self, @@ -2832,7 +2832,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/nodes` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_nodes_post( &self, @@ -2865,7 +2865,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/nodes/{node}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_nodes_with_node_delete( &self, @@ -2896,7 +2896,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/offline-session-count` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_offline_session_count_get( &self, @@ -2927,7 +2927,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/offline-sessions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_offline_sessions_get( &self, @@ -2964,7 +2964,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/optional-client-scopes` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_optional_client_scopes_get( &self, @@ -2992,7 +2992,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{id}/optional-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{id}/optional-client-scopes/{clientScopeId}` #[cfg(feature = "tag-clients")] @@ -3025,7 +3025,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/optional-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{id}/optional-client-scopes/{clientScopeId}` #[cfg(feature = "tag-clients")] @@ -3058,7 +3058,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/push-revocation` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_push_revocation_post( &self, @@ -3087,7 +3087,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/registration-access-token` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_registration_access_token_post( &self, @@ -3116,7 +3116,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/service-account-user` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_service_account_user_get( &self, @@ -3145,7 +3145,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/session-count` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_session_count_get( &self, @@ -3174,7 +3174,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/test-nodes-available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_test_nodes_available_get( &self, @@ -3205,7 +3205,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/user-sessions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_user_sessions_get( &self, @@ -3244,7 +3244,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/components` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-component")] pub async fn realm_components_get( &self, @@ -3279,7 +3279,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/components` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-component")] pub async fn realm_components_post( &self, @@ -3305,7 +3305,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/components/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-component")] pub async fn realm_components_with_id_get( &self, @@ -3333,7 +3333,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/components/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-component")] pub async fn realm_components_with_id_put( &self, @@ -3363,7 +3363,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/components/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-component")] pub async fn realm_components_with_id_delete( &self, @@ -3394,7 +3394,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, @@ -3435,7 +3435,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( @@ -3489,7 +3489,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/groups` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_post( &self, @@ -3518,7 +3518,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/count` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_count_get( &self, @@ -3549,7 +3549,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_with_id_get( &self, @@ -3576,7 +3576,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/groups/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_with_id_put( &self, @@ -3603,7 +3603,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/groups/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_with_id_delete( &self, @@ -3631,7 +3631,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/groups/{id}/children` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_with_id_children_post( &self, @@ -3663,7 +3663,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/management/permissions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_with_id_management_permissions_get( &self, @@ -3693,7 +3693,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/groups/{id}/management/permissions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_with_id_management_permissions_put( &self, @@ -3727,7 +3727,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/members` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_with_id_members_get( &self, @@ -3770,7 +3770,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, @@ -3799,7 +3799,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/identity-provider/instances` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_get( &self, @@ -3827,7 +3827,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, @@ -3858,7 +3858,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, @@ -3888,7 +3888,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, @@ -3920,7 +3920,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, @@ -3951,7 +3951,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, @@ -3985,7 +3985,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, @@ -4015,7 +4015,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, @@ -4046,7 +4046,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, @@ -4075,7 +4075,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, @@ -4105,7 +4105,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, @@ -4138,7 +4138,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, @@ -4170,7 +4170,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, @@ -4204,7 +4204,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, @@ -4235,7 +4235,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, @@ -4264,7 +4264,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/keys` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-key")] pub async fn realm_keys_get( &self, @@ -4292,7 +4292,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-scopes/{id}/protocol-mappers/add-models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_scopes_with_id_protocol_mappers_add_models_post( &self, @@ -4324,7 +4324,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_scopes_with_id_protocol_mappers_models_get( &self, @@ -4354,7 +4354,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-scopes/{id}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_scopes_with_id_protocol_mappers_models_post( &self, @@ -4386,7 +4386,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_scopes_with_id_protocol_mappers_models_with_id_get( &self, @@ -4416,7 +4416,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/client-scopes/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_scopes_with_id_protocol_mappers_models_with_id_put( &self, @@ -4448,7 +4448,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-scopes/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_scopes_with_id_protocol_mappers_models_with_id_delete( &self, @@ -4479,7 +4479,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/protocol-mappers/protocol/{protocol}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_scopes_with_id_protocol_mappers_protocol_with_protocol_get( &self, @@ -4510,7 +4510,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-templates/{id}/protocol-mappers/add-models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_templates_with_id_protocol_mappers_add_models_post( &self, @@ -4542,7 +4542,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_templates_with_id_protocol_mappers_models_get( &self, @@ -4572,7 +4572,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-templates/{id}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_templates_with_id_protocol_mappers_models_post( &self, @@ -4604,7 +4604,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_templates_with_id_protocol_mappers_models_with_id_get( &self, @@ -4634,7 +4634,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/client-templates/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_templates_with_id_protocol_mappers_models_with_id_put( &self, @@ -4666,7 +4666,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-templates/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_templates_with_id_protocol_mappers_models_with_id_delete( &self, @@ -4697,7 +4697,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/protocol-mappers/protocol/{protocol}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_templates_with_id_protocol_mappers_protocol_with_protocol_get( &self, @@ -4728,7 +4728,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/protocol-mappers/add-models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_clients_with_id_protocol_mappers_add_models_post( &self, @@ -4760,7 +4760,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_clients_with_id_protocol_mappers_models_get( &self, @@ -4790,7 +4790,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_clients_with_id_protocol_mappers_models_post( &self, @@ -4822,7 +4822,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_clients_with_id_protocol_mappers_models_with_id_get( &self, @@ -4852,7 +4852,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_clients_with_id_protocol_mappers_models_with_id_put( &self, @@ -4884,7 +4884,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_clients_with_id_protocol_mappers_models_with_id_delete( &self, @@ -4915,7 +4915,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/protocol-mappers/protocol/{protocol}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_clients_with_id_protocol_mappers_protocol_with_protocol_get( &self, @@ -4946,7 +4946,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn get( &self, @@ -4973,7 +4973,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn post(&self, body: RealmRepresentation) -> Result<(), KeycloakError> { let builder = self @@ -4996,7 +4996,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_get(&self, realm: &str) -> Result { let builder = self @@ -5018,7 +5018,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_put( &self, @@ -5045,7 +5045,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 builder = self @@ -5078,7 +5078,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( @@ -5147,7 +5147,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 builder = self @@ -5170,7 +5170,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, @@ -5197,7 +5197,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, @@ -5223,7 +5223,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, @@ -5252,7 +5252,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, @@ -5282,7 +5282,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, @@ -5312,7 +5312,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, @@ -5337,7 +5337,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/credential-registrators` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_credential_registrators_get( &self, @@ -5364,7 +5364,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, @@ -5390,7 +5390,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")] @@ -5421,7 +5421,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")] @@ -5452,7 +5452,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/default-groups` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_default_groups_get( &self, @@ -5475,7 +5475,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")] @@ -5506,7 +5506,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")] @@ -5537,7 +5537,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, @@ -5563,7 +5563,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")] @@ -5594,7 +5594,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")] @@ -5633,7 +5633,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( @@ -5690,7 +5690,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 builder = self @@ -5712,7 +5712,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/events/config` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_events_config_get( &self, @@ -5735,7 +5735,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/events/config` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_events_config_put( &self, @@ -5761,7 +5761,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, @@ -5787,7 +5787,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/localization` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_localization_get( &self, @@ -5811,7 +5811,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, @@ -5845,7 +5845,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, @@ -5875,7 +5875,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, @@ -5904,7 +5904,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, @@ -5934,7 +5934,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, @@ -5966,7 +5966,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, @@ -5996,7 +5996,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/logout-all` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_logout_all_post( &self, @@ -6022,7 +6022,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/partial-export` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_partial_export_post( &self, @@ -6056,7 +6056,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/partialImport` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_partial_import_post( &self, @@ -6083,7 +6083,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/push-revocation` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_push_revocation_post( &self, @@ -6111,7 +6111,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, @@ -6141,7 +6141,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/testSMTPConnection` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] #[deprecated] pub async fn realm_test_smtp_connection_post( @@ -6170,7 +6170,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, @@ -6196,7 +6196,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, @@ -6228,7 +6228,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/role-mappings` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_groups_with_id_role_mappings_get( &self, @@ -6257,7 +6257,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_groups_with_id_role_mappings_realm_get( &self, @@ -6287,7 +6287,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/groups/{id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_groups_with_id_role_mappings_realm_post( &self, @@ -6320,7 +6320,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/groups/{id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_groups_with_id_role_mappings_realm_delete( &self, @@ -6352,7 +6352,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/role-mappings/realm/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_groups_with_id_role_mappings_realm_available_get( &self, @@ -6382,7 +6382,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/role-mappings/realm/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_groups_with_id_role_mappings_realm_composite_get( &self, @@ -6415,7 +6415,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/role-mappings` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_users_with_id_role_mappings_get( &self, @@ -6444,7 +6444,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_users_with_id_role_mappings_realm_get( &self, @@ -6474,7 +6474,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_users_with_id_role_mappings_realm_post( &self, @@ -6507,7 +6507,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_users_with_id_role_mappings_realm_delete( &self, @@ -6539,7 +6539,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/role-mappings/realm/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_users_with_id_role_mappings_realm_available_get( &self, @@ -6569,7 +6569,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/role-mappings/realm/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_users_with_id_role_mappings_realm_composite_get( &self, @@ -6608,7 +6608,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/roles` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-roles")] pub async fn realm_clients_with_id_roles_get( &self, @@ -6654,7 +6654,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/roles` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-roles")] pub async fn realm_clients_with_id_roles_post( &self, @@ -6687,7 +6687,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/roles/{role_name}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/roles/{role-name}` #[cfg(feature = "tag-roles")] @@ -6721,7 +6721,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{id}/roles/{role_name}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{id}/roles/{role-name}` #[cfg(feature = "tag-roles")] @@ -6757,7 +6757,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/roles/{role_name}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{id}/roles/{role-name}` #[cfg(feature = "tag-roles")] @@ -6791,7 +6791,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/roles/{role_name}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/roles/{role-name}/composites` #[cfg(feature = "tag-roles")] @@ -6825,7 +6825,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/roles/{role_name}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{id}/roles/{role-name}/composites` #[cfg(feature = "tag-roles")] @@ -6862,7 +6862,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/roles/{role_name}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{id}/roles/{role-name}/composites` #[cfg(feature = "tag-roles")] @@ -6899,7 +6899,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/roles/{role_name}/composites/clients/{client_uuid}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/roles/{role-name}/composites/clients/{clientUuid}` #[cfg(feature = "tag-roles")] @@ -6933,7 +6933,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/roles/{role_name}/composites/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/roles/{role-name}/composites/realm` #[cfg(feature = "tag-roles")] @@ -6969,7 +6969,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/roles/{role_name}/groups` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/roles/{role-name}/groups` #[cfg(feature = "tag-roles")] @@ -7014,7 +7014,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/roles/{role_name}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/roles/{role-name}/management/permissions` #[cfg(feature = "tag-roles")] @@ -7048,7 +7048,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{id}/roles/{role_name}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{id}/roles/{role-name}/management/permissions` #[cfg(feature = "tag-roles")] @@ -7085,7 +7085,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/roles/{role_name}/users` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/roles/{role-name}/users` #[cfg(feature = "tag-roles")] @@ -7128,7 +7128,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-roles")] pub async fn realm_roles_get( &self, @@ -7169,7 +7169,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/roles` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-roles")] pub async fn realm_roles_post( &self, @@ -7197,7 +7197,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")] @@ -7229,7 +7229,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")] @@ -7263,7 +7263,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")] @@ -7295,7 +7295,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")] @@ -7327,7 +7327,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")] @@ -7362,7 +7362,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")] @@ -7397,7 +7397,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/{clientUuid}` #[cfg(feature = "tag-roles")] @@ -7429,7 +7429,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")] @@ -7463,7 +7463,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")] @@ -7506,7 +7506,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")] @@ -7538,7 +7538,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")] @@ -7573,7 +7573,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")] @@ -7614,7 +7614,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")] @@ -7646,7 +7646,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")] @@ -7680,7 +7680,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")] @@ -7715,7 +7715,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")] @@ -7759,7 +7759,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")] @@ -7794,7 +7794,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")] @@ -7829,7 +7829,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")] @@ -7861,7 +7861,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")] @@ -7892,7 +7892,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")] @@ -7924,7 +7924,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")] @@ -7959,7 +7959,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/scope-mappings` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] #[deprecated] pub async fn realm_client_scopes_with_id_scope_mappings_get( @@ -7990,7 +7990,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_clients_with_client_get( &self, @@ -8022,7 +8022,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-scopes/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_clients_with_client_post( &self, @@ -8057,7 +8057,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-scopes/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_clients_with_client_delete( &self, @@ -8091,7 +8091,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/scope-mappings/clients/{client}/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_clients_with_client_available_get( &self, @@ -8123,7 +8123,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/scope-mappings/clients/{client}/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_clients_with_client_composite_get( &self, @@ -8157,7 +8157,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_realm_get( &self, @@ -8187,7 +8187,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-scopes/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_realm_post( &self, @@ -8220,7 +8220,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-scopes/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_realm_delete( &self, @@ -8252,7 +8252,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/scope-mappings/realm/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_realm_available_get( &self, @@ -8282,7 +8282,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/scope-mappings/realm/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_realm_composite_get( &self, @@ -8315,7 +8315,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/scope-mappings` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] #[deprecated] pub async fn realm_client_templates_with_id_scope_mappings_get( @@ -8346,7 +8346,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_clients_with_client_get( &self, @@ -8378,7 +8378,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-templates/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_clients_with_client_post( &self, @@ -8413,7 +8413,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-templates/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_clients_with_client_delete( &self, @@ -8447,7 +8447,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/scope-mappings/clients/{client}/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_clients_with_client_available_get( &self, @@ -8479,7 +8479,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/scope-mappings/clients/{client}/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_clients_with_client_composite_get( &self, @@ -8513,7 +8513,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_realm_get( &self, @@ -8543,7 +8543,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-templates/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_realm_post( &self, @@ -8576,7 +8576,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-templates/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_realm_delete( &self, @@ -8608,7 +8608,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/scope-mappings/realm/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_realm_available_get( &self, @@ -8638,7 +8638,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/scope-mappings/realm/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_realm_composite_get( &self, @@ -8671,7 +8671,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/scope-mappings` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] #[deprecated] pub async fn realm_clients_with_id_scope_mappings_get( @@ -8702,7 +8702,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_clients_with_client_get( &self, @@ -8734,7 +8734,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_clients_with_client_post( &self, @@ -8769,7 +8769,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_clients_with_client_delete( &self, @@ -8803,7 +8803,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/scope-mappings/clients/{client}/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_clients_with_client_available_get( &self, @@ -8835,7 +8835,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/scope-mappings/clients/{client}/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_clients_with_client_composite_get( &self, @@ -8869,7 +8869,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_realm_get( &self, @@ -8899,7 +8899,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_realm_post( &self, @@ -8932,7 +8932,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_realm_delete( &self, @@ -8964,7 +8964,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/scope-mappings/realm/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_realm_available_get( &self, @@ -8994,7 +8994,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/scope-mappings/realm/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_realm_composite_get( &self, @@ -9042,7 +9042,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( @@ -9124,7 +9124,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_post( &self, @@ -9159,7 +9159,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( @@ -9214,7 +9214,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 builder = self @@ -9234,7 +9234,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/profile` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_profile_put( &self, @@ -9251,6 +9251,31 @@ impl KeycloakAdmin { Ok(()) } + /// Parameters: + /// + /// - `realm`: realm name (not id!) + /// + /// Resource: `Users` + /// + /// `GET /admin/realms/{realm}/users/profile/metadata` + /// + /// Documentation: + #[cfg(feature = "tag-users")] + pub async fn realm_users_profile_metadata_get( + &self, + realm: &str, + ) -> Result { + let builder = self + .client + .get(&format!( + "{}/admin/realms/{realm}/users/profile/metadata", + self.url + )) + .bearer_auth(self.token_supplier.get(&self.url).await?); + let response = builder.send().await?; + Ok(error_check(response).await?.json().await?) + } + /// Get representation of the user /// /// Parameters: @@ -9263,7 +9288,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_get( &self, @@ -9294,7 +9319,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_put( &self, @@ -9323,7 +9348,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_delete( &self, @@ -9350,7 +9375,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/configured-user-storage-credential-types` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_configured_user_storage_credential_types_get( &self, @@ -9379,7 +9404,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/consents` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_consents_get( &self, @@ -9409,7 +9434,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{id}/consents/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_consents_with_client_delete( &self, @@ -9438,7 +9463,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/credentials` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_credentials_get( &self, @@ -9468,7 +9493,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{id}/credentials/{credential_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/users/{id}/credentials/{credentialId}` #[cfg(feature = "tag-users")] @@ -9503,7 +9528,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{id}/credentials/{credential_id}/moveAfter/{new_previous_credential_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/users/{id}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}` #[cfg(feature = "tag-users")] @@ -9538,7 +9563,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{id}/credentials/{credential_id}/moveToFirst` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/users/{id}/credentials/{credentialId}/moveToFirst` #[cfg(feature = "tag-users")] @@ -9573,7 +9598,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{id}/credentials/{credential_id}/userLabel` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/users/{id}/credentials/{credentialId}/userLabel` #[cfg(feature = "tag-users")] @@ -9609,7 +9634,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{id}/disable-credential-types` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_disable_credential_types_put( &self, @@ -9645,7 +9670,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{id}/execute-actions-email` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_execute_actions_email_put( &self, @@ -9689,7 +9714,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/federated-identity` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_federated_identity_get( &self, @@ -9719,7 +9744,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{id}/federated-identity/{provider}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_federated_identity_with_provider_post( &self, @@ -9751,7 +9776,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{id}/federated-identity/{provider}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_federated_identity_with_provider_delete( &self, @@ -9784,7 +9809,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/groups` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_groups_get( &self, @@ -9828,7 +9853,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/groups/count` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_groups_count_get( &self, @@ -9860,7 +9885,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{id}/groups/{group_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/users/{id}/groups/{groupId}` #[cfg(feature = "tag-users")] @@ -9893,7 +9918,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{id}/groups/{group_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/users/{id}/groups/{groupId}` #[cfg(feature = "tag-users")] @@ -9926,7 +9951,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{id}/impersonation` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_impersonation_post( &self, @@ -9955,7 +9980,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{id}/logout` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_logout_post( &self, @@ -9986,7 +10011,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/offline-sessions/{client_uuid}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{id}/offline-sessions/{clientUuid}` #[cfg(feature = "tag-users")] @@ -10019,7 +10044,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{id}/reset-password` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_reset_password_put( &self, @@ -10053,7 +10078,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{id}/reset-password-email` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] #[deprecated] pub async fn realm_users_with_id_reset_password_email_put( @@ -10095,7 +10120,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{id}/send-verify-email` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_send_verify_email_put( &self, @@ -10134,7 +10159,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/sessions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_sessions_get( &self, diff --git a/src/types.rs b/src/types.rs index dcadc3e..11f1ebf 100644 --- a/src/types.rs +++ b/src/types.rs @@ -1358,6 +1358,17 @@ pub struct UserFederationProviderRepresentation { pub type UserManagedAccessConfig = TypeMap; +#[skip_serializing_none] +#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] +#[cfg_attr(feature = "schemars", derive(JsonSchema))] +#[serde(rename_all = "camelCase")] +pub struct UserProfileAttributeGroupMetadata { + pub annotations: Option>, + pub display_description: Option, + pub display_header: Option, + pub name: Option, +} + #[skip_serializing_none] #[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] #[cfg_attr(feature = "schemars", derive(JsonSchema))] @@ -1365,6 +1376,7 @@ pub type UserManagedAccessConfig = TypeMap; pub struct UserProfileAttributeMetadata { pub annotations: Option>, pub display_name: Option, + pub group: Option, pub name: Option, pub read_only: Option, pub required: Option, @@ -1376,6 +1388,7 @@ pub struct UserProfileAttributeMetadata { #[cfg_attr(feature = "schemars", derive(JsonSchema))] pub struct UserProfileMetadata { pub attributes: Option>, + pub groups: Option>, } #[skip_serializing_none] diff --git a/templates/README.md b/templates/README.md index 477bd25..4b1f671 100644 --- a/templates/README.md +++ b/templates/README.md @@ -8,7 +8,13 @@ Dual-licensed under `MIT` or the [UNLICENSE](http://unlicense.org/). Implements [Keycloak Admin REST API version {{ env_var "KEYCLOAK_VERSION" }}](https://www.keycloak.org/docs-api/{{ env_var "KEYCLOAK_VERSION" }}/rest-api/index.html). -To add [schemars](https://crates.io/crates/schemars) support enable feature `schemars`. +### Feature flags + +Default flags: `tags-all`. + +- `rc`: use `Arc` for deserialization. +- `schemars`: add [schemars](https://crates.io/crates/schemars) support. +- `tags-all`: activate all tags (resource groups) in REST API, it is default behavior. Disable default features and use individual `tag-xxx` features to activate only required resource groups. For a full list reference the [Cargo.toml](Cargo.toml). ## Usage