diff --git a/README.md b/README.md index fc3f474..434fac1 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ go get golang.org/x/net/context Put the package under your project folder and add the following in import: ```go -import keycloak_admin_client "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client" +import keycloak_admin_client "github.com/daytonaio/keycloak-admin-client" ``` To use a proxy, set the environment variable `HTTP_PROXY`: @@ -222,7 +222,7 @@ Class | Method | HTTP request | Description *DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserverscopesearchget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/search | *DefaultAPI* | [**AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet**](docs/DefaultAPI.md#adminrealmsrealmclientsclientuuidauthzresourceserversettingsget) | **Get** /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/settings | *GroupsAPI* | [**AdminRealmsRealmGroupsCountGet**](docs/GroupsAPI.md#adminrealmsrealmgroupscountget) | **Get** /admin/realms/{realm}/groups/count | Returns the groups counts. -*GroupsAPI* | [**AdminRealmsRealmGroupsGet**](docs/GroupsAPI.md#adminrealmsrealmgroupsget) | **Get** /admin/realms/{realm}/groups | Get group hierarchy. Only name and ids are returned. +*GroupsAPI* | [**AdminRealmsRealmGroupsGet**](docs/GroupsAPI.md#adminrealmsrealmgroupsget) | **Get** /admin/realms/{realm}/groups | Get group hierarchy. Only `name` and `id` are returned. `subGroups` are only returned when using the `search` or `q` parameter. If none of these parameters is provided, the top-level groups are returned without `subGroups` being filled. *GroupsAPI* | [**AdminRealmsRealmGroupsGroupIdChildrenGet**](docs/GroupsAPI.md#adminrealmsrealmgroupsgroupidchildrenget) | **Get** /admin/realms/{realm}/groups/{group-id}/children | Return a paginated list of subgroups that have a parent group corresponding to the group on the URL *GroupsAPI* | [**AdminRealmsRealmGroupsGroupIdChildrenPost**](docs/GroupsAPI.md#adminrealmsrealmgroupsgroupidchildrenpost) | **Post** /admin/realms/{realm}/groups/{group-id}/children | Set or create child. *GroupsAPI* | [**AdminRealmsRealmGroupsGroupIdDelete**](docs/GroupsAPI.md#adminrealmsrealmgroupsgroupiddelete) | **Delete** /admin/realms/{realm}/groups/{group-id} | @@ -251,22 +251,22 @@ Class | Method | HTTP request | Description *IdentityProvidersAPI* | [**AdminRealmsRealmIdentityProviderProvidersProviderIdGet**](docs/IdentityProvidersAPI.md#adminrealmsrealmidentityproviderprovidersprovideridget) | **Get** /admin/realms/{realm}/identity-provider/providers/{provider_id} | Get the identity provider factory for that provider id *KeyAPI* | [**AdminRealmsRealmKeysGet**](docs/KeyAPI.md#adminrealmsrealmkeysget) | **Get** /admin/realms/{realm}/keys | *OrganizationsAPI* | [**AdminRealmsRealmOrganizationsGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsget) | **Get** /admin/realms/{realm}/organizations | Returns a paginated list of organizations filtered according to the specified parameters -*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdDelete**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsiddelete) | **Delete** /admin/realms/{realm}/organizations/{id} | Deletes the organization -*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidget) | **Get** /admin/realms/{realm}/organizations/{id} | Returns the organization representation -*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDelete**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsididentityprovidersaliasdelete) | **Delete** /admin/realms/{realm}/organizations/{id}/identity-providers/{alias} | Removes the identity provider with the specified alias from the organization -*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsididentityprovidersaliasget) | **Get** /admin/realms/{realm}/organizations/{id}/identity-providers/{alias} | Returns the identity provider associated with the organization that has the specified alias -*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdIdentityProvidersGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsididentityprovidersget) | **Get** /admin/realms/{realm}/organizations/{id}/identity-providers | Returns all identity providers associated with the organization -*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdIdentityProvidersPost**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsididentityproviderspost) | **Post** /admin/realms/{realm}/organizations/{id}/identity-providers | Adds the identity provider with the specified id to the organization -*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdMembersCountGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidmemberscountget) | **Get** /admin/realms/{realm}/organizations/{id}/members/count | Returns number of members in the organization. -*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdMembersGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidmembersget) | **Get** /admin/realms/{realm}/organizations/{id}/members | Returns a paginated list of organization members filtered according to the specified parameters -*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPost**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidmembersinviteexistinguserpost) | **Post** /admin/realms/{realm}/organizations/{id}/members/invite-existing-user | Invites an existing user to the organization, using the specified user id -*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdMembersInviteUserPost**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidmembersinviteuserpost) | **Post** /admin/realms/{realm}/organizations/{id}/members/invite-user | Invites an existing user or sends a registration link to a new user, based on the provided e-mail address. -*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdMembersPost**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidmemberspost) | **Post** /admin/realms/{realm}/organizations/{id}/members | Adds the user with the specified id as a member of the organization -*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdMembersUserIdDelete**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidmembersuseriddelete) | **Delete** /admin/realms/{realm}/organizations/{id}/members/{userId} | Removes the user with the specified id from the organization -*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdMembersUserIdGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidmembersuseridget) | **Get** /admin/realms/{realm}/organizations/{id}/members/{userId} | Returns the member of the organization with the specified id -*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidmembersuseridorganizationsget) | **Get** /admin/realms/{realm}/organizations/{id}/members/{userId}/organizations | Returns the organizations associated with the user that has the specified id -*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsIdPut**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsidput) | **Put** /admin/realms/{realm}/organizations/{id} | Updates the organization -*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsMembersIdOrganizationsGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsmembersidorganizationsget) | **Get** /admin/realms/{realm}/organizations/members/{id}/organizations | Returns the organizations associated with the user that has the specified id +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsMembersMemberIdOrganizationsGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsmembersmemberidorganizationsget) | **Get** /admin/realms/{realm}/organizations/members/{member-id}/organizations | Returns the organizations associated with the user that has the specified id +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsOrgIdDelete**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsorgiddelete) | **Delete** /admin/realms/{realm}/organizations/{org-id} | Deletes the organization +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsOrgIdGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsorgidget) | **Get** /admin/realms/{realm}/organizations/{org-id} | Returns the organization representation +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasDelete**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsorgididentityprovidersaliasdelete) | **Delete** /admin/realms/{realm}/organizations/{org-id}/identity-providers/{alias} | Removes the identity provider with the specified alias from the organization +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsorgididentityprovidersaliasget) | **Get** /admin/realms/{realm}/organizations/{org-id}/identity-providers/{alias} | Returns the identity provider associated with the organization that has the specified alias +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsOrgIdIdentityProvidersGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsorgididentityprovidersget) | **Get** /admin/realms/{realm}/organizations/{org-id}/identity-providers | Returns all identity providers associated with the organization +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsOrgIdIdentityProvidersPost**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsorgididentityproviderspost) | **Post** /admin/realms/{realm}/organizations/{org-id}/identity-providers | Adds the identity provider with the specified id to the organization +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsOrgIdMembersCountGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsorgidmemberscountget) | **Get** /admin/realms/{realm}/organizations/{org-id}/members/count | Returns number of members in the organization. +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsOrgIdMembersGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsorgidmembersget) | **Get** /admin/realms/{realm}/organizations/{org-id}/members | Returns a paginated list of organization members filtered according to the specified parameters +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsOrgIdMembersInviteExistingUserPost**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsorgidmembersinviteexistinguserpost) | **Post** /admin/realms/{realm}/organizations/{org-id}/members/invite-existing-user | Invites an existing user to the organization, using the specified user id +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsOrgIdMembersInviteUserPost**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsorgidmembersinviteuserpost) | **Post** /admin/realms/{realm}/organizations/{org-id}/members/invite-user | Invites an existing user or sends a registration link to a new user, based on the provided e-mail address. +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsOrgIdMembersMemberIdDelete**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsorgidmembersmemberiddelete) | **Delete** /admin/realms/{realm}/organizations/{org-id}/members/{member-id} | Removes the user with the specified id from the organization +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsOrgIdMembersMemberIdGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsorgidmembersmemberidget) | **Get** /admin/realms/{realm}/organizations/{org-id}/members/{member-id} | Returns the member of the organization with the specified id +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsOrgIdMembersMemberIdOrganizationsGet**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsorgidmembersmemberidorganizationsget) | **Get** /admin/realms/{realm}/organizations/{org-id}/members/{member-id}/organizations | Returns the organizations associated with the user that has the specified id +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsOrgIdMembersPost**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsorgidmemberspost) | **Post** /admin/realms/{realm}/organizations/{org-id}/members | Adds the user with the specified id as a member of the organization +*OrganizationsAPI* | [**AdminRealmsRealmOrganizationsOrgIdPut**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationsorgidput) | **Put** /admin/realms/{realm}/organizations/{org-id} | Updates the organization *OrganizationsAPI* | [**AdminRealmsRealmOrganizationsPost**](docs/OrganizationsAPI.md#adminrealmsrealmorganizationspost) | **Post** /admin/realms/{realm}/organizations | Creates a new organization *ProtocolMappersAPI* | [**AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost**](docs/ProtocolMappersAPI.md#adminrealmsrealmclientscopesclientscopeidprotocolmappersaddmodelspost) | **Post** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/add-models | Create multiple mappers *ProtocolMappersAPI* | [**AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet**](docs/ProtocolMappersAPI.md#adminrealmsrealmclientscopesclientscopeidprotocolmappersmodelsget) | **Get** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models | Get mappers @@ -469,6 +469,7 @@ Class | Method | HTTP request | Description - [AuthenticatorConfigInfoRepresentation](docs/AuthenticatorConfigInfoRepresentation.md) - [AuthenticatorConfigRepresentation](docs/AuthenticatorConfigRepresentation.md) - [Authorization](docs/Authorization.md) + - [AuthorizationSchema](docs/AuthorizationSchema.md) - [BruteForceStrategy](docs/BruteForceStrategy.md) - [CertificateRepresentation](docs/CertificateRepresentation.md) - [ClaimRepresentation](docs/ClaimRepresentation.md) @@ -541,6 +542,7 @@ Class | Method | HTTP request | Description - [ResourceOwnerRepresentation](docs/ResourceOwnerRepresentation.md) - [ResourceRepresentation](docs/ResourceRepresentation.md) - [ResourceServerRepresentation](docs/ResourceServerRepresentation.md) + - [ResourceType](docs/ResourceType.md) - [RoleRepresentation](docs/RoleRepresentation.md) - [RolesRepresentation](docs/RolesRepresentation.md) - [ScopeEnforcementMode](docs/ScopeEnforcementMode.md) diff --git a/api/openapi.json b/api/openapi.json new file mode 100644 index 0000000..85c0e6e --- /dev/null +++ b/api/openapi.json @@ -0,0 +1,19691 @@ +{ + "openapi": "3.0.3", + "info": { + "title": "Keycloak Admin REST API", + "description": "This is a REST API reference for the Keycloak Admin REST API.", + "version": "1.0" + }, + "tags": [ + { + "name": "Attack Detection" + }, + { + "name": "Authentication Management" + }, + { + "name": "Client Attribute Certificate" + }, + { + "name": "Client Initial Access" + }, + { + "name": "Client Registration Policy" + }, + { + "name": "Client Role Mappings" + }, + { + "name": "Client Scopes" + }, + { + "name": "Clients" + }, + { + "name": "Component" + }, + { + "name": "Groups" + }, + { + "name": "Identity Providers" + }, + { + "name": "Key" + }, + { + "name": "Organizations" + }, + { + "name": "Protocol Mappers" + }, + { + "name": "Realms Admin" + }, + { + "name": "Role Mapper" + }, + { + "name": "Roles" + }, + { + "name": "Roles (by ID)" + }, + { + "name": "Scope Mappings" + }, + { + "name": "Users" + } + ], + "paths": { + "/admin/realms": { + "get": { + "tags": [ + "Realms Admin" + ], + "summary": "Get accessible realms Returns a list of accessible realms. The list is filtered based on what realms the caller is allowed to view.", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "schema": { + "default": false, + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RealmRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Realms Admin" + ], + "summary": "Import a realm. Imports a realm from a full representation of that realm.", + "description": "Realm name must be unique.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "format": "binary", + "type": "string" + } + } + } + }, + "responses": { + "201": { + "description": "Created" + } + } + } + }, + "/admin/realms/{realm}": { + "get": { + "tags": [ + "Realms Admin" + ], + "summary": "Get the top-level representation of the realm It will not include nested information like User and Client representations.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RealmRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Realms Admin" + ], + "summary": "Update the top-level information of the realm Any user, roles or client information in the representation will be ignored.", + "description": "This will only update top-level attributes of the realm.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RealmRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "delete": { + "tags": [ + "Realms Admin" + ], + "summary": "Delete the realm", + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/admin-events": { + "get": { + "tags": [ + "Realms Admin" + ], + "summary": "Get admin events Returns all admin events, or filters events based on URL query parameters listed here", + "parameters": [ + { + "name": "authClient", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "authIpAddress", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "authRealm", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "authUser", + "in": "query", + "description": "user id", + "schema": { + "type": "string" + } + }, + { + "name": "dateFrom", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "dateTo", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "first", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "description": "Maximum results size (defaults to 100)", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "operationTypes", + "in": "query", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "resourcePath", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "resourceTypes", + "in": "query", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AdminEventRepresentation" + } + } + } + } + } + } + }, + "delete": { + "tags": [ + "Realms Admin" + ], + "summary": "Delete all admin events", + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/attack-detection/brute-force/users": { + "delete": { + "tags": [ + "Attack Detection" + ], + "summary": "Clear any user login failures for all users This can release temporary disabled users", + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/attack-detection/brute-force/users/{userId}": { + "get": { + "tags": [ + "Attack Detection" + ], + "summary": "Get status of a username in brute force detection", + "parameters": [ + { + "name": "userId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": {} + } + } + } + } + } + }, + "delete": { + "tags": [ + "Attack Detection" + ], + "summary": "Clear any user login failures for the user This can release temporary disabled user", + "parameters": [ + { + "name": "userId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/authenticator-providers": { + "get": { + "tags": [ + "Authentication Management" + ], + "summary": "Get authenticator providers Returns a stream of authenticator providers.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": {} + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/client-authenticator-providers": { + "get": { + "tags": [ + "Authentication Management" + ], + "summary": "Get client authenticator providers Returns a stream of client authenticator providers.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": {} + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/config": { + "post": { + "tags": [ + "Authentication Management" + ], + "summary": "Create new authenticator configuration", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthenticatorConfigRepresentation" + } + } + } + }, + "responses": { + "201": { + "description": "Created" + } + }, + "deprecated": true + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/config-description/{providerId}": { + "get": { + "tags": [ + "Authentication Management" + ], + "summary": "Get authenticator provider's configuration description", + "parameters": [ + { + "name": "providerId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthenticatorConfigInfoRepresentation" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/config/{id}": { + "get": { + "tags": [ + "Authentication Management" + ], + "summary": "Get authenticator configuration", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Configuration id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthenticatorConfigRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Authentication Management" + ], + "summary": "Update authenticator configuration", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Configuration id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthenticatorConfigRepresentation" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Authentication Management" + ], + "summary": "Delete authenticator configuration", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Configuration id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/executions": { + "post": { + "tags": [ + "Authentication Management" + ], + "summary": "Add new authentication execution", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthenticationExecutionRepresentation" + } + } + } + }, + "responses": { + "201": { + "description": "Created" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/executions/{executionId}": { + "get": { + "tags": [ + "Authentication Management" + ], + "summary": "Get Single Execution", + "parameters": [ + { + "name": "executionId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthenticationExecutionRepresentation" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Authentication Management" + ], + "summary": "Delete execution", + "parameters": [ + { + "name": "executionId", + "in": "path", + "description": "Execution id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/executions/{executionId}/config": { + "post": { + "tags": [ + "Authentication Management" + ], + "summary": "Update execution with new configuration", + "parameters": [ + { + "name": "executionId", + "in": "path", + "description": "Execution id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthenticatorConfigRepresentation" + } + } + } + }, + "responses": { + "201": { + "description": "Created" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/executions/{executionId}/config/{id}": { + "get": { + "tags": [ + "Authentication Management" + ], + "summary": "Get execution's configuration", + "parameters": [ + { + "name": "executionId", + "in": "path", + "description": "Execution id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "id", + "in": "path", + "description": "Configuration id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthenticatorConfigRepresentation" + } + } + } + } + }, + "deprecated": true + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/executions/{executionId}/lower-priority": { + "post": { + "tags": [ + "Authentication Management" + ], + "summary": "Lower execution's priority", + "parameters": [ + { + "name": "executionId", + "in": "path", + "description": "Execution id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/executions/{executionId}/raise-priority": { + "post": { + "tags": [ + "Authentication Management" + ], + "summary": "Raise execution's priority", + "parameters": [ + { + "name": "executionId", + "in": "path", + "description": "Execution id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/flows": { + "get": { + "tags": [ + "Authentication Management" + ], + "summary": "Get authentication flows Returns a stream of authentication flows.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AuthenticationFlowRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Authentication Management" + ], + "summary": "Create a new authentication flow", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthenticationFlowRepresentation" + } + } + } + }, + "responses": { + "201": { + "description": "Created" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/flows/{flowAlias}/copy": { + "post": { + "tags": [ + "Authentication Management" + ], + "summary": "Copy existing authentication flow under a new name The new name is given as 'newName' attribute of the passed JSON object", + "parameters": [ + { + "name": "flowAlias", + "in": "path", + "description": "name of the existing authentication flow", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "responses": { + "201": { + "description": "Created" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/flows/{flowAlias}/executions": { + "get": { + "tags": [ + "Authentication Management" + ], + "summary": "Get authentication executions for a flow", + "parameters": [ + { + "name": "flowAlias", + "in": "path", + "description": "Flow alias", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AuthenticationExecutionInfoRepresentation" + } + } + } + } + } + } + }, + "put": { + "tags": [ + "Authentication Management" + ], + "summary": "Update authentication executions of a Flow", + "parameters": [ + { + "name": "flowAlias", + "in": "path", + "description": "Flow alias", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthenticationExecutionInfoRepresentation" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/flows/{flowAlias}/executions/execution": { + "post": { + "tags": [ + "Authentication Management" + ], + "summary": "Add new authentication execution to a flow", + "parameters": [ + { + "name": "flowAlias", + "in": "path", + "description": "Alias of parent flow", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": {} + } + } + } + }, + "responses": { + "201": { + "description": "Created" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/flows/{flowAlias}/executions/flow": { + "post": { + "tags": [ + "Authentication Management" + ], + "summary": "Add new flow with new execution to existing flow", + "parameters": [ + { + "name": "flowAlias", + "in": "path", + "description": "Alias of parent authentication flow", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": {} + } + } + } + }, + "responses": { + "201": { + "description": "Created" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/flows/{id}": { + "get": { + "tags": [ + "Authentication Management" + ], + "summary": "Get authentication flow for id", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Flow id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthenticationFlowRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Authentication Management" + ], + "summary": "Update an authentication flow", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthenticationFlowRepresentation" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Authentication Management" + ], + "summary": "Delete an authentication flow", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Flow id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/form-action-providers": { + "get": { + "tags": [ + "Authentication Management" + ], + "summary": "Get form action providers Returns a stream of form action providers.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": {} + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/form-providers": { + "get": { + "tags": [ + "Authentication Management" + ], + "summary": "Get form providers Returns a stream of form providers.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": {} + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/per-client-config-description": { + "get": { + "tags": [ + "Authentication Management" + ], + "summary": "Get configuration descriptions for all clients", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ConfigPropertyRepresentation" + } + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/register-required-action": { + "post": { + "tags": [ + "Authentication Management" + ], + "summary": "Register a new required actions", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/required-actions": { + "get": { + "tags": [ + "Authentication Management" + ], + "summary": "Get required actions Returns a stream of required actions.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RequiredActionProviderRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/required-actions/{alias}": { + "get": { + "tags": [ + "Authentication Management" + ], + "summary": "Get required action for alias", + "parameters": [ + { + "name": "alias", + "in": "path", + "description": "Alias of required action", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RequiredActionProviderRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Authentication Management" + ], + "summary": "Update required action", + "parameters": [ + { + "name": "alias", + "in": "path", + "description": "Alias of required action", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RequiredActionProviderRepresentation" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Authentication Management" + ], + "summary": "Delete required action", + "parameters": [ + { + "name": "alias", + "in": "path", + "description": "Alias of required action", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/required-actions/{alias}/config": { + "get": { + "tags": [ + "Authentication Management" + ], + "summary": "Get RequiredAction configuration", + "parameters": [ + { + "name": "alias", + "in": "path", + "description": "Alias of required action", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RequiredActionConfigRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Authentication Management" + ], + "summary": "Update RequiredAction configuration", + "parameters": [ + { + "name": "alias", + "in": "path", + "description": "Alias of required action", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RequiredActionConfigRepresentation" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Authentication Management" + ], + "summary": "Delete RequiredAction configuration", + "parameters": [ + { + "name": "alias", + "in": "path", + "description": "Alias of required action", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/required-actions/{alias}/config-description": { + "get": { + "tags": [ + "Authentication Management" + ], + "summary": "Get RequiredAction provider configuration description", + "parameters": [ + { + "name": "alias", + "in": "path", + "description": "Alias of required action", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RequiredActionConfigInfoRepresentation" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/required-actions/{alias}/lower-priority": { + "post": { + "tags": [ + "Authentication Management" + ], + "summary": "Lower required action's priority", + "parameters": [ + { + "name": "alias", + "in": "path", + "description": "Alias of required action", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/required-actions/{alias}/raise-priority": { + "post": { + "tags": [ + "Authentication Management" + ], + "summary": "Raise required action's priority", + "parameters": [ + { + "name": "alias", + "in": "path", + "description": "Alias of required action", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/authentication/unregistered-required-actions": { + "get": { + "tags": [ + "Authentication Management" + ], + "summary": "Get unregistered required actions Returns a stream of unregistered required actions.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-description-converter": { + "post": { + "tags": [ + "Realms Admin" + ], + "summary": "Base path for importing clients under this realm.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "string" + } + }, + "application/xml": { + "schema": { + "type": "string" + } + }, + "text/plain": { + "schema": { + "type": "string" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientRepresentation" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-policies/policies": { + "get": { + "tags": [ + "Realms Admin" + ], + "parameters": [ + { + "name": "include-global-policies", + "in": "query", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientPoliciesRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Realms Admin" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientPoliciesRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-policies/profiles": { + "get": { + "tags": [ + "Realms Admin" + ], + "parameters": [ + { + "name": "include-global-profiles", + "in": "query", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientProfilesRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Realms Admin" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientProfilesRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-registration-policy/providers": { + "get": { + "tags": [ + "Client Registration Policy" + ], + "summary": "Base path for retrieve providers with the configProperties properly filled", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ComponentTypeRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-scopes": { + "get": { + "tags": [ + "Client Scopes" + ], + "summary": "Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientScopeRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Client Scopes" + ], + "summary": "Create a new client scope Client Scope’s name must be unique!", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientScopeRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-scopes/{client-scope-id}": { + "get": { + "tags": [ + "Client Scopes" + ], + "summary": "Get representation of the client scope", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientScopeRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Client Scopes" + ], + "summary": "Update the client scope", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientScopeRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "delete": { + "tags": [ + "Client Scopes" + ], + "summary": "Delete the client scope", + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/add-models": { + "post": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Create multiple mappers", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models": { + "get": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Get mappers", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Create a mapper", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id}": { + "get": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Get mapper by id", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Mapper id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Update the mapper", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Mapper id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Delete the mapper", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Mapper id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/protocol/{protocol}": { + "get": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Get mappers by name for a specific protocol", + "parameters": [ + { + "name": "protocol", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get all scope mappings for the client", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MappingsRepresentation" + } + } + } + } + }, + "deprecated": true + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get the roles associated with a client's scope Returns roles for the client.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Scope Mappings" + ], + "summary": "Add client-level roles to the client's scope", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Scope Mappings" + ], + "summary": "Remove client-level roles from the client's scope.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}/available": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "The available client-level roles Returns the roles for the client that can be associated with the client's scope", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/clients/{client}/composite": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get effective client roles Returns the roles for the client that are associated with the client's scope.", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "description": "if false, return roles with their attributes", + "schema": { + "default": true, + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get realm-level roles associated with the client's scope", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Scope Mappings" + ], + "summary": "Add a set of realm-level roles to the client's scope", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Scope Mappings" + ], + "summary": "Remove a set of realm-level roles from the client's scope", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm/available": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get realm-level roles that are available to attach to this client's scope", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-scopes/{client-scope-id}/scope-mappings/realm/composite": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists.", + "description": "The method is really to show a comprehensive total view of realm-level roles associated with the client.", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "description": "if false, return roles with their attributes", + "schema": { + "default": true, + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-session-stats": { + "get": { + "tags": [ + "Realms Admin" + ], + "summary": "Get client session stats Returns a JSON map.", + "description": "The key is the client id, the value is the number of sessions that currently are active with that client. Only clients that actually have a session associated with them will be in this map.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-templates": { + "get": { + "tags": [ + "Client Scopes" + ], + "summary": "Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientScopeRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Client Scopes" + ], + "summary": "Create a new client scope Client Scope’s name must be unique!", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientScopeRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-templates/{client-scope-id}": { + "get": { + "tags": [ + "Client Scopes" + ], + "summary": "Get representation of the client scope", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientScopeRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Client Scopes" + ], + "summary": "Update the client scope", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientScopeRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "delete": { + "tags": [ + "Client Scopes" + ], + "summary": "Delete the client scope", + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/add-models": { + "post": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Create multiple mappers", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models": { + "get": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Get mappers", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Create a mapper", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models/{id}": { + "get": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Get mapper by id", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Mapper id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Update the mapper", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Mapper id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Delete the mapper", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Mapper id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/protocol/{protocol}": { + "get": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Get mappers by name for a specific protocol", + "parameters": [ + { + "name": "protocol", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get all scope mappings for the client", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MappingsRepresentation" + } + } + } + } + }, + "deprecated": true + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get the roles associated with a client's scope Returns roles for the client.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Scope Mappings" + ], + "summary": "Add client-level roles to the client's scope", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Scope Mappings" + ], + "summary": "Remove client-level roles from the client's scope.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}/available": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "The available client-level roles Returns the roles for the client that can be associated with the client's scope", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/clients/{client}/composite": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get effective client roles Returns the roles for the client that are associated with the client's scope.", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "description": "if false, return roles with their attributes", + "schema": { + "default": true, + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get realm-level roles associated with the client's scope", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Scope Mappings" + ], + "summary": "Add a set of realm-level roles to the client's scope", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Scope Mappings" + ], + "summary": "Remove a set of realm-level roles from the client's scope", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm/available": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get realm-level roles that are available to attach to this client's scope", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-templates/{client-scope-id}/scope-mappings/realm/composite": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists.", + "description": "The method is really to show a comprehensive total view of realm-level roles associated with the client.", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "description": "if false, return roles with their attributes", + "schema": { + "default": true, + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/client-types": { + "get": { + "tags": [ + "Realms Admin" + ], + "summary": "List all client types available in the current realm", + "description": "This endpoint returns a list of both global and realm level client types and the attributes they set", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientTypesRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Realms Admin" + ], + "summary": "Update a client type", + "description": "This endpoint allows you to update a realm level client type", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientTypesRepresentation" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Get clients belonging to the realm.", + "description": "If a client can’t be retrieved from the storage due to a problem with the underlying storage, it is silently removed from the returned list. This ensures that concurrent modifications to the list don’t prevent callers from retrieving this list.", + "parameters": [ + { + "name": "clientId", + "in": "query", + "description": "filter by clientId", + "schema": { + "type": "string" + } + }, + { + "name": "first", + "in": "query", + "description": "the first result", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "description": "the max results to return", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "q", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "search", + "in": "query", + "description": "whether this is a search query or a getClientById query", + "schema": { + "default": false, + "type": "boolean" + } + }, + { + "name": "viewableOnly", + "in": "query", + "description": "filter clients that cannot be viewed in full by admin", + "schema": { + "default": false, + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Clients" + ], + "summary": "Create a new client Client’s client_id must be unique!", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientRepresentation" + } + } + } + }, + "responses": { + "201": { + "description": "Created" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients-initial-access": { + "get": { + "tags": [ + "Client Initial Access" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientInitialAccessPresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Client Initial Access" + ], + "summary": "Create a new initial access token.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientInitialAccessCreatePresentation" + } + } + } + }, + "responses": { + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientInitialAccessCreatePresentation" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients-initial-access/{id}": { + "delete": { + "tags": [ + "Client Initial Access" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Get representation of the client", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Clients" + ], + "summary": "Update the client", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "delete": { + "tags": [ + "Clients" + ], + "summary": "Delete the client", + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ResourceServerRepresentation" + } + } + } + } + } + }, + "put": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ResourceServerRepresentation" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/import": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ResourceServerRepresentation" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission": { + "get": { + "parameters": [ + { + "name": "fields", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "first", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "name", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "owner", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "permission", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "policyId", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "resource", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "scope", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "type", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AbstractPolicyRepresentation" + } + } + } + } + }, + "204": { + "description": "No Content" + } + } + }, + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + } + }, + "responses": { + "201": { + "description": "Created" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/evaluate": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PolicyEvaluationRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PolicyEvaluationResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/providers": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyProviderRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/search": { + "get": { + "parameters": [ + { + "name": "fields", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "name", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AbstractPolicyRepresentation" + } + } + } + }, + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy": { + "get": { + "parameters": [ + { + "name": "fields", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "first", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "name", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "owner", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "permission", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "policyId", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "resource", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "scope", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "type", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AbstractPolicyRepresentation" + } + } + } + } + }, + "204": { + "description": "No Content" + } + } + }, + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + } + }, + "responses": { + "201": { + "description": "Created" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/evaluate": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PolicyEvaluationRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PolicyEvaluationResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/providers": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyProviderRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/search": { + "get": { + "parameters": [ + { + "name": "fields", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "name", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AbstractPolicyRepresentation" + } + } + } + }, + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource": { + "get": { + "parameters": [ + { + "name": "_id", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "deep", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "exactName", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "matchingUri", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "max", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "name", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "owner", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "scope", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "type", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "uri", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ResourceRepresentation" + } + } + } + } + } + } + }, + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ResourceRepresentation" + } + } + } + }, + "responses": { + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ResourceRepresentation" + } + } + } + }, + "400": { + "description": "Bad Request" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "_id", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "deep", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "exactName", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "matchingUri", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "max", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "name", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "owner", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "scope", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "type", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "uri", + "in": "query", + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/search": { + "get": { + "parameters": [ + { + "name": "name", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ResourceRepresentation" + } + } + } + }, + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "_id", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "deep", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "exactName", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "matchingUri", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "max", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "name", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "owner", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "scope", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "type", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "uri", + "in": "query", + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}": { + "get": { + "parameters": [ + { + "name": "resource-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ResourceRepresentation" + } + } + } + }, + "404": { + "description": "Not found" + } + } + }, + "put": { + "parameters": [ + { + "name": "resource-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ResourceRepresentation" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + }, + "404": { + "description": "Not Found" + } + } + }, + "delete": { + "parameters": [ + { + "name": "resource-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "404": { + "description": "Not Found" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "_id", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "deep", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "exactName", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "matchingUri", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "max", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "name", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "owner", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "scope", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "type", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "uri", + "in": "query", + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/attributes": { + "get": { + "parameters": [ + { + "name": "resource-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "_id", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "deep", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "exactName", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "matchingUri", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "max", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "name", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "owner", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "scope", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "type", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "uri", + "in": "query", + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/permissions": { + "get": { + "parameters": [ + { + "name": "resource-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyRepresentation" + } + } + } + } + }, + "404": { + "description": "Not found" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "_id", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "deep", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "exactName", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "matchingUri", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "max", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "name", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "owner", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "scope", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "type", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "uri", + "in": "query", + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/scopes": { + "get": { + "parameters": [ + { + "name": "resource-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScopeRepresentation" + } + } + } + } + }, + "404": { + "description": "Not found" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "_id", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "deep", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "exactName", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "matchingUri", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "max", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "name", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "owner", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "scope", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "type", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "uri", + "in": "query", + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope": { + "get": { + "parameters": [ + { + "name": "first", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "name", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "scopeId", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScopeRepresentation" + } + } + } + } + } + } + }, + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ScopeRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/search": { + "get": { + "parameters": [ + { + "name": "name", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScopeRepresentation" + } + } + } + } + }, + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}": { + "get": { + "parameters": [ + { + "name": "scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ScopeRepresentation" + } + } + } + }, + "404": { + "description": "Not found" + } + } + }, + "put": { + "parameters": [ + { + "name": "scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ScopeRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "delete": { + "parameters": [ + { + "name": "scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}/permissions": { + "get": { + "parameters": [ + { + "name": "scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyRepresentation" + } + } + } + } + }, + "404": { + "description": "Not found" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}/resources": { + "get": { + "parameters": [ + { + "name": "scope-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ResourceRepresentation" + } + } + } + } + }, + "404": { + "description": "Not found" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/settings": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ResourceServerRepresentation" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}": { + "get": { + "tags": [ + "Client Attribute Certificate" + ], + "summary": "Get key info", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CertificateRepresentation" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "attr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/download": { + "post": { + "tags": [ + "Client Attribute Certificate" + ], + "summary": "Get a keystore file for the client, containing private key and public certificate", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KeyStoreConfig" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/octet-stream": { + "schema": { + "format": "binary", + "type": "string" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "attr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate": { + "post": { + "tags": [ + "Client Attribute Certificate" + ], + "summary": "Generate a new certificate with new key pair", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CertificateRepresentation" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "attr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate-and-download": { + "post": { + "tags": [ + "Client Attribute Certificate" + ], + "summary": "Generate a new keypair and certificate, and get the private key file\n\nGenerates a keypair and certificate and serves the private key in a specified keystore format.\nOnly generated public certificate is saved in Keycloak DB - the private key is not.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KeyStoreConfig" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/octet-stream": { + "schema": { + "format": "binary", + "type": "string" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "attr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload": { + "post": { + "tags": [ + "Client Attribute Certificate" + ], + "summary": "Upload certificate and eventually private key", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CertificateRepresentation" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "attr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload-certificate": { + "post": { + "tags": [ + "Client Attribute Certificate" + ], + "summary": "Upload only certificate, not private key", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CertificateRepresentation" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "attr", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/client-secret": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Get the client secret", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CredentialRepresentation" + } + } + } + } + } + }, + "post": { + "tags": [ + "Clients" + ], + "summary": "Generate a new secret for the client", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CredentialRepresentation" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/client-secret/rotated": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Get the rotated client secret", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CredentialRepresentation" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Clients" + ], + "summary": "Invalidate the rotated secret for the client", + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/default-client-scopes": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Get default client scopes. Only name and ids are returned.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientScopeRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/default-client-scopes/{clientScopeId}": { + "put": { + "tags": [ + "Clients" + ], + "parameters": [ + { + "name": "clientScopeId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Clients" + ], + "parameters": [ + { + "name": "clientScopeId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-access-token": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Create JSON with payload of example access token", + "parameters": [ + { + "name": "scope", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "userId", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccessToken" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-id-token": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Create JSON with payload of example id token", + "parameters": [ + { + "name": "scope", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "userId", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IDToken" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/generate-example-userinfo": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Create JSON with payload of example user info", + "parameters": [ + { + "name": "scope", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "userId", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": {} + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/protocol-mappers": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Return list of all protocol mappers, which will be used when generating tokens issued for particular client.", + "description": "This means protocol mappers assigned to this client directly and protocol mappers assigned to all client scopes of this client.", + "parameters": [ + { + "name": "scope", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProtocolMapperEvaluationRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/scope-mappings/{roleContainerId}/granted": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Get effective scope mapping of all roles of particular role container, which this client is defacto allowed to have in the accessToken issued for him.", + "description": "This contains scope mappings, which this client has directly, as well as scope mappings, which are granted to all client scopes, which are linked with this client.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "roleContainerId", + "in": "path", + "description": "either realm name OR client UUID", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "scope", + "in": "query", + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Get roles, which this client doesn't have scope for and can't have them in the accessToken issued for him.", + "description": "Defacto all the other roles of particular role container, which are not in {@link #getGrantedScopeMappings()}", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "roleContainerId", + "in": "path", + "description": "either realm name OR client UUID", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "scope", + "in": "query", + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/installation/providers/{providerId}": { + "get": { + "tags": [ + "Clients" + ], + "parameters": [ + { + "name": "providerId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/management/permissions": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Return object stating whether client Authorization permissions have been initialized or not and a reference", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + } + } + }, + "put": { + "tags": [ + "Clients" + ], + "summary": "Return object stating whether client Authorization permissions have been initialized or not and a reference", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/nodes": { + "post": { + "tags": [ + "Clients" + ], + "summary": "Register a cluster node with the client Manually register cluster node to this client - usually it’s not needed to call this directly as adapter should handle by sending registration request to Keycloak", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/nodes/{node}": { + "delete": { + "tags": [ + "Clients" + ], + "summary": "Unregister a cluster node from the client", + "parameters": [ + { + "name": "node", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/offline-session-count": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Get application offline session count Returns a number of offline user sessions associated with this client { \"count\": number }", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "format": "int64", + "type": "integer" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/offline-sessions": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Get offline sessions for client Returns a list of offline user sessions associated with this client", + "parameters": [ + { + "name": "first", + "in": "query", + "description": "Paging offset", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "description": "Maximum results size (defaults to 100)", + "schema": { + "format": "int32", + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserSessionRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Get optional client scopes. Only name and ids are returned.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientScopeRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/optional-client-scopes/{clientScopeId}": { + "put": { + "tags": [ + "Clients" + ], + "parameters": [ + { + "name": "clientScopeId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Clients" + ], + "parameters": [ + { + "name": "clientScopeId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/add-models": { + "post": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Create multiple mappers", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models": { + "get": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Get mappers", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Create a mapper", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models/{id}": { + "get": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Get mapper by id", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Mapper id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Update the mapper", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Mapper id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Delete the mapper", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Mapper id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/protocol/{protocol}": { + "get": { + "tags": [ + "Protocol Mappers" + ], + "summary": "Get mappers by name for a specific protocol", + "parameters": [ + { + "name": "protocol", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/push-revocation": { + "post": { + "tags": [ + "Clients" + ], + "summary": "Push the client's revocation policy to its admin URL If the client has an admin URL, push revocation policy to it.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GlobalRequestResult" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/registration-access-token": { + "post": { + "tags": [ + "Clients" + ], + "summary": "Generate a new registration access token for the client", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientRepresentation" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/roles": { + "get": { + "tags": [ + "Roles" + ], + "summary": "Get all roles for the realm or client", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "schema": { + "default": true, + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "search", + "in": "query", + "schema": { + "default": "", + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Roles" + ], + "summary": "Create a new role for the realm or client", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}": { + "get": { + "tags": [ + "Roles" + ], + "summary": "Get a role by name", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "role's name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Roles" + ], + "summary": "Update a role by name", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "role's name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "delete": { + "tags": [ + "Roles" + ], + "summary": "Delete a role by name", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "role's name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites": { + "get": { + "tags": [ + "Roles" + ], + "summary": "Get composites of the role", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "role's name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Roles" + ], + "summary": "Add a composite to the role", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "role's name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Roles" + ], + "summary": "Remove roles from the role's composite", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "role's name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/clients/{client-in-composite-uuid}": { + "get": { + "tags": [ + "Roles" + ], + "summary": "Get client-level roles for the client that are in the role's composite", + "parameters": [ + { + "name": "client-uuid", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "role-name", + "in": "path", + "description": "role's name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-in-composite-uuid", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/realm": { + "get": { + "tags": [ + "Roles" + ], + "summary": "Get realm-level roles of the role's composite", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "role's name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/groups": { + "get": { + "tags": [ + "Roles" + ], + "summary": "Returns a stream of groups that have the specified role name", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "the role name.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "briefRepresentation", + "in": "query", + "description": "if false, return a full representation of the {@code GroupRepresentation} objects.", + "schema": { + "default": true, + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "description": "first result to return. Ignored if negative or {@code null}.", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "description": "maximum number of results to return. Ignored if negative or {@code null}.", + "schema": { + "format": "int32", + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/management/permissions": { + "get": { + "tags": [ + "Roles" + ], + "summary": "Return object stating whether role Authorization permissions have been initialized or not and a reference", + "parameters": [ + { + "name": "role-name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + } + } + }, + "put": { + "tags": [ + "Roles" + ], + "summary": "Return object stating whether role Authorization permissions have been initialized or not and a reference", + "parameters": [ + { + "name": "role-name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/users": { + "get": { + "tags": [ + "Roles" + ], + "summary": "Returns a stream of users that have the specified role name.", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "the role name.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "briefRepresentation", + "in": "query", + "description": "Boolean which defines whether brief representations are returned (default: false)", + "schema": { + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "description": "first result to return. Ignored if negative or {@code null}.", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "description": "maximum number of results to return. Ignored if negative or {@code null}.", + "schema": { + "format": "int32", + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get all scope mappings for the client", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MappingsRepresentation" + } + } + } + } + }, + "deprecated": true + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get the roles associated with a client's scope Returns roles for the client.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Scope Mappings" + ], + "summary": "Add client-level roles to the client's scope", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Scope Mappings" + ], + "summary": "Remove client-level roles from the client's scope.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}/available": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "The available client-level roles Returns the roles for the client that can be associated with the client's scope", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings/clients/{client}/composite": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get effective client roles Returns the roles for the client that are associated with the client's scope.", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "description": "if false, return roles with their attributes", + "schema": { + "default": true, + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get realm-level roles associated with the client's scope", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Scope Mappings" + ], + "summary": "Add a set of realm-level roles to the client's scope", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Scope Mappings" + ], + "summary": "Remove a set of realm-level roles from the client's scope", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm/available": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get realm-level roles that are available to attach to this client's scope", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/scope-mappings/realm/composite": { + "get": { + "tags": [ + "Scope Mappings" + ], + "summary": "Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists.", + "description": "The method is really to show a comprehensive total view of realm-level roles associated with the client.", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "description": "if false, return roles with their attributes", + "schema": { + "default": true, + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/service-account-user": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Get a user dedicated to the service account", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserRepresentation" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/session-count": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Get application session count Returns a number of user sessions associated with this client { \"count\": number }", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "format": "int64", + "type": "integer" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/test-nodes-available": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Test if registered cluster nodes are available Tests availability by sending 'ping' request to all cluster nodes.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GlobalRequestResult" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/clients/{client-uuid}/user-sessions": { + "get": { + "tags": [ + "Clients" + ], + "summary": "Get user sessions for client Returns a list of user sessions associated with this client\n", + "parameters": [ + { + "name": "first", + "in": "query", + "description": "Paging offset", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "description": "Maximum results size (defaults to 100)", + "schema": { + "format": "int32", + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserSessionRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-uuid", + "in": "path", + "description": "id of client (not client-id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/components": { + "get": { + "tags": [ + "Component" + ], + "parameters": [ + { + "name": "name", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "parent", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "type", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ComponentRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Component" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ComponentRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/components/{id}": { + "get": { + "tags": [ + "Component" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ComponentRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Component" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ComponentRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "delete": { + "tags": [ + "Component" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/components/{id}/sub-component-types": { + "get": { + "tags": [ + "Component" + ], + "summary": "List of subcomponent types that are available to configure for a particular parent component.", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "type", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ComponentTypeRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/credential-registrators": { + "get": { + "tags": [ + "Realms Admin" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/default-default-client-scopes": { + "get": { + "tags": [ + "Realms Admin" + ], + "summary": "Get realm default client scopes. Only name and ids are returned.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientScopeRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/default-default-client-scopes/{clientScopeId}": { + "put": { + "tags": [ + "Realms Admin" + ], + "parameters": [ + { + "name": "clientScopeId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Realms Admin" + ], + "parameters": [ + { + "name": "clientScopeId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/default-groups": { + "get": { + "tags": [ + "Realms Admin" + ], + "summary": "Get group hierarchy. Only name and ids are returned.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/default-groups/{groupId}": { + "put": { + "tags": [ + "Realms Admin" + ], + "parameters": [ + { + "name": "groupId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Realms Admin" + ], + "parameters": [ + { + "name": "groupId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/default-optional-client-scopes": { + "get": { + "tags": [ + "Realms Admin" + ], + "summary": "Get realm optional client scopes. Only name and ids are returned.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientScopeRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}": { + "put": { + "tags": [ + "Realms Admin" + ], + "parameters": [ + { + "name": "clientScopeId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Realms Admin" + ], + "parameters": [ + { + "name": "clientScopeId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/events": { + "get": { + "tags": [ + "Realms Admin" + ], + "summary": "Get events Returns all events, or filters them based on URL query parameters listed here", + "parameters": [ + { + "name": "client", + "in": "query", + "description": "App or oauth client name", + "schema": { + "type": "string" + } + }, + { + "name": "dateFrom", + "in": "query", + "description": "From date", + "schema": { + "type": "string" + } + }, + { + "name": "dateTo", + "in": "query", + "description": "To date", + "schema": { + "type": "string" + } + }, + { + "name": "first", + "in": "query", + "description": "Paging offset", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "ipAddress", + "in": "query", + "description": "IP Address", + "schema": { + "type": "string" + } + }, + { + "name": "max", + "in": "query", + "description": "Maximum results size (defaults to 100)", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "type", + "in": "query", + "description": "The types of events to return", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "user", + "in": "query", + "description": "User id", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EventRepresentation" + } + } + } + } + } + } + }, + "delete": { + "tags": [ + "Realms Admin" + ], + "summary": "Delete all events", + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/events/config": { + "get": { + "tags": [ + "Realms Admin" + ], + "summary": "Get the events provider configuration Returns JSON object with events provider configuration", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RealmEventsConfigRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Realms Admin" + ], + "description": "Update the events provider Change the events provider and/or its configuration", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RealmEventsConfigRepresentation" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/group-by-path/{path}": { + "get": { + "tags": [ + "Realms Admin" + ], + "parameters": [ + { + "name": "path", + "in": "path", + "required": true, + "schema": { + "pattern": ".*", + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupRepresentation" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/groups": { + "get": { + "tags": [ + "Groups" + ], + "summary": "Get group hierarchy. Only `name` and `id` are returned. `subGroups` are only returned when using the `search` or `q` parameter. If none of these parameters is provided, the top-level groups are returned without `subGroups` being filled.", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "schema": { + "default": true, + "type": "boolean" + } + }, + { + "name": "exact", + "in": "query", + "schema": { + "default": "false", + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "populateHierarchy", + "in": "query", + "schema": { + "default": true, + "type": "boolean" + } + }, + { + "name": "q", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "search", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Groups" + ], + "summary": "create or add a top level realm groupSet or create child.", + "description": "This will update the group and set the parent if it exists. Create it and set the parent if the group doesn’t exist.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/groups/count": { + "get": { + "tags": [ + "Groups" + ], + "summary": "Returns the groups counts.", + "parameters": [ + { + "name": "search", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "top", + "in": "query", + "schema": { + "default": false, + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "format": "int64", + "type": "integer" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/groups/{group-id}": { + "get": { + "tags": [ + "Groups" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Groups" + ], + "summary": "Update group, ignores subgroups.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "delete": { + "tags": [ + "Groups" + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "group-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/groups/{group-id}/children": { + "get": { + "tags": [ + "Groups" + ], + "summary": "Return a paginated list of subgroups that have a parent group corresponding to the group on the URL", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "description": "Boolean which defines whether brief groups representations are returned or not (default: false)", + "schema": { + "default": "false", + "type": "boolean" + } + }, + { + "name": "exact", + "in": "query", + "description": "Boolean which defines whether the params \"search\" must match exactly or not", + "schema": { + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "description": "The position of the first result to be returned (pagination offset).", + "schema": { + "format": "int32", + "default": "0", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "description": "The maximum number of results that are to be returned. Defaults to 10", + "schema": { + "format": "int32", + "default": "10", + "type": "integer" + } + }, + { + "name": "search", + "in": "query", + "description": "A String representing either an exact group name or a partial name", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Groups" + ], + "summary": "Set or create child.", + "description": "This will just set the parent if it exists. Create it and set the parent if the group doesn’t exist.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "group-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/groups/{group-id}/management/permissions": { + "get": { + "tags": [ + "Groups" + ], + "summary": "Return object stating whether client Authorization permissions have been initialized or not and a reference", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + } + } + }, + "put": { + "tags": [ + "Groups" + ], + "summary": "Return object stating whether client Authorization permissions have been initialized or not and a reference", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "group-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/groups/{group-id}/members": { + "get": { + "tags": [ + "Groups" + ], + "summary": "Get users Returns a stream of users, filtered according to query parameters", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "description": "Only return basic information (only guaranteed to return id, username, created, first and last name, email, enabled state, email verification state, federation link, and access. Note that it means that namely user attributes, required actions, and not before are not returned.)", + "schema": { + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "description": "Pagination offset", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "description": "Maximum results size (defaults to 100)", + "schema": { + "format": "int32", + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "group-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/groups/{group-id}/role-mappings": { + "get": { + "tags": [ + "Role Mapper" + ], + "summary": "Get role mappings", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MappingsRepresentation" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "group-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}": { + "get": { + "tags": [ + "Client Role Mappings" + ], + "summary": "Get client-level role mappings for the user or group, and the app", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Client Role Mappings" + ], + "summary": "Add client-level roles to the user or group role mapping", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Client Role Mappings" + ], + "summary": "Delete client-level roles from user or group role mapping", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "group-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-id", + "in": "path", + "description": "client id (not clientId!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}/available": { + "get": { + "tags": [ + "Client Role Mappings" + ], + "summary": "Get available client-level roles that can be mapped to the user or group", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "group-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-id", + "in": "path", + "description": "client id (not clientId!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/groups/{group-id}/role-mappings/clients/{client-id}/composite": { + "get": { + "tags": [ + "Client Role Mappings" + ], + "summary": "Get effective client-level role mappings This recurses any composite roles", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "description": "if false, return roles with their attributes", + "schema": { + "default": true, + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "group-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-id", + "in": "path", + "description": "client id (not clientId!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/groups/{group-id}/role-mappings/realm": { + "get": { + "tags": [ + "Role Mapper" + ], + "summary": "Get realm-level role mappings", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Role Mapper" + ], + "summary": "Add realm-level role mappings to the user", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Role Mapper" + ], + "summary": "Delete realm-level role mappings", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "group-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/groups/{group-id}/role-mappings/realm/available": { + "get": { + "tags": [ + "Role Mapper" + ], + "summary": "Get realm-level roles that can be mapped", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "group-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/groups/{group-id}/role-mappings/realm/composite": { + "get": { + "tags": [ + "Role Mapper" + ], + "summary": "Get effective realm-level role mappings This will recurse all composite roles to get the result.", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "description": "if false, return roles with their attributes", + "schema": { + "default": true, + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "group-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/identity-provider/import-config": { + "post": { + "tags": [ + "Identity Providers" + ], + "summary": "Import identity provider from JSON body", + "description": "Import identity provider from uploaded JSON file", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": {} + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/identity-provider/instances": { + "get": { + "tags": [ + "Identity Providers" + ], + "summary": "List identity providers", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "description": "Boolean which defines whether brief representations are returned (default: false)", + "schema": { + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "description": "Pagination offset", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "description": "Maximum results size (defaults to 100)", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "realmOnly", + "in": "query", + "description": "Boolean which defines if only realm-level IDPs (not associated with orgs) should be returned (default: false)", + "schema": { + "type": "boolean" + } + }, + { + "name": "search", + "in": "query", + "description": "Filter specific providers by name. Search can be prefix (name*), contains (*name*) or exact (\"name\"). Default prefixed.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentityProviderRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Identity Providers" + ], + "summary": "Create a new identity provider", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IdentityProviderRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/identity-provider/instances/{alias}": { + "get": { + "tags": [ + "Identity Providers" + ], + "summary": "Get the identity provider", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IdentityProviderRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Identity Providers" + ], + "summary": "Update the identity provider", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IdentityProviderRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "delete": { + "tags": [ + "Identity Providers" + ], + "summary": "Delete the identity provider", + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "alias", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/identity-provider/instances/{alias}/export": { + "get": { + "tags": [ + "Identity Providers" + ], + "summary": "Export public broker configuration for identity provider", + "parameters": [ + { + "name": "format", + "in": "query", + "description": "Format to use", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "alias", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions": { + "get": { + "tags": [ + "Identity Providers" + ], + "summary": "Return object stating whether client Authorization permissions have been initialized or not and a reference", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + } + } + }, + "put": { + "tags": [ + "Identity Providers" + ], + "summary": "Return object stating whether client Authorization permissions have been initialized or not and a reference", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "alias", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/identity-provider/instances/{alias}/mapper-types": { + "get": { + "tags": [ + "Identity Providers" + ], + "summary": "Get mapper types for identity provider", + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/IdentityProviderMapperTypeRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "alias", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/identity-provider/instances/{alias}/mappers": { + "get": { + "tags": [ + "Identity Providers" + ], + "summary": "Get mappers for identity provider", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentityProviderMapperRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Identity Providers" + ], + "summary": "Add a mapper to identity provider", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IdentityProviderMapperRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "alias", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}": { + "get": { + "tags": [ + "Identity Providers" + ], + "summary": "Get mapper by id for the identity provider", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IdentityProviderMapperRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Identity Providers" + ], + "summary": "Update a mapper for the identity provider", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Mapper id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IdentityProviderMapperRepresentation" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Identity Providers" + ], + "summary": "Delete a mapper for the identity provider", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Mapper id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "alias", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/identity-provider/instances/{alias}/reload-keys": { + "get": { + "tags": [ + "Identity Providers" + ], + "summary": "Reaload keys for the identity provider if the provider supports it, \"true\" is returned if reload was performed, \"false\" if not.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "alias", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/identity-provider/providers/{provider_id}": { + "get": { + "tags": [ + "Identity Providers" + ], + "summary": "Get the identity provider factory for that provider id", + "parameters": [ + { + "name": "provider_id", + "in": "path", + "description": "The provider id to get the factory", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/keys": { + "get": { + "tags": [ + "Key" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KeysMetadataRepresentation" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/localization": { + "get": { + "tags": [ + "Realms Admin" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/localization/{locale}": { + "get": { + "tags": [ + "Realms Admin" + ], + "parameters": [ + { + "name": "locale", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "useRealmDefaultLocaleFallback", + "in": "query", + "schema": { + "type": "boolean" + }, + "deprecated": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Realms Admin" + ], + "summary": "Import localization from uploaded JSON file", + "parameters": [ + { + "name": "locale", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Realms Admin" + ], + "parameters": [ + { + "name": "locale", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/localization/{locale}/{key}": { + "get": { + "tags": [ + "Realms Admin" + ], + "parameters": [ + { + "name": "key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "locale", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "type": "string" + } + } + } + } + } + }, + "put": { + "tags": [ + "Realms Admin" + ], + "parameters": [ + { + "name": "key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "locale", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "text/plain": { + "schema": { + "type": "string" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Realms Admin" + ], + "parameters": [ + { + "name": "key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "locale", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/logout-all": { + "post": { + "tags": [ + "Realms Admin" + ], + "summary": "Removes all user sessions.", + "description": "Any client that has an admin url will also be told to invalidate any sessions they have.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GlobalRequestResult" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/organizations": { + "get": { + "tags": [ + "Organizations" + ], + "summary": "Returns a paginated list of organizations filtered according to the specified parameters", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "description": "if true, return the full representation. Otherwise, only the basic fields are returned.", + "schema": { + "default": false, + "type": "boolean" + } + }, + { + "name": "exact", + "in": "query", + "description": "Boolean which defines whether the param 'search' must match exactly or not", + "schema": { + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "description": "The position of the first result to be processed (pagination offset)", + "schema": { + "format": "int32", + "default": "0", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "description": "The maximum number of results to be returned - defaults to 10", + "schema": { + "format": "int32", + "default": "10", + "type": "integer" + } + }, + { + "name": "q", + "in": "query", + "description": "A query to search for custom attributes, in the format 'key1:value2 key2:value2'", + "schema": { + "type": "string" + } + }, + { + "name": "search", + "in": "query", + "description": "A String representing either an organization name or domain", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OrganizationRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Organizations" + ], + "summary": "Creates a new organization", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrganizationRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/organizations/members/{member-id}/organizations": { + "get": { + "tags": [ + "Organizations" + ], + "summary": "Returns the organizations associated with the user that has the specified id", + "parameters": [ + { + "name": "member-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OrganizationRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/organizations/{org-id}": { + "get": { + "tags": [ + "Organizations" + ], + "summary": "Returns the organization representation", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrganizationRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Organizations" + ], + "summary": "Updates the organization", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrganizationRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "delete": { + "tags": [ + "Organizations" + ], + "summary": "Deletes the organization", + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "org-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/organizations/{org-id}/identity-providers": { + "get": { + "tags": [ + "Organizations" + ], + "summary": "Returns all identity providers associated with the organization", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentityProviderRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Organizations" + ], + "summary": "Adds the identity provider with the specified id to the organization", + "description": "Adds, or associates, an existing identity provider with the organization. If no identity provider is found, or if it is already associated with the organization, an error response is returned", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "org-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/organizations/{org-id}/identity-providers/{alias}": { + "get": { + "tags": [ + "Organizations" + ], + "summary": "Returns the identity provider associated with the organization that has the specified alias", + "description": "Searches for an identity provider with the given alias. If one is found and is associated with the organization, it is returned. Otherwise, an error response with status NOT_FOUND is returned", + "parameters": [ + { + "name": "alias", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IdentityProviderRepresentation" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Organizations" + ], + "summary": "Removes the identity provider with the specified alias from the organization", + "description": "Breaks the association between the identity provider and the organization. The provider itself is not deleted. If no provider is found, or if it is not currently associated with the org, an error response is returned", + "parameters": [ + { + "name": "alias", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "org-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/organizations/{org-id}/members": { + "get": { + "tags": [ + "Organizations" + ], + "summary": "Returns a paginated list of organization members filtered according to the specified parameters", + "parameters": [ + { + "name": "exact", + "in": "query", + "description": "Boolean which defines whether the param 'search' must match exactly or not", + "schema": { + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "description": "The position of the first result to be processed (pagination offset)", + "schema": { + "format": "int32", + "default": "0", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "description": "The maximum number of results to be returned. Defaults to 10", + "schema": { + "format": "int32", + "default": "10", + "type": "integer" + } + }, + { + "name": "membershipType", + "in": "query", + "description": "The membership type", + "schema": { + "type": "string" + } + }, + { + "name": "search", + "in": "query", + "description": "A String representing either a member's username, e-mail, first name, or last name.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MemberRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Organizations" + ], + "summary": "Adds the user with the specified id as a member of the organization", + "description": "Adds, or associates, an existing user with the organization. If no user is found, or if it is already associated with the organization, an error response is returned", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "org-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/organizations/{org-id}/members/count": { + "get": { + "tags": [ + "Organizations" + ], + "summary": "Returns number of members in the organization.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "format": "int64", + "type": "integer" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "org-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/organizations/{org-id}/members/invite-existing-user": { + "post": { + "tags": [ + "Organizations" + ], + "summary": "Invites an existing user to the organization, using the specified user id", + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "org-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/organizations/{org-id}/members/invite-user": { + "post": { + "tags": [ + "Organizations" + ], + "summary": "Invites an existing user or sends a registration link to a new user, based on the provided e-mail address.", + "description": "If the user with the given e-mail address exists, it sends an invitation link, otherwise it sends a registration link.", + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "firstName": { + "type": "string" + }, + "lastName": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "org-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/organizations/{org-id}/members/{member-id}": { + "get": { + "tags": [ + "Organizations" + ], + "summary": "Returns the member of the organization with the specified id", + "description": "Searches for auser with the given id. If one is found, and is currently a member of the organization, returns it. Otherwise,an error response with status NOT_FOUND is returned", + "parameters": [ + { + "name": "member-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MemberRepresentation" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Organizations" + ], + "summary": "Removes the user with the specified id from the organization", + "description": "Breaks the association between the user and organization. The user itself is deleted in case the membership is managed, otherwise the user is not deleted. If no user is found, or if they are not a member of the organization, an error response is returned", + "parameters": [ + { + "name": "member-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "org-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/organizations/{org-id}/members/{member-id}/organizations": { + "get": { + "tags": [ + "Organizations" + ], + "summary": "Returns the organizations associated with the user that has the specified id", + "parameters": [ + { + "name": "member-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OrganizationRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "org-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/partial-export": { + "post": { + "tags": [ + "Realms Admin" + ], + "summary": "Partial export of existing realm into a JSON file.", + "parameters": [ + { + "name": "exportClients", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "exportGroupsAndRoles", + "in": "query", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/partialImport": { + "post": { + "tags": [ + "Realms Admin" + ], + "summary": "Partial import from a JSON file to an existing realm.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "format": "binary", + "type": "string" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/push-revocation": { + "post": { + "tags": [ + "Realms Admin" + ], + "summary": "Push the realm's revocation policy to any client that has an admin url associated with it.", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GlobalRequestResult" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/roles": { + "get": { + "tags": [ + "Roles" + ], + "summary": "Get all roles for the realm or client", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "schema": { + "default": true, + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "search", + "in": "query", + "schema": { + "default": "", + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Roles" + ], + "summary": "Create a new role for the realm or client", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/roles-by-id/{role-id}": { + "get": { + "tags": [ + "Roles (by ID)" + ], + "summary": "Get a specific role's representation", + "parameters": [ + { + "name": "role-id", + "in": "path", + "description": "id of role", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Roles (by ID)" + ], + "summary": "Update the role", + "parameters": [ + { + "name": "role-id", + "in": "path", + "description": "id of role", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Roles (by ID)" + ], + "summary": "Delete the role", + "parameters": [ + { + "name": "role-id", + "in": "path", + "description": "id of role", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/roles-by-id/{role-id}/composites": { + "get": { + "tags": [ + "Roles (by ID)" + ], + "summary": "Get role's children Returns a set of role's children provided the role is a composite.", + "parameters": [ + { + "name": "role-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "first", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "search", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Roles (by ID)" + ], + "summary": "Make the role a composite role by associating some child roles", + "parameters": [ + { + "name": "role-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Roles (by ID)" + ], + "summary": "Remove a set of roles from the role's composite", + "parameters": [ + { + "name": "role-id", + "in": "path", + "description": "Role id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/roles-by-id/{role-id}/composites/clients/{clientUuid}": { + "get": { + "tags": [ + "Roles (by ID)" + ], + "summary": "Get client-level roles for the client that are in the role's composite", + "parameters": [ + { + "name": "clientUuid", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "role-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/roles-by-id/{role-id}/composites/realm": { + "get": { + "tags": [ + "Roles (by ID)" + ], + "summary": "Get realm-level roles that are in the role's composite", + "parameters": [ + { + "name": "role-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/roles-by-id/{role-id}/management/permissions": { + "get": { + "tags": [ + "Roles (by ID)" + ], + "summary": "Return object stating whether role Authorization permissions have been initialized or not and a reference", + "parameters": [ + { + "name": "role-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + } + } + }, + "put": { + "tags": [ + "Roles (by ID)" + ], + "summary": "Return object stating whether role Authorization permissions have been initialized or not and a reference", + "parameters": [ + { + "name": "role-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/roles/{role-name}": { + "get": { + "tags": [ + "Roles" + ], + "summary": "Get a role by name", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "role's name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Roles" + ], + "summary": "Update a role by name", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "role's name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "delete": { + "tags": [ + "Roles" + ], + "summary": "Delete a role by name", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "role's name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/roles/{role-name}/composites": { + "get": { + "tags": [ + "Roles" + ], + "summary": "Get composites of the role", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "role's name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Roles" + ], + "summary": "Add a composite to the role", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "role's name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Roles" + ], + "summary": "Remove roles from the role's composite", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "role's name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/roles/{role-name}/composites/clients/{client-uuid}": { + "get": { + "tags": [ + "Roles" + ], + "summary": "Get client-level roles for the client that are in the role's composite", + "parameters": [ + { + "name": "client-uuid", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "role-name", + "in": "path", + "description": "role's name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/roles/{role-name}/composites/realm": { + "get": { + "tags": [ + "Roles" + ], + "summary": "Get realm-level roles of the role's composite", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "role's name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/roles/{role-name}/groups": { + "get": { + "tags": [ + "Roles" + ], + "summary": "Returns a stream of groups that have the specified role name", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "the role name.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "briefRepresentation", + "in": "query", + "description": "if false, return a full representation of the {@code GroupRepresentation} objects.", + "schema": { + "default": true, + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "description": "first result to return. Ignored if negative or {@code null}.", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "description": "maximum number of results to return. Ignored if negative or {@code null}.", + "schema": { + "format": "int32", + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/roles/{role-name}/management/permissions": { + "get": { + "tags": [ + "Roles" + ], + "summary": "Return object stating whether role Authorization permissions have been initialized or not and a reference", + "parameters": [ + { + "name": "role-name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + } + } + }, + "put": { + "tags": [ + "Roles" + ], + "summary": "Return object stating whether role Authorization permissions have been initialized or not and a reference", + "parameters": [ + { + "name": "role-name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/roles/{role-name}/users": { + "get": { + "tags": [ + "Roles" + ], + "summary": "Returns a stream of users that have the specified role name.", + "parameters": [ + { + "name": "role-name", + "in": "path", + "description": "the role name.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "briefRepresentation", + "in": "query", + "description": "Boolean which defines whether brief representations are returned (default: false)", + "schema": { + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "description": "first result to return. Ignored if negative or {@code null}.", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "description": "maximum number of results to return. Ignored if negative or {@code null}.", + "schema": { + "format": "int32", + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/sessions/{session}": { + "delete": { + "tags": [ + "Realms Admin" + ], + "summary": "Remove a specific user session.", + "description": "Any client that has an admin url will also be told to invalidate this particular session.", + "parameters": [ + { + "name": "session", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "isOffline", + "in": "query", + "schema": { + "default": false, + "type": "boolean" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/testSMTPConnection": { + "post": { + "tags": [ + "Realms Admin" + ], + "summary": "Test SMTP connection with current logged in user", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "config": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + }, + "deprecated": true + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users": { + "get": { + "tags": [ + "Users" + ], + "summary": "Get users Returns a stream of users, filtered according to query parameters.", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "description": "Boolean which defines whether brief representations are returned (default: false)", + "schema": { + "type": "boolean" + } + }, + { + "name": "email", + "in": "query", + "description": "A String contained in email, or the complete email, if param \"exact\" is true", + "schema": { + "type": "string" + } + }, + { + "name": "emailVerified", + "in": "query", + "description": "whether the email has been verified", + "schema": { + "type": "boolean" + } + }, + { + "name": "enabled", + "in": "query", + "description": "Boolean representing if user is enabled or not", + "schema": { + "type": "boolean" + } + }, + { + "name": "exact", + "in": "query", + "description": "Boolean which defines whether the params \"last\", \"first\", \"email\" and \"username\" must match exactly", + "schema": { + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "description": "Pagination offset", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "firstName", + "in": "query", + "description": "A String contained in firstName, or the complete firstName, if param \"exact\" is true", + "schema": { + "type": "string" + } + }, + { + "name": "idpAlias", + "in": "query", + "description": "The alias of an Identity Provider linked to the user", + "schema": { + "type": "string" + } + }, + { + "name": "idpUserId", + "in": "query", + "description": "The userId at an Identity Provider linked to the user", + "schema": { + "type": "string" + } + }, + { + "name": "lastName", + "in": "query", + "description": "A String contained in lastName, or the complete lastName, if param \"exact\" is true", + "schema": { + "type": "string" + } + }, + { + "name": "max", + "in": "query", + "description": "Maximum results size (defaults to 100)", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "q", + "in": "query", + "description": "A query to search for custom attributes, in the format 'key1:value2 key2:value2'", + "schema": { + "type": "string" + } + }, + { + "name": "search", + "in": "query", + "description": "A String contained in username, first or last name, or email. Default search behavior is prefix-based (e.g., foo or foo*). Use *foo* for infix search and \"foo\" for exact search.", + "schema": { + "type": "string" + } + }, + { + "name": "username", + "in": "query", + "description": "A String contained in username, or the complete username, if param \"exact\" is true", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Users" + ], + "summary": "Create a new user Username must be unique.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users-management-permissions": { + "get": { + "tags": [ + "Realms Admin" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + } + } + }, + "put": { + "tags": [ + "Realms Admin" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ManagementPermissionReference" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/count": { + "get": { + "tags": [ + "Users" + ], + "summary": "Returns the number of users that match the given criteria.", + "description": "It can be called in three different ways. 1. Don’t specify any criteria and pass {@code null}. The number of all users within that realm will be returned.
2. If {@code search} is specified other criteria such as {@code last} will be ignored even though you set them. The {@code search} string will be matched against the first and last name, the username and the email of a user.
3. If {@code search} is unspecified but any of {@code last}, {@code first}, {@code email} or {@code username} those criteria are matched against their respective fields on a user entity. Combined with a logical and.", + "parameters": [ + { + "name": "email", + "in": "query", + "description": "email filter", + "schema": { + "type": "string" + } + }, + { + "name": "emailVerified", + "in": "query", + "schema": { + "type": "boolean" + } + }, + { + "name": "enabled", + "in": "query", + "description": "Boolean representing if user is enabled or not", + "schema": { + "type": "boolean" + } + }, + { + "name": "firstName", + "in": "query", + "description": "first name filter", + "schema": { + "type": "string" + } + }, + { + "name": "lastName", + "in": "query", + "description": "last name filter", + "schema": { + "type": "string" + } + }, + { + "name": "q", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "search", + "in": "query", + "description": "arbitrary search string for all the fields below. Default search behavior is prefix-based (e.g., foo or foo*). Use *foo* for infix search and \"foo\" for exact search.", + "schema": { + "type": "string" + } + }, + { + "name": "username", + "in": "query", + "description": "username filter", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "format": "int32", + "type": "integer" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/profile": { + "get": { + "tags": [ + "Users" + ], + "description": "Get the configuration for the user profile", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UPConfig" + } + } + } + } + } + }, + "put": { + "tags": [ + "Users" + ], + "description": "Set the configuration for the user profile", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UPConfig" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UPConfig" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/profile/metadata": { + "get": { + "tags": [ + "Users" + ], + "description": "Get the UserProfileMetadata from the configuration", + "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/{user-id}": { + "get": { + "tags": [ + "Users" + ], + "summary": "Get representation of the user", + "parameters": [ + { + "name": "userProfileMetadata", + "in": "query", + "description": "Indicates if the user profile metadata should be added to the response", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserRepresentation" + } + } + } + } + } + }, + "put": { + "tags": [ + "Users" + ], + "summary": "Update the user", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserRepresentation" + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "delete": { + "tags": [ + "Users" + ], + "summary": "Delete the user", + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/configured-user-storage-credential-types": { + "get": { + "tags": [ + "Users" + ], + "summary": "Return credential types, which are provided by the user storage where user is stored.", + "description": "Returned values can contain for example \"password\", \"otp\" etc. This will always return empty list for \"local\" users, which are not backed by any user storage", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/consents": { + "get": { + "tags": [ + "Users" + ], + "summary": "Get consents granted by the user", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": {} + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/consents/{client}": { + "delete": { + "tags": [ + "Users" + ], + "summary": "Revoke consent and offline tokens for particular client from user", + "parameters": [ + { + "name": "client", + "in": "path", + "description": "Client id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/credentials": { + "get": { + "tags": [ + "Users" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CredentialRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/credentials/{credentialId}": { + "delete": { + "tags": [ + "Users" + ], + "summary": "Remove a credential for a user", + "parameters": [ + { + "name": "credentialId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}": { + "post": { + "tags": [ + "Users" + ], + "summary": "Move a credential to a position behind another credential", + "parameters": [ + { + "name": "credentialId", + "in": "path", + "description": "The credential to move", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "newPreviousCredentialId", + "in": "path", + "description": "The credential that will be the previous element in the list. If set to null, the moved credential will be the first element in the list.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/moveToFirst": { + "post": { + "tags": [ + "Users" + ], + "summary": "Move a credential to a first position in the credentials list of the user", + "parameters": [ + { + "name": "credentialId", + "in": "path", + "description": "The credential to move", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/credentials/{credentialId}/userLabel": { + "put": { + "tags": [ + "Users" + ], + "summary": "Update a credential label for a user", + "parameters": [ + { + "name": "credentialId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "text/plain": { + "schema": { + "type": "string" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/disable-credential-types": { + "put": { + "tags": [ + "Users" + ], + "summary": "Disable all credentials for a user of a specific type", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/execute-actions-email": { + "put": { + "tags": [ + "Users" + ], + "summary": "Send an email to the user with a link they can click to execute particular actions.", + "description": "An email contains a link the user can click to perform a set of required actions. The redirectUri and clientId parameters are optional. If no redirect is given, then there will be no link back to click after actions have completed. Redirect uri must be a valid uri for the particular clientId.", + "parameters": [ + { + "name": "client_id", + "in": "query", + "description": "Client id", + "schema": { + "type": "string" + } + }, + { + "name": "lifespan", + "in": "query", + "description": "Number of seconds after which the generated token expires", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "redirect_uri", + "in": "query", + "description": "Redirect uri", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/federated-identity": { + "get": { + "tags": [ + "Users" + ], + "summary": "Get social logins associated with the user", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FederatedIdentityRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/federated-identity/{provider}": { + "post": { + "tags": [ + "Users" + ], + "summary": "Add a social login provider to the user", + "parameters": [ + { + "name": "provider", + "in": "path", + "description": "Social login provider id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + } + }, + "delete": { + "tags": [ + "Users" + ], + "summary": "Remove a social login provider from user", + "parameters": [ + { + "name": "provider", + "in": "path", + "description": "Social login provider id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/groups": { + "get": { + "tags": [ + "Users" + ], + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "schema": { + "default": true, + "type": "boolean" + } + }, + { + "name": "first", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "max", + "in": "query", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "search", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/groups/count": { + "get": { + "tags": [ + "Users" + ], + "parameters": [ + { + "name": "search", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "format": "int64", + "type": "integer" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/groups/{groupId}": { + "put": { + "tags": [ + "Users" + ], + "parameters": [ + { + "name": "groupId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Users" + ], + "parameters": [ + { + "name": "groupId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/impersonation": { + "post": { + "tags": [ + "Users" + ], + "summary": "Impersonate the user", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": {} + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/logout": { + "post": { + "tags": [ + "Users" + ], + "summary": "Remove all user sessions associated with the user Also send notification to all clients that have an admin URL to invalidate the sessions for the particular user.", + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/offline-sessions/{clientUuid}": { + "get": { + "tags": [ + "Users" + ], + "summary": "Get offline sessions associated with the user and client", + "parameters": [ + { + "name": "clientUuid", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserSessionRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/reset-password": { + "put": { + "tags": [ + "Users" + ], + "summary": "Set up a new password for the user.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CredentialRepresentation" + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/reset-password-email": { + "put": { + "tags": [ + "Users" + ], + "summary": "Send an email to the user with a link they can click to reset their password.", + "description": "The redirectUri and clientId parameters are optional. The default for the redirect is the account client. This endpoint has been deprecated. Please use the execute-actions-email passing a list with UPDATE_PASSWORD within it.", + "parameters": [ + { + "name": "client_id", + "in": "query", + "description": "client id", + "schema": { + "type": "string" + } + }, + { + "name": "redirect_uri", + "in": "query", + "description": "redirect uri", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "deprecated": true + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/role-mappings": { + "get": { + "tags": [ + "Role Mapper" + ], + "summary": "Get role mappings", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MappingsRepresentation" + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}": { + "get": { + "tags": [ + "Client Role Mappings" + ], + "summary": "Get client-level role mappings for the user or group, and the app", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Client Role Mappings" + ], + "summary": "Add client-level roles to the user or group role mapping", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Client Role Mappings" + ], + "summary": "Delete client-level roles from user or group role mapping", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-id", + "in": "path", + "description": "client id (not clientId!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}/available": { + "get": { + "tags": [ + "Client Role Mappings" + ], + "summary": "Get available client-level roles that can be mapped to the user or group", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-id", + "in": "path", + "description": "client id (not clientId!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/role-mappings/clients/{client-id}/composite": { + "get": { + "tags": [ + "Client Role Mappings" + ], + "summary": "Get effective client-level role mappings This recurses any composite roles", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "description": "if false, return roles with their attributes", + "schema": { + "default": true, + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "client-id", + "in": "path", + "description": "client id (not clientId!)", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/role-mappings/realm": { + "get": { + "tags": [ + "Role Mapper" + ], + "summary": "Get realm-level role mappings", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "post": { + "tags": [ + "Role Mapper" + ], + "summary": "Add realm-level role mappings to the user", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "delete": { + "tags": [ + "Role Mapper" + ], + "summary": "Delete realm-level role mappings", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + }, + "responses": { + "204": { + "description": "No Content" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/role-mappings/realm/available": { + "get": { + "tags": [ + "Role Mapper" + ], + "summary": "Get realm-level roles that can be mapped", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/role-mappings/realm/composite": { + "get": { + "tags": [ + "Role Mapper" + ], + "summary": "Get effective realm-level role mappings This will recurse all composite roles to get the result.", + "parameters": [ + { + "name": "briefRepresentation", + "in": "query", + "description": "if false, return roles with their attributes", + "schema": { + "default": true, + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/send-verify-email": { + "put": { + "tags": [ + "Users" + ], + "summary": "Send an email-verification email to the user An email contains a link the user can click to verify their email address.", + "description": "The redirectUri, clientId and lifespan parameters are optional. The default for the redirect is the account client. The default for the lifespan is 12 hours", + "parameters": [ + { + "name": "client_id", + "in": "query", + "description": "Client id", + "schema": { + "type": "string" + } + }, + { + "name": "lifespan", + "in": "query", + "description": "Number of seconds after which the generated token expires", + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "name": "redirect_uri", + "in": "query", + "description": "Redirect uri", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/sessions": { + "get": { + "tags": [ + "Users" + ], + "summary": "Get sessions associated with the user", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserSessionRepresentation" + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "/admin/realms/{realm}/users/{user-id}/unmanagedAttributes": { + "get": { + "tags": [ + "Users" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "parameters": [ + { + "name": "realm", + "in": "path", + "description": "realm name (not id!)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "user-id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "components": { + "schemas": { + "AbstractPolicyRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string" + }, + "policies": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "resources": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "scopes": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "logic": { + "$ref": "#/components/schemas/Logic" + }, + "decisionStrategy": { + "$ref": "#/components/schemas/DecisionStrategy" + }, + "owner": { + "type": "string" + }, + "resourceType": { + "type": "string" + }, + "resourcesData": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/ResourceRepresentation" + } + }, + "scopesData": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/ScopeRepresentation" + } + } + } + }, + "Access": { + "type": "object", + "properties": { + "roles": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "verify_caller": { + "type": "boolean" + } + } + }, + "AccessToken": { + "type": "object", + "properties": { + "jti": { + "type": "string" + }, + "exp": { + "format": "int64", + "type": "integer" + }, + "nbf": { + "format": "int64", + "type": "integer" + }, + "iat": { + "format": "int64", + "type": "integer" + }, + "iss": { + "type": "string" + }, + "sub": { + "type": "string" + }, + "typ": { + "type": "string" + }, + "azp": { + "type": "string" + }, + "otherClaims": { + "type": "object", + "additionalProperties": {} + }, + "nonce": { + "type": "string" + }, + "auth_time": { + "format": "int64", + "type": "integer" + }, + "sid": { + "type": "string" + }, + "at_hash": { + "type": "string" + }, + "c_hash": { + "type": "string" + }, + "name": { + "type": "string" + }, + "given_name": { + "type": "string" + }, + "family_name": { + "type": "string" + }, + "middle_name": { + "type": "string" + }, + "nickname": { + "type": "string" + }, + "preferred_username": { + "type": "string" + }, + "profile": { + "type": "string" + }, + "picture": { + "type": "string" + }, + "website": { + "type": "string" + }, + "email": { + "type": "string" + }, + "email_verified": { + "type": "boolean" + }, + "gender": { + "type": "string" + }, + "birthdate": { + "type": "string" + }, + "zoneinfo": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "phone_number": { + "type": "string" + }, + "phone_number_verified": { + "type": "boolean" + }, + "address": { + "$ref": "#/components/schemas/AddressClaimSet" + }, + "updated_at": { + "format": "int64", + "type": "integer" + }, + "claims_locales": { + "type": "string" + }, + "acr": { + "type": "string" + }, + "s_hash": { + "type": "string" + }, + "trusted-certs": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "allowed-origins": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "realm_access": { + "$ref": "#/components/schemas/Access" + }, + "resource_access": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/Access" + }, + "writeOnly": true + }, + "authorization": { + "$ref": "#/components/schemas/Authorization" + }, + "cnf": { + "$ref": "#/components/schemas/Confirmation" + }, + "scope": { + "type": "string" + } + } + }, + "AddressClaimSet": { + "type": "object", + "properties": { + "formatted": { + "type": "string" + }, + "street_address": { + "type": "string" + }, + "locality": { + "type": "string" + }, + "region": { + "type": "string" + }, + "postal_code": { + "type": "string" + }, + "country": { + "type": "string" + } + } + }, + "AdminEventRepresentation": { + "type": "object", + "properties": { + "time": { + "format": "int64", + "type": "integer" + }, + "realmId": { + "type": "string" + }, + "authDetails": { + "$ref": "#/components/schemas/AuthDetailsRepresentation" + }, + "operationType": { + "type": "string" + }, + "resourceType": { + "type": "string" + }, + "resourcePath": { + "type": "string" + }, + "representation": { + "type": "string" + }, + "error": { + "type": "string" + }, + "details": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "ApplicationRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "clientId": { + "type": "string" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string" + }, + "rootUrl": { + "type": "string" + }, + "adminUrl": { + "type": "string" + }, + "baseUrl": { + "type": "string" + }, + "surrogateAuthRequired": { + "type": "boolean" + }, + "enabled": { + "type": "boolean" + }, + "alwaysDisplayInConsole": { + "type": "boolean" + }, + "clientAuthenticatorType": { + "type": "string" + }, + "secret": { + "type": "string" + }, + "registrationAccessToken": { + "type": "string" + }, + "defaultRoles": { + "type": "array", + "items": { + "type": "string" + }, + "deprecated": true + }, + "redirectUris": { + "type": "array", + "items": { + "type": "string" + } + }, + "webOrigins": { + "type": "array", + "items": { + "type": "string" + } + }, + "notBefore": { + "format": "int32", + "type": "integer" + }, + "bearerOnly": { + "type": "boolean" + }, + "consentRequired": { + "type": "boolean" + }, + "standardFlowEnabled": { + "type": "boolean" + }, + "implicitFlowEnabled": { + "type": "boolean" + }, + "directAccessGrantsEnabled": { + "type": "boolean" + }, + "serviceAccountsEnabled": { + "type": "boolean" + }, + "authorizationServicesEnabled": { + "type": "boolean" + }, + "directGrantsOnly": { + "type": "boolean", + "deprecated": true + }, + "publicClient": { + "type": "boolean" + }, + "frontchannelLogout": { + "type": "boolean" + }, + "protocol": { + "type": "string" + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "authenticationFlowBindingOverrides": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "fullScopeAllowed": { + "type": "boolean" + }, + "nodeReRegistrationTimeout": { + "format": "int32", + "type": "integer" + }, + "registeredNodes": { + "type": "object", + "additionalProperties": { + "format": "int32", + "type": "integer" + } + }, + "protocolMappers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + }, + "clientTemplate": { + "type": "string", + "deprecated": true + }, + "useTemplateConfig": { + "type": "boolean", + "deprecated": true + }, + "useTemplateScope": { + "type": "boolean", + "deprecated": true + }, + "useTemplateMappers": { + "type": "boolean", + "deprecated": true + }, + "defaultClientScopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "optionalClientScopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "authorizationSettings": { + "$ref": "#/components/schemas/ResourceServerRepresentation" + }, + "access": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "origin": { + "type": "string" + }, + "name": { + "type": "string" + }, + "claims": { + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/ClaimRepresentation" + } + ], + "deprecated": true + } + }, + "deprecated": true + }, + "AuthDetailsRepresentation": { + "type": "object", + "properties": { + "realmId": { + "type": "string" + }, + "clientId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "ipAddress": { + "type": "string" + } + } + }, + "AuthenticationExecutionExportRepresentation": { + "type": "object", + "properties": { + "authenticatorConfig": { + "type": "string" + }, + "authenticator": { + "type": "string" + }, + "authenticatorFlow": { + "type": "boolean" + }, + "requirement": { + "type": "string" + }, + "priority": { + "format": "int32", + "type": "integer" + }, + "autheticatorFlow": { + "type": "boolean", + "deprecated": true + }, + "flowAlias": { + "type": "string" + }, + "userSetupAllowed": { + "type": "boolean" + } + } + }, + "AuthenticationExecutionInfoRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "requirement": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "alias": { + "type": "string" + }, + "description": { + "type": "string" + }, + "requirementChoices": { + "type": "array", + "items": { + "type": "string" + } + }, + "configurable": { + "type": "boolean" + }, + "authenticationFlow": { + "type": "boolean" + }, + "providerId": { + "type": "string" + }, + "authenticationConfig": { + "type": "string" + }, + "flowId": { + "type": "string" + }, + "level": { + "format": "int32", + "type": "integer" + }, + "index": { + "format": "int32", + "type": "integer" + }, + "priority": { + "format": "int32", + "type": "integer" + } + } + }, + "AuthenticationExecutionRepresentation": { + "type": "object", + "properties": { + "authenticatorConfig": { + "type": "string" + }, + "authenticator": { + "type": "string" + }, + "authenticatorFlow": { + "type": "boolean" + }, + "requirement": { + "type": "string" + }, + "priority": { + "format": "int32", + "type": "integer" + }, + "autheticatorFlow": { + "type": "boolean", + "deprecated": true + }, + "id": { + "type": "string" + }, + "flowId": { + "type": "string" + }, + "parentFlow": { + "type": "string" + } + } + }, + "AuthenticationFlowRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "alias": { + "type": "string" + }, + "description": { + "type": "string" + }, + "providerId": { + "type": "string" + }, + "topLevel": { + "type": "boolean" + }, + "builtIn": { + "type": "boolean" + }, + "authenticationExecutions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AuthenticationExecutionExportRepresentation" + } + } + } + }, + "AuthenticatorConfigInfoRepresentation": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "providerId": { + "type": "string" + }, + "helpText": { + "type": "string" + }, + "properties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ConfigPropertyRepresentation" + } + } + } + }, + "AuthenticatorConfigRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "alias": { + "type": "string" + }, + "config": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "Authorization": { + "type": "object", + "properties": { + "permissions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Permission" + } + } + } + }, + "AuthorizationSchema": { + "type": "object", + "properties": { + "resourceTypes": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/ResourceType" + } + } + } + }, + "BruteForceStrategy": { + "enum": [ + "LINEAR", + "MULTIPLE" + ], + "type": "string" + }, + "CertificateRepresentation": { + "type": "object", + "properties": { + "privateKey": { + "type": "string" + }, + "publicKey": { + "type": "string" + }, + "certificate": { + "type": "string" + }, + "kid": { + "type": "string" + } + } + }, + "ClaimRepresentation": { + "type": "object", + "properties": { + "name": { + "type": "boolean" + }, + "username": { + "type": "boolean" + }, + "profile": { + "type": "boolean" + }, + "picture": { + "type": "boolean" + }, + "website": { + "type": "boolean" + }, + "email": { + "type": "boolean" + }, + "gender": { + "type": "boolean" + }, + "locale": { + "type": "boolean" + }, + "address": { + "type": "boolean" + }, + "phone": { + "type": "boolean" + } + } + }, + "ClientInitialAccessCreatePresentation": { + "type": "object", + "properties": { + "expiration": { + "format": "int32", + "type": "integer" + }, + "count": { + "format": "int32", + "type": "integer" + } + } + }, + "ClientInitialAccessPresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "token": { + "type": "string" + }, + "timestamp": { + "format": "int32", + "type": "integer" + }, + "expiration": { + "format": "int32", + "type": "integer" + }, + "count": { + "format": "int32", + "type": "integer" + }, + "remainingCount": { + "format": "int32", + "type": "integer" + } + } + }, + "ClientMappingsRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "client": { + "type": "string" + }, + "mappings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + } + }, + "ClientPoliciesRepresentation": { + "type": "object", + "properties": { + "policies": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientPolicyRepresentation" + } + }, + "globalPolicies": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientPolicyRepresentation" + } + } + } + }, + "ClientPolicyConditionRepresentation": { + "type": "object", + "properties": { + "condition": { + "type": "string" + }, + "configuration": { + "type": "array" + } + } + }, + "ClientPolicyExecutorRepresentation": { + "type": "object", + "properties": { + "executor": { + "type": "string" + }, + "configuration": { + "type": "array" + } + } + }, + "ClientPolicyRepresentation": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "conditions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientPolicyConditionRepresentation" + } + }, + "profiles": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ClientProfileRepresentation": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "executors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientPolicyExecutorRepresentation" + } + } + } + }, + "ClientProfilesRepresentation": { + "type": "object", + "properties": { + "profiles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientProfileRepresentation" + } + }, + "globalProfiles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientProfileRepresentation" + } + } + } + }, + "ClientRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "clientId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string" + }, + "rootUrl": { + "type": "string" + }, + "adminUrl": { + "type": "string" + }, + "baseUrl": { + "type": "string" + }, + "surrogateAuthRequired": { + "type": "boolean" + }, + "enabled": { + "type": "boolean" + }, + "alwaysDisplayInConsole": { + "type": "boolean" + }, + "clientAuthenticatorType": { + "type": "string" + }, + "secret": { + "type": "string" + }, + "registrationAccessToken": { + "type": "string" + }, + "defaultRoles": { + "type": "array", + "items": { + "type": "string" + }, + "deprecated": true + }, + "redirectUris": { + "type": "array", + "items": { + "type": "string" + } + }, + "webOrigins": { + "type": "array", + "items": { + "type": "string" + } + }, + "notBefore": { + "format": "int32", + "type": "integer" + }, + "bearerOnly": { + "type": "boolean" + }, + "consentRequired": { + "type": "boolean" + }, + "standardFlowEnabled": { + "type": "boolean" + }, + "implicitFlowEnabled": { + "type": "boolean" + }, + "directAccessGrantsEnabled": { + "type": "boolean" + }, + "serviceAccountsEnabled": { + "type": "boolean" + }, + "authorizationServicesEnabled": { + "type": "boolean" + }, + "directGrantsOnly": { + "type": "boolean", + "deprecated": true + }, + "publicClient": { + "type": "boolean" + }, + "frontchannelLogout": { + "type": "boolean" + }, + "protocol": { + "type": "string" + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "authenticationFlowBindingOverrides": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "fullScopeAllowed": { + "type": "boolean" + }, + "nodeReRegistrationTimeout": { + "format": "int32", + "type": "integer" + }, + "registeredNodes": { + "type": "object", + "additionalProperties": { + "format": "int32", + "type": "integer" + } + }, + "protocolMappers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + }, + "clientTemplate": { + "type": "string", + "deprecated": true + }, + "useTemplateConfig": { + "type": "boolean", + "deprecated": true + }, + "useTemplateScope": { + "type": "boolean", + "deprecated": true + }, + "useTemplateMappers": { + "type": "boolean", + "deprecated": true + }, + "defaultClientScopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "optionalClientScopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "authorizationSettings": { + "$ref": "#/components/schemas/ResourceServerRepresentation" + }, + "access": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "origin": { + "type": "string" + } + } + }, + "ClientScopeRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "protocol": { + "type": "string" + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "protocolMappers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + } + }, + "ClientTemplateRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "protocol": { + "type": "string" + }, + "fullScopeAllowed": { + "type": "boolean" + }, + "bearerOnly": { + "type": "boolean" + }, + "consentRequired": { + "type": "boolean" + }, + "standardFlowEnabled": { + "type": "boolean" + }, + "implicitFlowEnabled": { + "type": "boolean" + }, + "directAccessGrantsEnabled": { + "type": "boolean" + }, + "serviceAccountsEnabled": { + "type": "boolean" + }, + "publicClient": { + "type": "boolean" + }, + "frontchannelLogout": { + "type": "boolean" + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "protocolMappers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + } + }, + "deprecated": true + }, + "ClientTypeRepresentation": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "parent": { + "type": "string" + }, + "config": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/PropertyConfig" + } + } + } + }, + "ClientTypesRepresentation": { + "type": "object", + "properties": { + "client-types": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientTypeRepresentation" + } + }, + "global-client-types": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientTypeRepresentation" + } + } + } + }, + "ComponentExportRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "providerId": { + "type": "string" + }, + "subType": { + "type": "string" + }, + "subComponents": { + "$ref": "#/components/schemas/MultivaluedHashMapStringComponentExportRepresentation" + }, + "config": { + "$ref": "#/components/schemas/MultivaluedHashMapStringString" + } + } + }, + "ComponentRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "providerId": { + "type": "string" + }, + "providerType": { + "type": "string" + }, + "parentId": { + "type": "string" + }, + "subType": { + "type": "string" + }, + "config": { + "$ref": "#/components/schemas/MultivaluedHashMapStringString" + } + } + }, + "ComponentTypeRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "helpText": { + "type": "string" + }, + "properties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ConfigPropertyRepresentation" + } + }, + "metadata": { + "type": "object", + "additionalProperties": {} + } + } + }, + "Composites": { + "type": "object", + "properties": { + "realm": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "client": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "application": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": true + } + } + }, + "ConfigPropertyRepresentation": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "label": { + "type": "string" + }, + "helpText": { + "type": "string" + }, + "type": { + "type": "string" + }, + "defaultValue": {}, + "options": { + "type": "array", + "items": { + "type": "string" + } + }, + "secret": { + "type": "boolean" + }, + "required": { + "type": "boolean" + }, + "readOnly": { + "type": "boolean" + } + } + }, + "Confirmation": { + "type": "object", + "properties": { + "x5t#S256": { + "type": "string" + }, + "jkt": { + "type": "string" + } + } + }, + "CredentialRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "type": "string" + }, + "userLabel": { + "type": "string" + }, + "createdDate": { + "format": "int64", + "type": "integer" + }, + "secretData": { + "type": "string" + }, + "credentialData": { + "type": "string" + }, + "priority": { + "format": "int32", + "type": "integer" + }, + "value": { + "type": "string" + }, + "temporary": { + "type": "boolean" + }, + "device": { + "type": "string", + "deprecated": true + }, + "hashedSaltedValue": { + "type": "string", + "deprecated": true + }, + "salt": { + "type": "string", + "deprecated": true + }, + "hashIterations": { + "format": "int32", + "type": "integer", + "deprecated": true + }, + "counter": { + "format": "int32", + "type": "integer", + "deprecated": true + }, + "algorithm": { + "type": "string", + "deprecated": true + }, + "digits": { + "format": "int32", + "type": "integer", + "deprecated": true + }, + "period": { + "format": "int32", + "type": "integer", + "deprecated": true + }, + "config": { + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/MultivaluedHashMapStringString" + } + ], + "deprecated": true + } + } + }, + "DecisionEffect": { + "enum": [ + "PERMIT", + "DENY" + ], + "type": "string" + }, + "DecisionStrategy": { + "enum": [ + "AFFIRMATIVE", + "UNANIMOUS", + "CONSENSUS" + ], + "type": "string" + }, + "EnforcementMode": { + "enum": [ + "PERMISSIVE", + "ENFORCING", + "DISABLED" + ], + "type": "string" + }, + "EvaluationResultRepresentation": { + "type": "object", + "properties": { + "resource": { + "$ref": "#/components/schemas/ResourceRepresentation" + }, + "scopes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScopeRepresentation" + } + }, + "policies": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyResultRepresentation" + } + }, + "status": { + "$ref": "#/components/schemas/DecisionEffect" + }, + "allowedScopes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScopeRepresentation" + } + } + } + }, + "EventRepresentation": { + "type": "object", + "properties": { + "time": { + "format": "int64", + "type": "integer" + }, + "type": { + "type": "string" + }, + "realmId": { + "type": "string" + }, + "clientId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "sessionId": { + "type": "string" + }, + "ipAddress": { + "type": "string" + }, + "error": { + "type": "string" + }, + "details": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "FederatedIdentityRepresentation": { + "type": "object", + "properties": { + "identityProvider": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "userName": { + "type": "string" + } + } + }, + "GlobalRequestResult": { + "type": "object", + "properties": { + "successRequests": { + "type": "array", + "items": { + "type": "string" + } + }, + "failedRequests": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "GroupRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "parentId": { + "type": "string" + }, + "subGroupCount": { + "format": "int64", + "type": "integer" + }, + "subGroups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupRepresentation" + } + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "realmRoles": { + "type": "array", + "items": { + "type": "string" + } + }, + "clientRoles": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "access": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + } + } + }, + "IDToken": { + "type": "object", + "properties": { + "jti": { + "type": "string" + }, + "exp": { + "format": "int64", + "type": "integer" + }, + "nbf": { + "format": "int64", + "type": "integer" + }, + "iat": { + "format": "int64", + "type": "integer" + }, + "iss": { + "type": "string" + }, + "sub": { + "type": "string" + }, + "typ": { + "type": "string" + }, + "azp": { + "type": "string" + }, + "otherClaims": { + "type": "object", + "additionalProperties": {} + }, + "nonce": { + "type": "string" + }, + "auth_time": { + "format": "int64", + "type": "integer" + }, + "sid": { + "type": "string" + }, + "at_hash": { + "type": "string" + }, + "c_hash": { + "type": "string" + }, + "name": { + "type": "string" + }, + "given_name": { + "type": "string" + }, + "family_name": { + "type": "string" + }, + "middle_name": { + "type": "string" + }, + "nickname": { + "type": "string" + }, + "preferred_username": { + "type": "string" + }, + "profile": { + "type": "string" + }, + "picture": { + "type": "string" + }, + "website": { + "type": "string" + }, + "email": { + "type": "string" + }, + "email_verified": { + "type": "boolean" + }, + "gender": { + "type": "string" + }, + "birthdate": { + "type": "string" + }, + "zoneinfo": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "phone_number": { + "type": "string" + }, + "phone_number_verified": { + "type": "boolean" + }, + "address": { + "$ref": "#/components/schemas/AddressClaimSet" + }, + "updated_at": { + "format": "int64", + "type": "integer" + }, + "claims_locales": { + "type": "string" + }, + "acr": { + "type": "string" + }, + "s_hash": { + "type": "string" + } + } + }, + "IdentityProviderMapperRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "identityProviderAlias": { + "type": "string" + }, + "identityProviderMapper": { + "type": "string" + }, + "config": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "IdentityProviderMapperTypeRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "category": { + "type": "string" + }, + "helpText": { + "type": "string" + }, + "properties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ConfigPropertyRepresentation" + } + } + } + }, + "IdentityProviderRepresentation": { + "type": "object", + "properties": { + "alias": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "internalId": { + "type": "string" + }, + "providerId": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "updateProfileFirstLoginMode": { + "type": "string", + "deprecated": true + }, + "trustEmail": { + "type": "boolean" + }, + "storeToken": { + "type": "boolean" + }, + "addReadTokenRoleOnCreate": { + "type": "boolean" + }, + "authenticateByDefault": { + "type": "boolean" + }, + "linkOnly": { + "type": "boolean" + }, + "hideOnLogin": { + "type": "boolean" + }, + "firstBrokerLoginFlowAlias": { + "type": "string" + }, + "postBrokerLoginFlowAlias": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "config": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "updateProfileFirstLogin": { + "type": "boolean", + "deprecated": true + } + } + }, + "InstallationAdapterConfig": { + "type": "object", + "properties": { + "realm": { + "type": "string" + }, + "realm-public-key": { + "type": "string" + }, + "auth-server-url": { + "type": "string" + }, + "ssl-required": { + "type": "string" + }, + "bearer-only": { + "type": "boolean" + }, + "resource": { + "type": "string" + }, + "public-client": { + "type": "boolean" + }, + "verify-token-audience": { + "type": "boolean" + }, + "credentials": { + "type": "object", + "additionalProperties": {} + }, + "use-resource-role-mappings": { + "type": "boolean" + }, + "confidential-port": { + "format": "int32", + "type": "integer" + }, + "policy-enforcer": { + "$ref": "#/components/schemas/PolicyEnforcerConfig" + } + } + }, + "KeyMetadataRepresentation": { + "type": "object", + "properties": { + "providerId": { + "type": "string" + }, + "providerPriority": { + "format": "int64", + "type": "integer" + }, + "kid": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + }, + "algorithm": { + "type": "string" + }, + "publicKey": { + "type": "string" + }, + "certificate": { + "type": "string" + }, + "use": { + "$ref": "#/components/schemas/KeyUse" + }, + "validTo": { + "format": "int64", + "type": "integer" + } + } + }, + "KeyStoreConfig": { + "type": "object", + "properties": { + "realmCertificate": { + "type": "boolean" + }, + "storePassword": { + "type": "string" + }, + "keyPassword": { + "type": "string" + }, + "keyAlias": { + "type": "string" + }, + "realmAlias": { + "type": "string" + }, + "format": { + "type": "string" + } + } + }, + "KeyUse": { + "enum": [ + "SIG", + "ENC" + ], + "type": "string" + }, + "KeysMetadataRepresentation": { + "type": "object", + "properties": { + "active": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "keys": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyMetadataRepresentation" + } + } + } + }, + "Logic": { + "enum": [ + "POSITIVE", + "NEGATIVE" + ], + "type": "string" + }, + "ManagementPermissionReference": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "resource": { + "type": "string" + }, + "scopePermissions": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "MappingsRepresentation": { + "type": "object", + "properties": { + "realmMappings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + }, + "clientMappings": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/ClientMappingsRepresentation" + } + } + } + }, + "MemberRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "firstName": { + "type": "string" + }, + "lastName": { + "type": "string" + }, + "email": { + "type": "string" + }, + "emailVerified": { + "type": "boolean" + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "userProfileMetadata": { + "$ref": "#/components/schemas/UserProfileMetadata" + }, + "self": { + "type": "string" + }, + "origin": { + "type": "string" + }, + "createdTimestamp": { + "format": "int64", + "type": "integer" + }, + "enabled": { + "type": "boolean" + }, + "totp": { + "type": "boolean" + }, + "federationLink": { + "type": "string" + }, + "serviceAccountClientId": { + "type": "string" + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CredentialRepresentation" + } + }, + "disableableCredentialTypes": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "requiredActions": { + "type": "array", + "items": { + "type": "string" + } + }, + "federatedIdentities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FederatedIdentityRepresentation" + } + }, + "realmRoles": { + "type": "array", + "items": { + "type": "string" + } + }, + "clientRoles": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "clientConsents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserConsentRepresentation" + } + }, + "notBefore": { + "format": "int32", + "type": "integer" + }, + "applicationRoles": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": true + }, + "socialLinks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialLinkRepresentation" + }, + "deprecated": true + }, + "groups": { + "type": "array", + "items": { + "type": "string" + } + }, + "access": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "membershipType": { + "$ref": "#/components/schemas/MembershipType" + } + } + }, + "MembershipType": { + "enum": [ + "UNMANAGED", + "MANAGED" + ], + "type": "string" + }, + "MethodConfig": { + "type": "object", + "properties": { + "method": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "scopes-enforcement-mode": { + "$ref": "#/components/schemas/ScopeEnforcementMode" + } + } + }, + "MultivaluedHashMapStringComponentExportRepresentation": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ComponentExportRepresentation" + } + } + }, + "MultivaluedHashMapStringString": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "OAuthClientRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "clientId": { + "type": "string" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string" + }, + "rootUrl": { + "type": "string" + }, + "adminUrl": { + "type": "string" + }, + "baseUrl": { + "type": "string" + }, + "surrogateAuthRequired": { + "type": "boolean" + }, + "enabled": { + "type": "boolean" + }, + "alwaysDisplayInConsole": { + "type": "boolean" + }, + "clientAuthenticatorType": { + "type": "string" + }, + "secret": { + "type": "string" + }, + "registrationAccessToken": { + "type": "string" + }, + "defaultRoles": { + "type": "array", + "items": { + "type": "string" + }, + "deprecated": true + }, + "redirectUris": { + "type": "array", + "items": { + "type": "string" + } + }, + "webOrigins": { + "type": "array", + "items": { + "type": "string" + } + }, + "notBefore": { + "format": "int32", + "type": "integer" + }, + "bearerOnly": { + "type": "boolean" + }, + "consentRequired": { + "type": "boolean" + }, + "standardFlowEnabled": { + "type": "boolean" + }, + "implicitFlowEnabled": { + "type": "boolean" + }, + "directAccessGrantsEnabled": { + "type": "boolean" + }, + "serviceAccountsEnabled": { + "type": "boolean" + }, + "authorizationServicesEnabled": { + "type": "boolean" + }, + "directGrantsOnly": { + "type": "boolean", + "deprecated": true + }, + "publicClient": { + "type": "boolean" + }, + "frontchannelLogout": { + "type": "boolean" + }, + "protocol": { + "type": "string" + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "authenticationFlowBindingOverrides": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "fullScopeAllowed": { + "type": "boolean" + }, + "nodeReRegistrationTimeout": { + "format": "int32", + "type": "integer" + }, + "registeredNodes": { + "type": "object", + "additionalProperties": { + "format": "int32", + "type": "integer" + } + }, + "protocolMappers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + }, + "clientTemplate": { + "type": "string", + "deprecated": true + }, + "useTemplateConfig": { + "type": "boolean", + "deprecated": true + }, + "useTemplateScope": { + "type": "boolean", + "deprecated": true + }, + "useTemplateMappers": { + "type": "boolean", + "deprecated": true + }, + "defaultClientScopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "optionalClientScopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "authorizationSettings": { + "$ref": "#/components/schemas/ResourceServerRepresentation" + }, + "access": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "origin": { + "type": "string" + }, + "name": { + "type": "string" + }, + "claims": { + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/ClaimRepresentation" + } + ], + "deprecated": true + } + }, + "deprecated": true + }, + "OrganizationDomainRepresentation": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "verified": { + "type": "boolean" + } + } + }, + "OrganizationRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "alias": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "redirectUrl": { + "type": "string" + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "domains": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/OrganizationDomainRepresentation" + } + }, + "members": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MemberRepresentation" + } + }, + "identityProviders": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentityProviderRepresentation" + } + } + } + }, + "PathCacheConfig": { + "type": "object", + "properties": { + "max-entries": { + "format": "int32", + "type": "integer" + }, + "lifespan": { + "format": "int64", + "type": "integer" + } + } + }, + "PathConfig": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "path": { + "type": "string" + }, + "methods": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MethodConfig" + } + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + }, + "enforcement-mode": { + "$ref": "#/components/schemas/EnforcementMode" + }, + "claim-information-point": { + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": {} + } + }, + "invalidated": { + "type": "boolean" + }, + "staticPath": { + "type": "boolean" + }, + "static": { + "type": "boolean" + } + } + }, + "Permission": { + "type": "object", + "properties": { + "rsid": { + "type": "string" + }, + "rsname": { + "type": "string" + }, + "scopes": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "claims": { + "type": "object", + "additionalProperties": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "PolicyEnforcementMode": { + "enum": [ + "ENFORCING", + "PERMISSIVE", + "DISABLED" + ], + "type": "string" + }, + "PolicyEnforcerConfig": { + "type": "object", + "properties": { + "enforcement-mode": { + "$ref": "#/components/schemas/EnforcementMode" + }, + "paths": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PathConfig" + } + }, + "path-cache": { + "$ref": "#/components/schemas/PathCacheConfig" + }, + "lazy-load-paths": { + "type": "boolean" + }, + "on-deny-redirect-to": { + "type": "string" + }, + "user-managed-access": { + "$ref": "#/components/schemas/UserManagedAccessConfig" + }, + "claim-information-point": { + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": {} + } + }, + "http-method-as-scope": { + "type": "boolean" + }, + "realm": { + "type": "string" + }, + "auth-server-url": { + "type": "string" + }, + "credentials": { + "type": "object", + "additionalProperties": {} + }, + "resource": { + "type": "string" + } + } + }, + "PolicyEvaluationRequest": { + "type": "object", + "properties": { + "context": { + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "resources": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ResourceRepresentation" + } + }, + "clientId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "roleIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "entitlements": { + "type": "boolean" + } + } + }, + "PolicyEvaluationResponse": { + "type": "object", + "properties": { + "results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EvaluationResultRepresentation" + } + }, + "entitlements": { + "type": "boolean" + }, + "status": { + "$ref": "#/components/schemas/DecisionEffect" + }, + "rpt": { + "$ref": "#/components/schemas/AccessToken" + } + } + }, + "PolicyProviderRepresentation": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "name": { + "type": "string" + }, + "group": { + "type": "string" + } + } + }, + "PolicyRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string" + }, + "policies": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "resources": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "scopes": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "logic": { + "$ref": "#/components/schemas/Logic" + }, + "decisionStrategy": { + "$ref": "#/components/schemas/DecisionStrategy" + }, + "owner": { + "type": "string" + }, + "resourceType": { + "type": "string" + }, + "resourcesData": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/ResourceRepresentation" + } + }, + "scopesData": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/ScopeRepresentation" + } + }, + "config": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "PolicyResultRepresentation": { + "type": "object", + "properties": { + "policy": { + "$ref": "#/components/schemas/PolicyRepresentation" + }, + "status": { + "$ref": "#/components/schemas/DecisionEffect" + }, + "associatedPolicies": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyResultRepresentation" + } + }, + "scopes": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "PropertyConfig": { + "type": "object", + "properties": { + "applicable": { + "type": "boolean" + }, + "value": {} + } + }, + "ProtocolMapperEvaluationRepresentation": { + "type": "object", + "properties": { + "mapperId": { + "type": "string" + }, + "mapperName": { + "type": "string" + }, + "containerId": { + "type": "string" + }, + "containerName": { + "type": "string" + }, + "containerType": { + "type": "string" + }, + "protocolMapper": { + "type": "string" + } + } + }, + "ProtocolMapperRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "protocol": { + "type": "string" + }, + "protocolMapper": { + "type": "string" + }, + "consentRequired": { + "type": "boolean", + "deprecated": true + }, + "consentText": { + "type": "string", + "deprecated": true + }, + "config": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "PublishedRealmRepresentation": { + "type": "object", + "properties": { + "realm": { + "type": "string" + }, + "public_key": { + "type": "string" + }, + "token-service": { + "type": "string" + }, + "account-service": { + "type": "string" + }, + "tokens-not-before": { + "format": "int32", + "type": "integer" + } + } + }, + "RealmEventsConfigRepresentation": { + "type": "object", + "properties": { + "eventsEnabled": { + "type": "boolean" + }, + "eventsExpiration": { + "format": "int64", + "type": "integer" + }, + "eventsListeners": { + "type": "array", + "items": { + "type": "string" + } + }, + "enabledEventTypes": { + "type": "array", + "items": { + "type": "string" + } + }, + "adminEventsEnabled": { + "type": "boolean" + }, + "adminEventsDetailsEnabled": { + "type": "boolean" + } + } + }, + "RealmRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "realm": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "displayNameHtml": { + "type": "string" + }, + "notBefore": { + "format": "int32", + "type": "integer" + }, + "defaultSignatureAlgorithm": { + "type": "string" + }, + "revokeRefreshToken": { + "type": "boolean" + }, + "refreshTokenMaxReuse": { + "format": "int32", + "type": "integer" + }, + "accessTokenLifespan": { + "format": "int32", + "type": "integer" + }, + "accessTokenLifespanForImplicitFlow": { + "format": "int32", + "type": "integer" + }, + "ssoSessionIdleTimeout": { + "format": "int32", + "type": "integer" + }, + "ssoSessionMaxLifespan": { + "format": "int32", + "type": "integer" + }, + "ssoSessionIdleTimeoutRememberMe": { + "format": "int32", + "type": "integer" + }, + "ssoSessionMaxLifespanRememberMe": { + "format": "int32", + "type": "integer" + }, + "offlineSessionIdleTimeout": { + "format": "int32", + "type": "integer" + }, + "offlineSessionMaxLifespanEnabled": { + "type": "boolean" + }, + "offlineSessionMaxLifespan": { + "format": "int32", + "type": "integer" + }, + "clientSessionIdleTimeout": { + "format": "int32", + "type": "integer" + }, + "clientSessionMaxLifespan": { + "format": "int32", + "type": "integer" + }, + "clientOfflineSessionIdleTimeout": { + "format": "int32", + "type": "integer" + }, + "clientOfflineSessionMaxLifespan": { + "format": "int32", + "type": "integer" + }, + "accessCodeLifespan": { + "format": "int32", + "type": "integer" + }, + "accessCodeLifespanUserAction": { + "format": "int32", + "type": "integer" + }, + "accessCodeLifespanLogin": { + "format": "int32", + "type": "integer" + }, + "actionTokenGeneratedByAdminLifespan": { + "format": "int32", + "type": "integer" + }, + "actionTokenGeneratedByUserLifespan": { + "format": "int32", + "type": "integer" + }, + "oauth2DeviceCodeLifespan": { + "format": "int32", + "type": "integer" + }, + "oauth2DevicePollingInterval": { + "format": "int32", + "type": "integer" + }, + "enabled": { + "type": "boolean" + }, + "sslRequired": { + "type": "string" + }, + "passwordCredentialGrantAllowed": { + "type": "boolean", + "deprecated": true + }, + "registrationAllowed": { + "type": "boolean" + }, + "registrationEmailAsUsername": { + "type": "boolean" + }, + "rememberMe": { + "type": "boolean" + }, + "verifyEmail": { + "type": "boolean" + }, + "loginWithEmailAllowed": { + "type": "boolean" + }, + "duplicateEmailsAllowed": { + "type": "boolean" + }, + "resetPasswordAllowed": { + "type": "boolean" + }, + "editUsernameAllowed": { + "type": "boolean" + }, + "userCacheEnabled": { + "type": "boolean", + "deprecated": true + }, + "realmCacheEnabled": { + "type": "boolean", + "deprecated": true + }, + "bruteForceProtected": { + "type": "boolean" + }, + "permanentLockout": { + "type": "boolean" + }, + "maxTemporaryLockouts": { + "format": "int32", + "type": "integer" + }, + "bruteForceStrategy": { + "$ref": "#/components/schemas/BruteForceStrategy" + }, + "maxFailureWaitSeconds": { + "format": "int32", + "type": "integer" + }, + "minimumQuickLoginWaitSeconds": { + "format": "int32", + "type": "integer" + }, + "waitIncrementSeconds": { + "format": "int32", + "type": "integer" + }, + "quickLoginCheckMilliSeconds": { + "format": "int64", + "type": "integer" + }, + "maxDeltaTimeSeconds": { + "format": "int32", + "type": "integer" + }, + "failureFactor": { + "format": "int32", + "type": "integer" + }, + "privateKey": { + "type": "string", + "deprecated": true + }, + "publicKey": { + "type": "string", + "deprecated": true + }, + "certificate": { + "type": "string", + "deprecated": true + }, + "codeSecret": { + "type": "string", + "deprecated": true + }, + "roles": { + "$ref": "#/components/schemas/RolesRepresentation" + }, + "groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroupRepresentation" + } + }, + "defaultRoles": { + "type": "array", + "items": { + "type": "string" + }, + "deprecated": true + }, + "defaultRole": { + "$ref": "#/components/schemas/RoleRepresentation" + }, + "adminPermissionsClient": { + "$ref": "#/components/schemas/ClientRepresentation" + }, + "defaultGroups": { + "type": "array", + "items": { + "type": "string" + } + }, + "requiredCredentials": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + }, + "deprecated": true + }, + "passwordPolicy": { + "type": "string" + }, + "otpPolicyType": { + "type": "string" + }, + "otpPolicyAlgorithm": { + "type": "string" + }, + "otpPolicyInitialCounter": { + "format": "int32", + "type": "integer" + }, + "otpPolicyDigits": { + "format": "int32", + "type": "integer" + }, + "otpPolicyLookAheadWindow": { + "format": "int32", + "type": "integer" + }, + "otpPolicyPeriod": { + "format": "int32", + "type": "integer" + }, + "otpPolicyCodeReusable": { + "type": "boolean" + }, + "otpSupportedApplications": { + "type": "array", + "items": { + "type": "string" + } + }, + "localizationTexts": { + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "webAuthnPolicyRpEntityName": { + "type": "string" + }, + "webAuthnPolicySignatureAlgorithms": { + "type": "array", + "items": { + "type": "string" + } + }, + "webAuthnPolicyRpId": { + "type": "string" + }, + "webAuthnPolicyAttestationConveyancePreference": { + "type": "string" + }, + "webAuthnPolicyAuthenticatorAttachment": { + "type": "string" + }, + "webAuthnPolicyRequireResidentKey": { + "type": "string" + }, + "webAuthnPolicyUserVerificationRequirement": { + "type": "string" + }, + "webAuthnPolicyCreateTimeout": { + "format": "int32", + "type": "integer" + }, + "webAuthnPolicyAvoidSameAuthenticatorRegister": { + "type": "boolean" + }, + "webAuthnPolicyAcceptableAaguids": { + "type": "array", + "items": { + "type": "string" + } + }, + "webAuthnPolicyExtraOrigins": { + "type": "array", + "items": { + "type": "string" + } + }, + "webAuthnPolicyPasswordlessRpEntityName": { + "type": "string" + }, + "webAuthnPolicyPasswordlessSignatureAlgorithms": { + "type": "array", + "items": { + "type": "string" + } + }, + "webAuthnPolicyPasswordlessRpId": { + "type": "string" + }, + "webAuthnPolicyPasswordlessAttestationConveyancePreference": { + "type": "string" + }, + "webAuthnPolicyPasswordlessAuthenticatorAttachment": { + "type": "string" + }, + "webAuthnPolicyPasswordlessRequireResidentKey": { + "type": "string" + }, + "webAuthnPolicyPasswordlessUserVerificationRequirement": { + "type": "string" + }, + "webAuthnPolicyPasswordlessCreateTimeout": { + "format": "int32", + "type": "integer" + }, + "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": { + "type": "boolean" + }, + "webAuthnPolicyPasswordlessAcceptableAaguids": { + "type": "array", + "items": { + "type": "string" + } + }, + "webAuthnPolicyPasswordlessExtraOrigins": { + "type": "array", + "items": { + "type": "string" + } + }, + "clientProfiles": { + "$ref": "#/components/schemas/ClientProfilesRepresentation" + }, + "clientPolicies": { + "$ref": "#/components/schemas/ClientPoliciesRepresentation" + }, + "users": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserRepresentation" + } + }, + "federatedUsers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserRepresentation" + } + }, + "scopeMappings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScopeMappingRepresentation" + } + }, + "clientScopeMappings": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScopeMappingRepresentation" + } + } + }, + "clients": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientRepresentation" + } + }, + "clientScopes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientScopeRepresentation" + } + }, + "defaultDefaultClientScopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "defaultOptionalClientScopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "browserSecurityHeaders": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "smtpServer": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "userFederationProviders": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserFederationProviderRepresentation" + } + }, + "userFederationMappers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserFederationMapperRepresentation" + } + }, + "loginTheme": { + "type": "string" + }, + "accountTheme": { + "type": "string" + }, + "adminTheme": { + "type": "string" + }, + "emailTheme": { + "type": "string" + }, + "eventsEnabled": { + "type": "boolean" + }, + "eventsExpiration": { + "format": "int64", + "type": "integer" + }, + "eventsListeners": { + "type": "array", + "items": { + "type": "string" + } + }, + "enabledEventTypes": { + "type": "array", + "items": { + "type": "string" + } + }, + "adminEventsEnabled": { + "type": "boolean" + }, + "adminEventsDetailsEnabled": { + "type": "boolean" + }, + "identityProviders": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentityProviderRepresentation" + } + }, + "identityProviderMappers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentityProviderMapperRepresentation" + } + }, + "protocolMappers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProtocolMapperRepresentation" + } + }, + "components": { + "$ref": "#/components/schemas/MultivaluedHashMapStringComponentExportRepresentation" + }, + "internationalizationEnabled": { + "type": "boolean" + }, + "supportedLocales": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "defaultLocale": { + "type": "string" + }, + "authenticationFlows": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AuthenticationFlowRepresentation" + } + }, + "authenticatorConfig": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AuthenticatorConfigRepresentation" + } + }, + "requiredActions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RequiredActionProviderRepresentation" + } + }, + "browserFlow": { + "type": "string" + }, + "registrationFlow": { + "type": "string" + }, + "directGrantFlow": { + "type": "string" + }, + "resetCredentialsFlow": { + "type": "string" + }, + "clientAuthenticationFlow": { + "type": "string" + }, + "dockerAuthenticationFlow": { + "type": "string" + }, + "firstBrokerLoginFlow": { + "type": "string" + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "keycloakVersion": { + "type": "string" + }, + "userManagedAccessAllowed": { + "type": "boolean" + }, + "organizationsEnabled": { + "type": "boolean" + }, + "organizations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OrganizationRepresentation" + } + }, + "verifiableCredentialsEnabled": { + "type": "boolean" + }, + "adminPermissionsEnabled": { + "type": "boolean" + }, + "social": { + "type": "boolean", + "deprecated": true + }, + "updateProfileOnInitialSocialLogin": { + "type": "boolean", + "deprecated": true + }, + "socialProviders": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "deprecated": true + }, + "applicationScopeMappings": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScopeMappingRepresentation" + } + }, + "deprecated": true + }, + "applications": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationRepresentation" + }, + "deprecated": true + }, + "oauthClients": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OAuthClientRepresentation" + }, + "deprecated": true + }, + "clientTemplates": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientTemplateRepresentation" + }, + "deprecated": true + }, + "oAuth2DeviceCodeLifespan": { + "format": "int32", + "type": "integer" + }, + "oAuth2DevicePollingInterval": { + "format": "int32", + "type": "integer" + } + } + }, + "RequiredActionConfigInfoRepresentation": { + "type": "object", + "properties": { + "properties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ConfigPropertyRepresentation" + } + } + } + }, + "RequiredActionConfigRepresentation": { + "type": "object", + "properties": { + "config": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "RequiredActionProviderRepresentation": { + "type": "object", + "properties": { + "alias": { + "type": "string" + }, + "name": { + "type": "string" + }, + "providerId": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "defaultAction": { + "type": "boolean" + }, + "priority": { + "format": "int32", + "type": "integer" + }, + "config": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "ResourceOwnerRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "ResourceRepresentation": { + "type": "object", + "properties": { + "_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "uris": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "type": "string" + }, + "scopes": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/ScopeRepresentation" + } + }, + "icon_uri": { + "type": "string" + }, + "owner": { + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/ResourceOwnerRepresentation" + } + ], + "readOnly": true + }, + "ownerManagedAccess": { + "type": "boolean" + }, + "displayName": { + "type": "string" + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "uri": { + "type": "string", + "writeOnly": true, + "deprecated": true + }, + "scopesUma": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/ScopeRepresentation" + } + } + } + }, + "ResourceServerRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "clientId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "allowRemoteResourceManagement": { + "type": "boolean" + }, + "policyEnforcementMode": { + "$ref": "#/components/schemas/PolicyEnforcementMode" + }, + "resources": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ResourceRepresentation" + } + }, + "policies": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyRepresentation" + } + }, + "scopes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScopeRepresentation" + } + }, + "decisionStrategy": { + "$ref": "#/components/schemas/DecisionStrategy" + }, + "authorizationSchema": { + "$ref": "#/components/schemas/AuthorizationSchema" + } + } + }, + "ResourceType": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "scopes": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "RoleRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "scopeParamRequired": { + "type": "boolean", + "deprecated": true + }, + "composite": { + "type": "boolean" + }, + "composites": { + "$ref": "#/components/schemas/Composites" + }, + "clientRole": { + "type": "boolean" + }, + "containerId": { + "type": "string" + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "RolesRepresentation": { + "type": "object", + "properties": { + "realm": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + }, + "client": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + } + }, + "application": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleRepresentation" + } + }, + "deprecated": true + } + } + }, + "ScopeEnforcementMode": { + "enum": [ + "ALL", + "ANY", + "DISABLED" + ], + "type": "string" + }, + "ScopeMappingRepresentation": { + "type": "object", + "properties": { + "self": { + "type": "string" + }, + "client": { + "type": "string" + }, + "clientTemplate": { + "type": "string", + "deprecated": true + }, + "clientScope": { + "type": "string" + }, + "roles": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ScopeRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "iconUri": { + "type": "string" + }, + "policies": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyRepresentation" + } + }, + "resources": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ResourceRepresentation" + } + }, + "displayName": { + "type": "string" + } + } + }, + "SocialLinkRepresentation": { + "type": "object", + "properties": { + "socialProvider": { + "type": "string" + }, + "socialUserId": { + "type": "string" + }, + "socialUsername": { + "type": "string" + } + } + }, + "UPAttribute": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "validations": { + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": {} + } + }, + "annotations": { + "type": "object", + "additionalProperties": {} + }, + "required": { + "$ref": "#/components/schemas/UPAttributeRequired" + }, + "permissions": { + "$ref": "#/components/schemas/UPAttributePermissions" + }, + "selector": { + "$ref": "#/components/schemas/UPAttributeSelector" + }, + "group": { + "type": "string" + }, + "multivalued": { + "type": "boolean" + } + } + }, + "UPAttributePermissions": { + "type": "object", + "properties": { + "view": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "edit": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "UPAttributeRequired": { + "type": "object", + "properties": { + "roles": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "scopes": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "UPAttributeSelector": { + "type": "object", + "properties": { + "scopes": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "UPConfig": { + "type": "object", + "properties": { + "attributes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UPAttribute" + } + }, + "groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UPGroup" + } + }, + "unmanagedAttributePolicy": { + "$ref": "#/components/schemas/UnmanagedAttributePolicy" + } + } + }, + "UPGroup": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "displayHeader": { + "type": "string" + }, + "displayDescription": { + "type": "string" + }, + "annotations": { + "type": "object", + "additionalProperties": {} + } + } + }, + "UnmanagedAttributePolicy": { + "enum": [ + "ENABLED", + "ADMIN_VIEW", + "ADMIN_EDIT" + ], + "type": "string" + }, + "UserConsentRepresentation": { + "type": "object", + "properties": { + "clientId": { + "type": "string" + }, + "grantedClientScopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "createdDate": { + "format": "int64", + "type": "integer" + }, + "lastUpdatedDate": { + "format": "int64", + "type": "integer" + }, + "grantedRealmRoles": { + "type": "array", + "items": { + "type": "string" + }, + "deprecated": true + } + } + }, + "UserFederationMapperRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "federationProviderDisplayName": { + "type": "string" + }, + "federationMapperType": { + "type": "string" + }, + "config": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "UserFederationProviderRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "providerName": { + "type": "string" + }, + "config": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "priority": { + "format": "int32", + "type": "integer" + }, + "fullSyncPeriod": { + "format": "int32", + "type": "integer" + }, + "changedSyncPeriod": { + "format": "int32", + "type": "integer" + }, + "lastSync": { + "format": "int32", + "type": "integer" + } + } + }, + "UserManagedAccessConfig": { + "type": "object" + }, + "UserProfileAttributeGroupMetadata": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "displayHeader": { + "type": "string" + }, + "displayDescription": { + "type": "string" + }, + "annotations": { + "type": "object", + "additionalProperties": {} + } + } + }, + "UserProfileAttributeMetadata": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "required": { + "type": "boolean" + }, + "readOnly": { + "type": "boolean" + }, + "annotations": { + "type": "object", + "additionalProperties": {} + }, + "validators": { + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": {} + } + }, + "group": { + "type": "string" + }, + "multivalued": { + "type": "boolean" + } + } + }, + "UserProfileMetadata": { + "type": "object", + "properties": { + "attributes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserProfileAttributeMetadata" + } + }, + "groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserProfileAttributeGroupMetadata" + } + } + } + }, + "UserRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "firstName": { + "type": "string" + }, + "lastName": { + "type": "string" + }, + "email": { + "type": "string" + }, + "emailVerified": { + "type": "boolean" + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "userProfileMetadata": { + "$ref": "#/components/schemas/UserProfileMetadata" + }, + "self": { + "type": "string" + }, + "origin": { + "type": "string" + }, + "createdTimestamp": { + "format": "int64", + "type": "integer" + }, + "enabled": { + "type": "boolean" + }, + "totp": { + "type": "boolean" + }, + "federationLink": { + "type": "string" + }, + "serviceAccountClientId": { + "type": "string" + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CredentialRepresentation" + } + }, + "disableableCredentialTypes": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "requiredActions": { + "type": "array", + "items": { + "type": "string" + } + }, + "federatedIdentities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FederatedIdentityRepresentation" + } + }, + "realmRoles": { + "type": "array", + "items": { + "type": "string" + } + }, + "clientRoles": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "clientConsents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserConsentRepresentation" + } + }, + "notBefore": { + "format": "int32", + "type": "integer" + }, + "applicationRoles": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": true + }, + "socialLinks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialLinkRepresentation" + }, + "deprecated": true + }, + "groups": { + "type": "array", + "items": { + "type": "string" + } + }, + "access": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + } + } + }, + "UserSessionRepresentation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "ipAddress": { + "type": "string" + }, + "start": { + "format": "int64", + "type": "integer" + }, + "lastAccess": { + "format": "int64", + "type": "integer" + }, + "rememberMe": { + "type": "boolean" + }, + "clients": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "transientUser": { + "type": "boolean" + } + } + } + } + } +} \ No newline at end of file diff --git a/api/openapi.yaml b/api/openapi.yaml index b8f4d62..396adef 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -8343,7 +8343,10 @@ paths: $ref: '#/components/schemas/GroupRepresentation' type: array description: OK - summary: Get group hierarchy. Only name and ids are returned. + summary: "Get group hierarchy. Only `name` and `id` are returned. `subGroups`\ + \ are only returned when using the `search` or `q` parameter. If none of these\ + \ parameters is provided, the top-level groups are returned without `subGroups`\ + \ being filled." tags: - Groups post: @@ -9905,6 +9908,16 @@ paths: schema: type: string style: simple + - description: "if true, return the full representation. Otherwise, only the\ + \ basic fields are returned." + explode: true + in: query + name: briefRepresentation + required: false + schema: + default: false + type: boolean + style: form - description: Boolean which defines whether the param 'search' must match exactly or not explode: true @@ -9984,7 +9997,7 @@ paths: summary: Creates a new organization tags: - Organizations - /admin/realms/{realm}/organizations/members/{id}/organizations: + /admin/realms/{realm}/organizations/members/{member-id}/organizations: get: parameters: - description: realm name (not id!) @@ -9997,7 +10010,7 @@ paths: style: simple - explode: false in: path - name: id + name: member-id required: true schema: type: string @@ -10015,7 +10028,7 @@ paths: id tags: - Organizations - /admin/realms/{realm}/organizations/{id}: + /admin/realms/{realm}/organizations/{org-id}: delete: parameters: - description: realm name (not id!) @@ -10028,7 +10041,7 @@ paths: style: simple - explode: false in: path - name: id + name: org-id required: true schema: type: string @@ -10051,7 +10064,7 @@ paths: style: simple - explode: false in: path - name: id + name: org-id required: true schema: type: string @@ -10078,7 +10091,7 @@ paths: style: simple - explode: false in: path - name: id + name: org-id required: true schema: type: string @@ -10094,7 +10107,7 @@ paths: summary: Updates the organization tags: - Organizations - /admin/realms/{realm}/organizations/{id}/identity-providers: + /admin/realms/{realm}/organizations/{org-id}/identity-providers: get: parameters: - description: realm name (not id!) @@ -10107,7 +10120,7 @@ paths: style: simple - explode: false in: path - name: id + name: org-id required: true schema: type: string @@ -10139,7 +10152,7 @@ paths: style: simple - explode: false in: path - name: id + name: org-id required: true schema: type: string @@ -10155,7 +10168,7 @@ paths: summary: Adds the identity provider with the specified id to the organization tags: - Organizations - /admin/realms/{realm}/organizations/{id}/identity-providers/{alias}: + /admin/realms/{realm}/organizations/{org-id}/identity-providers/{alias}: delete: description: "Breaks the association between the identity provider and the organization.\ \ The provider itself is not deleted. If no provider is found, or if it is\ @@ -10171,7 +10184,7 @@ paths: style: simple - explode: false in: path - name: id + name: org-id required: true schema: type: string @@ -10204,7 +10217,7 @@ paths: style: simple - explode: false in: path - name: id + name: org-id required: true schema: type: string @@ -10227,7 +10240,7 @@ paths: has the specified alias tags: - Organizations - /admin/realms/{realm}/organizations/{id}/members: + /admin/realms/{realm}/organizations/{org-id}/members: get: parameters: - description: realm name (not id!) @@ -10240,7 +10253,7 @@ paths: style: simple - explode: false in: path - name: id + name: org-id required: true schema: type: string @@ -10273,6 +10286,14 @@ paths: format: int32 type: integer style: form + - description: The membership type + explode: true + in: query + name: membershipType + required: false + schema: + type: string + style: form - description: "A String representing either a member's username, e-mail, first\ \ name, or last name." explode: true @@ -10310,7 +10331,7 @@ paths: style: simple - explode: false in: path - name: id + name: org-id required: true schema: type: string @@ -10326,7 +10347,7 @@ paths: summary: Adds the user with the specified id as a member of the organization tags: - Organizations - /admin/realms/{realm}/organizations/{id}/members/count: + /admin/realms/{realm}/organizations/{org-id}/members/count: get: parameters: - description: realm name (not id!) @@ -10339,7 +10360,7 @@ paths: style: simple - explode: false in: path - name: id + name: org-id required: true schema: type: string @@ -10355,7 +10376,7 @@ paths: summary: Returns number of members in the organization. tags: - Organizations - /admin/realms/{realm}/organizations/{id}/members/invite-existing-user: + /admin/realms/{realm}/organizations/{org-id}/members/invite-existing-user: post: parameters: - description: realm name (not id!) @@ -10368,7 +10389,7 @@ paths: style: simple - explode: false in: path - name: id + name: org-id required: true schema: type: string @@ -10377,7 +10398,7 @@ paths: content: application/x-www-form-urlencoded: schema: - $ref: '#/components/schemas/_admin_realms__realm__organizations__id__members_invite_existing_user_post_request' + $ref: '#/components/schemas/_admin_realms__realm__organizations__org_id__members_invite_existing_user_post_request' responses: "200": description: OK @@ -10385,7 +10406,7 @@ paths: \ user id" tags: - Organizations - /admin/realms/{realm}/organizations/{id}/members/invite-user: + /admin/realms/{realm}/organizations/{org-id}/members/invite-user: post: description: "If the user with the given e-mail address exists, it sends an\ \ invitation link, otherwise it sends a registration link." @@ -10400,7 +10421,7 @@ paths: style: simple - explode: false in: path - name: id + name: org-id required: true schema: type: string @@ -10409,7 +10430,7 @@ paths: content: application/x-www-form-urlencoded: schema: - $ref: '#/components/schemas/_admin_realms__realm__organizations__id__members_invite_user_post_request' + $ref: '#/components/schemas/_admin_realms__realm__organizations__org_id__members_invite_user_post_request' responses: "200": description: OK @@ -10417,7 +10438,7 @@ paths: \ based on the provided e-mail address." tags: - Organizations - /admin/realms/{realm}/organizations/{id}/members/{userId}: + /admin/realms/{realm}/organizations/{org-id}/members/{member-id}: delete: description: "Breaks the association between the user and organization. The\ \ user itself is deleted in case the membership is managed, otherwise the\ @@ -10434,14 +10455,14 @@ paths: style: simple - explode: false in: path - name: id + name: org-id required: true schema: type: string style: simple - explode: false in: path - name: userId + name: member-id required: true schema: type: string @@ -10467,14 +10488,14 @@ paths: style: simple - explode: false in: path - name: id + name: org-id required: true schema: type: string style: simple - explode: false in: path - name: userId + name: member-id required: true schema: type: string @@ -10489,7 +10510,7 @@ paths: summary: Returns the member of the organization with the specified id tags: - Organizations - /admin/realms/{realm}/organizations/{id}/members/{userId}/organizations: + /admin/realms/{realm}/organizations/{org-id}/members/{member-id}/organizations: get: parameters: - description: realm name (not id!) @@ -10502,14 +10523,14 @@ paths: style: simple - explode: false in: path - name: id + name: org-id required: true schema: type: string style: simple - explode: false in: path - name: userId + name: member-id required: true schema: type: string @@ -13237,120 +13258,6 @@ components: AbstractPolicyRepresentation: example: owner: owner - scopesData: - - displayName: displayName - name: name - policies: - - owner: owner - policies: - - policies - - policies - resourcesData: - - null - - null - description: description - resources: - - resources - - resources - type: type - scopesData: - - null - - null - name: name - id: id - scopes: - - scopes - - scopes - logic: POSITIVE - decisionStrategy: AFFIRMATIVE - config: - key: config - - owner: owner - policies: - - policies - - policies - resourcesData: - - null - - null - description: description - resources: - - resources - - resources - type: type - scopesData: - - null - - null - name: name - id: id - scopes: - - scopes - - scopes - logic: POSITIVE - decisionStrategy: AFFIRMATIVE - config: - key: config - resources: - - null - - null - id: id - iconUri: iconUri - - displayName: displayName - name: name - policies: - - owner: owner - policies: - - policies - - policies - resourcesData: - - null - - null - description: description - resources: - - resources - - resources - type: type - scopesData: - - null - - null - name: name - id: id - scopes: - - scopes - - scopes - logic: POSITIVE - decisionStrategy: AFFIRMATIVE - config: - key: config - - owner: owner - policies: - - policies - - policies - resourcesData: - - null - - null - description: description - resources: - - resources - - resources - type: type - scopesData: - - null - - null - name: name - id: id - scopes: - - scopes - - scopes - logic: POSITIVE - decisionStrategy: AFFIRMATIVE - config: - key: config - resources: - - null - - null - id: id - iconUri: iconUri - name: name policies: - policies - policies @@ -13387,6 +13294,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -13411,6 +13319,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -13443,6 +13352,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -13467,6 +13377,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -13508,6 +13419,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -13532,6 +13444,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -13564,6 +13477,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -13588,6 +13502,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -13628,6 +13543,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -13652,6 +13568,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -13684,6 +13601,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -13708,6 +13626,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -13749,6 +13668,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -13773,6 +13693,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -13805,6 +13726,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -13829,6 +13751,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -13841,116 +13764,237 @@ components: resources: - resources - resources - id: id - scopes: - - scopes - - scopes - logic: POSITIVE type: type - decisionStrategy: AFFIRMATIVE - properties: - id: - type: string - name: - type: string - description: - type: string - type: - type: string - policies: - items: - type: string - type: array - uniqueItems: true - resources: - items: - type: string - type: array - uniqueItems: true - scopes: - items: - type: string - type: array - uniqueItems: true - logic: - $ref: '#/components/schemas/Logic' - decisionStrategy: - $ref: '#/components/schemas/DecisionStrategy' - owner: - type: string - resourcesData: - items: - $ref: '#/components/schemas/ResourceRepresentation' - type: array - uniqueItems: true scopesData: - items: - $ref: '#/components/schemas/ScopeRepresentation' - type: array - uniqueItems: true - type: object - Access: - example: - roles: - - roles - - roles - verify_caller: true - properties: - roles: - items: - type: string - type: array - uniqueItems: true - verify_caller: - type: boolean - type: object - AccessToken: - example: - at_hash: at_hash - sub: sub - zoneinfo: zoneinfo - resource_access: - key: - roles: - - roles - - roles - verify_caller: true - birthdate: birthdate - gender: gender - allowed-origins: - - allowed-origins - - allowed-origins - iss: iss - typ: typ - trusted-certs: - - trusted-certs - - trusted-certs - preferred_username: preferred_username - locale: locale - sid: sid - authorization: - permissions: - - claims: - key: - - claims - - claims - rsid: rsid - scopes: - - scopes - - scopes - rsname: rsname - - claims: - key: - - claims - - claims - rsid: rsid - scopes: - - scopes - - scopes - rsname: rsname - acr: acr - updated_at: 5 - realm_access: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + resources: + - null + - null + id: id + iconUri: iconUri + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + resourceType: resourceType + properties: + id: + type: string + name: + type: string + description: + type: string + type: + type: string + policies: + items: + type: string + type: array + uniqueItems: true + resources: + items: + type: string + type: array + uniqueItems: true + scopes: + items: + type: string + type: array + uniqueItems: true + logic: + $ref: '#/components/schemas/Logic' + decisionStrategy: + $ref: '#/components/schemas/DecisionStrategy' + owner: + type: string + resourceType: + type: string + resourcesData: + items: + $ref: '#/components/schemas/ResourceRepresentation' + type: array + uniqueItems: true + scopesData: + items: + $ref: '#/components/schemas/ScopeRepresentation' + type: array + uniqueItems: true + type: object + Access: + example: + roles: + - roles + - roles + verify_caller: true + properties: + roles: + items: + type: string + type: array + uniqueItems: true + verify_caller: + type: boolean + type: object + AccessToken: + example: + at_hash: at_hash + sub: sub + zoneinfo: zoneinfo + resource_access: + key: + roles: + - roles + - roles + verify_caller: true + birthdate: birthdate + gender: gender + allowed-origins: + - allowed-origins + - allowed-origins + iss: iss + typ: typ + trusted-certs: + - trusted-certs + - trusted-certs + preferred_username: preferred_username + locale: locale + sid: sid + authorization: + permissions: + - claims: + key: + - claims + - claims + rsid: rsid + scopes: + - scopes + - scopes + rsname: rsname + - claims: + key: + - claims + - claims + rsid: rsid + scopes: + - scopes + - scopes + rsname: rsname + acr: acr + updated_at: 5 + realm_access: roles: - roles - roles @@ -14164,6 +14208,13 @@ components: registeredNodes: key: 0 authorizationSettings: + authorizationSchema: + resourceTypes: + key: + scopes: + - scopes + - scopes + type: type clientId: clientId name: name policies: @@ -14191,6 +14242,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -14215,6 +14267,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - owner: "{}" uris: @@ -14248,6 +14301,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -14272,6 +14326,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -14304,6 +14359,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -14328,6 +14384,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -14369,6 +14426,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -14393,6 +14451,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -14425,6 +14484,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -14449,6 +14509,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -14489,6 +14550,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -14513,6 +14575,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -14545,6 +14608,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -14569,6 +14633,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -14610,6 +14675,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -14634,6 +14700,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -14666,6 +14733,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -14690,6 +14758,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -14727,6 +14796,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -14751,6 +14821,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -14783,6 +14854,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -14807,6 +14879,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -15265,6 +15338,20 @@ components: $ref: '#/components/schemas/Permission' type: array type: object + AuthorizationSchema: + example: + resourceTypes: + key: + scopes: + - scopes + - scopes + type: type + properties: + resourceTypes: + additionalProperties: + $ref: '#/components/schemas/ResourceType' + type: object + type: object BruteForceStrategy: enum: - LINEAR @@ -15633,8 +15720,15 @@ components: - optionalClientScopes publicClient: true registeredNodes: - key: 5 + key: 6 authorizationSettings: + authorizationSchema: + resourceTypes: + key: + scopes: + - scopes + - scopes + type: type clientId: clientId name: name policies: @@ -15662,6 +15756,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -15686,6 +15781,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - owner: "{}" uris: @@ -15719,6 +15815,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -15743,6 +15840,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -15775,6 +15873,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -15799,6 +15898,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -15840,6 +15940,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -15864,6 +15965,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -15896,6 +15998,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -15920,6 +16023,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -15960,6 +16064,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -15984,6 +16089,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -16016,6 +16122,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -16040,6 +16147,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -16081,6 +16189,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -16105,6 +16214,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -16137,6 +16247,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -16161,6 +16272,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -16198,6 +16310,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -16222,6 +16335,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -16254,6 +16368,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -16278,6 +16393,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -16299,7 +16415,7 @@ components: useTemplateConfig: true enabled: true clientAuthenticatorType: clientAuthenticatorType - notBefore: 3 + notBefore: 2 surrogateAuthRequired: true frontchannelLogout: true protocol: protocol @@ -16307,7 +16423,7 @@ components: - defaultClientScopes - defaultClientScopes bearerOnly: true - nodeReRegistrationTimeout: 7 + nodeReRegistrationTimeout: 6 id: id adminUrl: adminUrl useTemplateScope: true @@ -16840,16 +16956,16 @@ components: example: userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -16963,6 +17079,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -16987,6 +17104,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -17019,6 +17137,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -17043,6 +17162,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -17084,6 +17204,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -17108,6 +17229,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -17140,6 +17262,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -17164,6 +17287,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -17204,6 +17328,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType status: PERMIT - scopes: - scopes @@ -17236,6 +17361,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType status: PERMIT scopes: - displayName: displayName @@ -17265,6 +17391,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -17289,6 +17416,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -17321,6 +17449,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -17345,6 +17474,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -17378,6 +17508,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -17402,6 +17533,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -17434,6 +17566,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -17458,6 +17591,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -18113,16 +18247,16 @@ components: credentials: - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -18131,16 +18265,16 @@ components: algorithm: algorithm - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -18170,7 +18304,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -18179,7 +18313,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -18367,6 +18501,13 @@ components: registeredNodes: key: 4 authorizationSettings: + authorizationSchema: + resourceTypes: + key: + scopes: + - scopes + - scopes + type: type clientId: clientId name: name policies: @@ -18394,6 +18535,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -18418,6 +18560,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - owner: "{}" uris: @@ -18451,6 +18594,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -18475,6 +18619,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -18507,6 +18652,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -18531,6 +18677,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -18572,6 +18719,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -18596,6 +18744,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -18628,6 +18777,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -18652,6 +18802,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -18692,6 +18843,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -18716,6 +18868,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -18748,6 +18901,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -18772,6 +18926,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -18813,6 +18968,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -18837,6 +18993,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -18869,6 +19026,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -18893,6 +19051,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -18930,6 +19089,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -18954,6 +19114,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -18986,6 +19147,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -19010,6 +19172,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -19284,16 +19447,16 @@ components: credentials: - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -19302,16 +19465,16 @@ components: algorithm: algorithm - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -19341,7 +19504,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -19350,7 +19513,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -19430,16 +19593,16 @@ components: credentials: - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -19448,16 +19611,16 @@ components: algorithm: algorithm - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -19487,7 +19650,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -19496,7 +19659,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -19752,6 +19915,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -19776,6 +19940,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -19808,6 +19973,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -19832,6 +19998,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -19873,6 +20040,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -19897,6 +20065,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -19929,6 +20098,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -19953,6 +20123,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -19993,6 +20164,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -20017,6 +20189,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -20049,6 +20222,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -20073,6 +20247,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -20114,6 +20289,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -20138,6 +20314,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -20170,6 +20347,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -20194,6 +20372,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -20347,6 +20526,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -20371,6 +20551,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -20403,6 +20584,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -20427,6 +20609,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -20468,6 +20651,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -20492,6 +20676,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -20524,6 +20709,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -20548,6 +20734,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -20588,6 +20775,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType status: PERMIT - scopes: - scopes @@ -20620,6 +20808,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType status: PERMIT scopes: - displayName: displayName @@ -20649,6 +20838,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -20673,6 +20863,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -20705,6 +20896,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -20729,6 +20921,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -20762,6 +20955,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -20786,6 +20980,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -20818,6 +21013,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -20842,6 +21038,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -20881,6 +21078,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -20905,6 +21103,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -20937,6 +21136,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -20961,6 +21161,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -21002,6 +21203,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -21026,6 +21228,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -21058,6 +21261,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -21082,6 +21286,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -21122,6 +21327,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType status: PERMIT - scopes: - scopes @@ -21154,6 +21360,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType status: PERMIT scopes: - displayName: displayName @@ -21183,6 +21390,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -21207,6 +21415,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -21239,6 +21448,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -21263,6 +21473,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -21296,6 +21507,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -21320,6 +21532,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -21352,6 +21565,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -21376,6 +21590,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -21434,6 +21649,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType properties: id: type: string @@ -21464,6 +21680,8 @@ components: $ref: '#/components/schemas/DecisionStrategy' owner: type: string + resourceType: + type: string resourcesData: items: $ref: '#/components/schemas/ResourceRepresentation' @@ -21512,6 +21730,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType status: PERMIT properties: policy: @@ -21638,7 +21857,7 @@ components: example: socialProviders: key: socialProviders - otpPolicyLookAheadWindow: 6 + otpPolicyLookAheadWindow: 3 webAuthnPolicyPasswordlessExtraOrigins: - webAuthnPolicyPasswordlessExtraOrigins - webAuthnPolicyPasswordlessExtraOrigins @@ -21699,6 +21918,7 @@ components: publicKey: publicKey maxTemporaryLockouts: 9 otpPolicyDigits: 6 + adminPermissionsEnabled: true webAuthnPolicySignatureAlgorithms: - webAuthnPolicySignatureAlgorithms - webAuthnPolicySignatureAlgorithms @@ -21793,7 +22013,7 @@ components: duplicateEmailsAllowed: true accessCodeLifespan: 1 eventsExpiration: 4 - webAuthnPolicyPasswordlessCreateTimeout: 3 + webAuthnPolicyPasswordlessCreateTimeout: 0 otpPolicyType: otpPolicyType components: key: @@ -21827,11 +22047,18 @@ components: - optionalClientScopes publicClient: true registeredNodes: - key: 5 + key: 6 authorizationSettings: - clientId: clientId - name: name - policies: + authorizationSchema: + resourceTypes: + key: + scopes: + - scopes + - scopes + type: type + clientId: clientId + name: name + policies: - owner: owner policies: - policies @@ -21856,6 +22083,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -21880,6 +22108,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - owner: "{}" uris: @@ -21913,6 +22142,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -21937,6 +22167,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -21969,6 +22200,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -21993,6 +22225,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -22034,6 +22267,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -22058,6 +22292,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -22090,6 +22325,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -22114,6 +22350,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -22154,6 +22391,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -22178,6 +22416,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -22210,6 +22449,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -22234,6 +22474,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -22275,6 +22516,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -22299,6 +22541,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -22331,6 +22574,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -22355,6 +22599,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -22392,6 +22637,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -22416,6 +22662,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -22448,6 +22695,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -22472,6 +22720,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -22493,7 +22742,7 @@ components: useTemplateConfig: true enabled: true clientAuthenticatorType: clientAuthenticatorType - notBefore: 3 + notBefore: 2 surrogateAuthRequired: true frontchannelLogout: true protocol: protocol @@ -22501,7 +22750,7 @@ components: - defaultClientScopes - defaultClientScopes bearerOnly: true - nodeReRegistrationTimeout: 7 + nodeReRegistrationTimeout: 6 id: id adminUrl: adminUrl useTemplateScope: true @@ -22552,8 +22801,15 @@ components: - optionalClientScopes publicClient: true registeredNodes: - key: 5 + key: 6 authorizationSettings: + authorizationSchema: + resourceTypes: + key: + scopes: + - scopes + - scopes + type: type clientId: clientId name: name policies: @@ -22581,6 +22837,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -22605,6 +22862,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - owner: "{}" uris: @@ -22638,6 +22896,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -22662,6 +22921,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -22694,6 +22954,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -22718,6 +22979,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -22759,6 +23021,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -22783,6 +23046,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -22815,6 +23079,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -22839,6 +23104,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -22879,6 +23145,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -22903,6 +23170,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -22935,6 +23203,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -22959,6 +23228,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -23000,6 +23270,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -23024,6 +23295,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -23056,6 +23328,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -23080,6 +23353,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -23117,6 +23391,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -23141,6 +23416,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -23173,6 +23449,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -23197,6 +23474,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -23218,7 +23496,7 @@ components: useTemplateConfig: true enabled: true clientAuthenticatorType: clientAuthenticatorType - notBefore: 3 + notBefore: 2 surrogateAuthRequired: true frontchannelLogout: true protocol: protocol @@ -23226,7 +23504,7 @@ components: - defaultClientScopes - defaultClientScopes bearerOnly: true - nodeReRegistrationTimeout: 7 + nodeReRegistrationTimeout: 6 id: id adminUrl: adminUrl useTemplateScope: true @@ -23285,6 +23563,13 @@ components: registeredNodes: key: 4 authorizationSettings: + authorizationSchema: + resourceTypes: + key: + scopes: + - scopes + - scopes + type: type clientId: clientId name: name policies: @@ -23312,6 +23597,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -23336,6 +23622,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - owner: "{}" uris: @@ -23369,6 +23656,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -23393,6 +23681,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -23425,6 +23714,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -23449,6 +23739,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -23490,6 +23781,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -23514,6 +23806,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -23546,6 +23839,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -23570,6 +23864,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -23610,6 +23905,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -23634,6 +23930,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -23666,6 +23963,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -23690,6 +23988,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -23731,6 +24030,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -23755,6 +24055,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -23787,6 +24088,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -23811,6 +24113,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -23848,6 +24151,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -23872,6 +24176,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -23904,6 +24209,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -23928,6 +24234,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -24009,8 +24316,885 @@ components: - optionalClientScopes publicClient: true registeredNodes: - key: 4 + key: 4 + authorizationSettings: + authorizationSchema: + resourceTypes: + key: + scopes: + - scopes + - scopes + type: type + clientId: clientId + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + resources: + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + - owner: "{}" + uris: + - uris + - uris + scopesUma: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + resources: + - null + - null + id: id + iconUri: iconUri + ownerManagedAccess: true + displayName: displayName + name: name + attributes: + key: + - attributes + - attributes + _id: _id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + resources: + - null + - null + id: id + iconUri: iconUri + type: type + uri: uri + icon_uri: icon_uri + id: id + scopes: + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + resources: + - null + - null + id: id + iconUri: iconUri + - displayName: displayName + name: name + policies: + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + - owner: owner + policies: + - policies + - policies + resourcesData: + - null + - null + description: description + resources: + - resources + - resources + type: type + scopesData: + - null + - null + name: name + id: id + scopes: + - scopes + - scopes + logic: POSITIVE + decisionStrategy: AFFIRMATIVE + config: + key: config + resourceType: resourceType + resources: + - null + - null + id: id + iconUri: iconUri + allowRemoteResourceManagement: true + policyEnforcementMode: ENFORCING + decisionStrategy: null + access: + key: true + authorizationServicesEnabled: true + origin: origin + description: description + alwaysDisplayInConsole: true + serviceAccountsEnabled: true + secret: secret + type: type + consentRequired: true + useTemplateConfig: true + enabled: true + clientAuthenticatorType: clientAuthenticatorType + notBefore: 7 + surrogateAuthRequired: true + frontchannelLogout: true + protocol: protocol + defaultClientScopes: + - defaultClientScopes + - defaultClientScopes + bearerOnly: true + nodeReRegistrationTimeout: 5 + id: id + adminUrl: adminUrl + useTemplateScope: true + clientId: clientId + registrationAccessToken: registrationAccessToken + useTemplateMappers: true + directGrantsOnly: true + protocolMappers: + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + - protocol: protocol + protocolMapper: protocolMapper + name: name + id: id + consentText: consentText + consentRequired: true + config: + key: config + clientTemplate: clientTemplate + redirectUris: + - redirectUris + - redirectUris + fullScopeAllowed: true + rootUrl: rootUrl + implicitFlowEnabled: true + directAccessGrantsEnabled: true + baseUrl: baseUrl + defaultRoles: + - defaultRoles + - defaultRoles + authenticationFlowBindingOverrides: + key: authenticationFlowBindingOverrides + name: name + claims: "{}" + standardFlowEnabled: true + webOrigins: + - webOrigins + - webOrigins + attributes: + key: attributes + requiredCredentials: + - requiredCredentials + - requiredCredentials + maxDeltaTimeSeconds: 3 + internationalizationEnabled: true + ssoSessionMaxLifespan: 2 + bruteForceProtected: true + accessTokenLifespanForImplicitFlow: 5 + webAuthnPolicyPasswordlessSignatureAlgorithms: + - webAuthnPolicyPasswordlessSignatureAlgorithms + - webAuthnPolicyPasswordlessSignatureAlgorithms + bruteForceStrategy: LINEAR + userFederationProviders: + - changedSyncPeriod: 0 + fullSyncPeriod: 4 + lastSync: 6 + displayName: displayName + id: id + priority: 3 + config: + key: config + providerName: providerName + - changedSyncPeriod: 0 + fullSyncPeriod: 4 + lastSync: 6 + displayName: displayName + id: id + priority: 3 + config: + key: config + providerName: providerName + identityProviders: + - addReadTokenRoleOnCreate: true + displayName: displayName + trustEmail: true + linkOnly: true + enabled: true + storeToken: true + organizationId: organizationId + internalId: internalId + firstBrokerLoginFlowAlias: firstBrokerLoginFlowAlias + updateProfileFirstLoginMode: updateProfileFirstLoginMode + providerId: providerId + hideOnLogin: true + postBrokerLoginFlowAlias: postBrokerLoginFlowAlias + alias: alias + authenticateByDefault: true + updateProfileFirstLogin: true + config: + key: config + - addReadTokenRoleOnCreate: true + displayName: displayName + trustEmail: true + linkOnly: true + enabled: true + storeToken: true + organizationId: organizationId + internalId: internalId + firstBrokerLoginFlowAlias: firstBrokerLoginFlowAlias + updateProfileFirstLoginMode: updateProfileFirstLoginMode + providerId: providerId + hideOnLogin: true + postBrokerLoginFlowAlias: postBrokerLoginFlowAlias + alias: alias + authenticateByDefault: true + updateProfileFirstLogin: true + config: + key: config + supportedLocales: + - supportedLocales + - supportedLocales + webAuthnPolicyAttestationConveyancePreference: webAuthnPolicyAttestationConveyancePreference + webAuthnPolicyPasswordlessUserVerificationRequirement: webAuthnPolicyPasswordlessUserVerificationRequirement + browserSecurityHeaders: + key: browserSecurityHeaders + applicationScopeMappings: + key: + - roles: + - roles + - roles + self: self + client: client + clientTemplate: clientTemplate + clientScope: clientScope + - roles: + - roles + - roles + self: self + client: client + clientTemplate: clientTemplate + clientScope: clientScope + oauth2DeviceCodeLifespan: 5 + webAuthnPolicyPasswordlessAuthenticatorAttachment: webAuthnPolicyPasswordlessAuthenticatorAttachment + smtpServer: + key: smtpServer + webAuthnPolicyExtraOrigins: + - webAuthnPolicyExtraOrigins + - webAuthnPolicyExtraOrigins + emailTheme: emailTheme + enabledEventTypes: + - enabledEventTypes + - enabledEventTypes + otpSupportedApplications: + - otpSupportedApplications + - otpSupportedApplications + actionTokenGeneratedByAdminLifespan: 1 + defaultRoles: + - defaultRoles + - defaultRoles + attributes: + key: attributes + registrationEmailAsUsername: true + otpPolicyPeriod: 3 + ssoSessionMaxLifespanRememberMe: 9 + adminPermissionsClient: + optionalClientScopes: + - optionalClientScopes + - optionalClientScopes + publicClient: true + registeredNodes: + key: 6 authorizationSettings: + authorizationSchema: + resourceTypes: + key: + scopes: + - scopes + - scopes + type: type clientId: clientId name: name policies: @@ -24038,6 +25222,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -24062,6 +25247,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - owner: "{}" uris: @@ -24095,6 +25281,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -24119,6 +25306,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -24151,6 +25339,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -24175,6 +25364,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -24216,6 +25406,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -24240,6 +25431,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -24272,6 +25464,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -24296,6 +25489,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -24336,6 +25530,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -24360,6 +25555,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -24392,6 +25588,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -24416,6 +25613,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -24457,6 +25655,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -24481,6 +25680,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -24513,6 +25713,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -24537,6 +25738,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -24574,6 +25776,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -24598,6 +25801,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -24630,6 +25834,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -24654,6 +25859,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -24675,7 +25881,7 @@ components: useTemplateConfig: true enabled: true clientAuthenticatorType: clientAuthenticatorType - notBefore: 7 + notBefore: 2 surrogateAuthRequired: true frontchannelLogout: true protocol: protocol @@ -24683,7 +25889,7 @@ components: - defaultClientScopes - defaultClientScopes bearerOnly: true - nodeReRegistrationTimeout: 5 + nodeReRegistrationTimeout: 6 id: id adminUrl: adminUrl useTemplateScope: true @@ -24717,134 +25923,19 @@ components: implicitFlowEnabled: true directAccessGrantsEnabled: true baseUrl: baseUrl + name: name defaultRoles: - defaultRoles - defaultRoles authenticationFlowBindingOverrides: key: authenticationFlowBindingOverrides - name: name - claims: "{}" standardFlowEnabled: true webOrigins: - webOrigins - webOrigins attributes: key: attributes - requiredCredentials: - - requiredCredentials - - requiredCredentials - maxDeltaTimeSeconds: 3 - internationalizationEnabled: true - ssoSessionMaxLifespan: 2 - bruteForceProtected: true - accessTokenLifespanForImplicitFlow: 5 - webAuthnPolicyPasswordlessSignatureAlgorithms: - - webAuthnPolicyPasswordlessSignatureAlgorithms - - webAuthnPolicyPasswordlessSignatureAlgorithms - bruteForceStrategy: LINEAR - userFederationProviders: - - changedSyncPeriod: 0 - fullSyncPeriod: 4 - lastSync: 6 - displayName: displayName - id: id - priority: 3 - config: - key: config - providerName: providerName - - changedSyncPeriod: 0 - fullSyncPeriod: 4 - lastSync: 6 - displayName: displayName - id: id - priority: 3 - config: - key: config - providerName: providerName - identityProviders: - - addReadTokenRoleOnCreate: true - displayName: displayName - trustEmail: true - linkOnly: true - enabled: true - storeToken: true - organizationId: organizationId - internalId: internalId - firstBrokerLoginFlowAlias: firstBrokerLoginFlowAlias - updateProfileFirstLoginMode: updateProfileFirstLoginMode - providerId: providerId - hideOnLogin: true - postBrokerLoginFlowAlias: postBrokerLoginFlowAlias - alias: alias - authenticateByDefault: true - updateProfileFirstLogin: true - config: - key: config - - addReadTokenRoleOnCreate: true - displayName: displayName - trustEmail: true - linkOnly: true - enabled: true - storeToken: true - organizationId: organizationId - internalId: internalId - firstBrokerLoginFlowAlias: firstBrokerLoginFlowAlias - updateProfileFirstLoginMode: updateProfileFirstLoginMode - providerId: providerId - hideOnLogin: true - postBrokerLoginFlowAlias: postBrokerLoginFlowAlias - alias: alias - authenticateByDefault: true - updateProfileFirstLogin: true - config: - key: config - supportedLocales: - - supportedLocales - - supportedLocales - webAuthnPolicyAttestationConveyancePreference: webAuthnPolicyAttestationConveyancePreference - webAuthnPolicyPasswordlessUserVerificationRequirement: webAuthnPolicyPasswordlessUserVerificationRequirement - browserSecurityHeaders: - key: browserSecurityHeaders - applicationScopeMappings: - key: - - roles: - - roles - - roles - self: self - client: client - clientTemplate: clientTemplate - clientScope: clientScope - - roles: - - roles - - roles - self: self - client: client - clientTemplate: clientTemplate - clientScope: clientScope - oauth2DeviceCodeLifespan: 5 - webAuthnPolicyPasswordlessAuthenticatorAttachment: webAuthnPolicyPasswordlessAuthenticatorAttachment - smtpServer: - key: smtpServer - webAuthnPolicyExtraOrigins: - - webAuthnPolicyExtraOrigins - - webAuthnPolicyExtraOrigins - emailTheme: emailTheme - enabledEventTypes: - - enabledEventTypes - - enabledEventTypes - otpSupportedApplications: - - otpSupportedApplications - - otpSupportedApplications - actionTokenGeneratedByAdminLifespan: 1 - defaultRoles: - - defaultRoles - - defaultRoles - attributes: - key: attributes - registrationEmailAsUsername: true - otpPolicyPeriod: 5 - ssoSessionMaxLifespanRememberMe: 9 - otpPolicyInitialCounter: 2 + otpPolicyInitialCounter: 5 userManagedAccessAllowed: true clientOfflineSessionIdleTimeout: 1 notBefore: 0 @@ -24892,7 +25983,8 @@ components: resetCredentialsFlow: resetCredentialsFlow webAuthnPolicyUserVerificationRequirement: webAuthnPolicyUserVerificationRequirement passwordPolicy: passwordPolicy - webAuthnPolicyCreateTimeout: 6 + webAuthnPolicyCreateTimeout: 7 + verifiableCredentialsEnabled: true defaultRole: composites: application: @@ -24992,16 +26084,16 @@ components: credentials: - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -25010,16 +26102,16 @@ components: algorithm: algorithm - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -25028,7 +26120,7 @@ components: algorithm: algorithm origin: origin enabled: true - notBefore: 3 + notBefore: 5 id: id email: email clientRoles: @@ -25039,7 +26131,7 @@ components: key: - applicationRoles - applicationRoles - createdTimestamp: 3 + createdTimestamp: 7 groups: - groups - groups @@ -25049,7 +26141,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -25058,7 +26150,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -25137,16 +26229,16 @@ components: credentials: - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -25155,16 +26247,16 @@ components: algorithm: algorithm - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -25173,7 +26265,7 @@ components: algorithm: algorithm origin: origin enabled: true - notBefore: 3 + notBefore: 5 id: id email: email clientRoles: @@ -25184,7 +26276,7 @@ components: key: - applicationRoles - applicationRoles - createdTimestamp: 3 + createdTimestamp: 7 groups: - groups - groups @@ -25194,7 +26286,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -25203,7 +26295,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -25447,16 +26539,16 @@ components: credentials: - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -25465,16 +26557,16 @@ components: algorithm: algorithm - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -25483,7 +26575,7 @@ components: algorithm: algorithm origin: origin enabled: true - notBefore: 3 + notBefore: 5 id: id email: email clientRoles: @@ -25494,7 +26586,7 @@ components: key: - applicationRoles - applicationRoles - createdTimestamp: 3 + createdTimestamp: 7 groups: - groups - groups @@ -25504,7 +26596,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -25513,7 +26605,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -25592,16 +26684,16 @@ components: credentials: - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -25610,16 +26702,16 @@ components: algorithm: algorithm - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -25628,7 +26720,7 @@ components: algorithm: algorithm origin: origin enabled: true - notBefore: 3 + notBefore: 5 id: id email: email clientRoles: @@ -25639,7 +26731,7 @@ components: key: - applicationRoles - applicationRoles - createdTimestamp: 3 + createdTimestamp: 7 groups: - groups - groups @@ -25649,7 +26741,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -25658,7 +26750,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -26002,16 +27094,16 @@ components: credentials: - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -26020,16 +27112,16 @@ components: algorithm: algorithm - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -26059,7 +27151,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -26068,7 +27160,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -26148,16 +27240,16 @@ components: credentials: - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -26166,16 +27258,16 @@ components: algorithm: algorithm - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -26205,7 +27297,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -26214,7 +27306,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -26347,16 +27439,16 @@ components: credentials: - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -26365,16 +27457,16 @@ components: algorithm: algorithm - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -26404,7 +27496,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -26413,7 +27505,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -26493,16 +27585,16 @@ components: credentials: - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -26511,16 +27603,16 @@ components: algorithm: algorithm - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -26550,7 +27642,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -26559,7 +27651,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -26658,6 +27750,13 @@ components: registeredNodes: key: 0 authorizationSettings: + authorizationSchema: + resourceTypes: + key: + scopes: + - scopes + - scopes + type: type clientId: clientId name: name policies: @@ -26685,6 +27784,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -26709,6 +27809,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - owner: "{}" uris: @@ -26742,6 +27843,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -26766,6 +27868,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -26798,6 +27901,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -26822,6 +27926,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -26863,6 +27968,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -26887,6 +27993,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -26919,6 +28026,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -26943,6 +28051,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -26983,6 +28092,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -27007,6 +28117,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -27039,6 +28150,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -27063,6 +28175,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -27104,6 +28217,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -27128,6 +28242,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -27160,6 +28275,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -27184,6 +28300,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -27221,6 +28338,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -27245,6 +28363,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -27277,6 +28396,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -27301,6 +28421,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -27384,6 +28505,13 @@ components: registeredNodes: key: 0 authorizationSettings: + authorizationSchema: + resourceTypes: + key: + scopes: + - scopes + - scopes + type: type clientId: clientId name: name policies: @@ -27411,6 +28539,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -27435,6 +28564,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - owner: "{}" uris: @@ -27468,6 +28598,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -27492,6 +28623,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -27524,6 +28656,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -27548,6 +28681,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -27589,6 +28723,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -27613,6 +28748,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -27645,6 +28781,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -27669,6 +28806,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -27709,6 +28847,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -27733,6 +28872,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -27765,6 +28905,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -27789,6 +28930,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -27830,6 +28972,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -27854,6 +28997,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -27886,6 +29030,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -27910,6 +29055,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -27947,6 +29093,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -27971,6 +29118,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -28003,6 +29151,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -28027,6 +29176,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -28262,6 +29412,8 @@ components: type: array defaultRole: $ref: '#/components/schemas/RoleRepresentation' + adminPermissionsClient: + $ref: '#/components/schemas/ClientRepresentation' defaultGroups: items: type: string @@ -28506,6 +29658,10 @@ components: items: $ref: '#/components/schemas/OrganizationRepresentation' type: array + verifiableCredentialsEnabled: + type: boolean + adminPermissionsEnabled: + type: boolean social: deprecated: true type: boolean @@ -28657,6 +29813,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -28681,6 +29838,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -28713,6 +29871,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -28737,6 +29896,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -28778,6 +29938,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -28802,6 +29963,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -28834,6 +29996,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -28858,6 +30021,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -28912,6 +30076,13 @@ components: type: object ResourceServerRepresentation: example: + authorizationSchema: + resourceTypes: + key: + scopes: + - scopes + - scopes + type: type clientId: clientId name: name policies: @@ -28939,6 +30110,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -28963,6 +30135,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - owner: "{}" uris: @@ -28996,6 +30169,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -29020,6 +30194,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -29052,6 +30227,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -29076,6 +30252,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -29117,6 +30294,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -29141,6 +30319,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -29173,6 +30352,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -29197,6 +30377,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -29237,6 +30418,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -29261,6 +30443,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -29293,6 +30476,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -29317,6 +30501,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -29358,6 +30543,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -29382,6 +30568,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -29414,6 +30601,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -29438,6 +30626,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -29475,6 +30664,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -29499,6 +30689,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -29531,6 +30722,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -29555,6 +30747,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -29588,6 +30781,23 @@ components: type: array decisionStrategy: $ref: '#/components/schemas/DecisionStrategy' + authorizationSchema: + $ref: '#/components/schemas/AuthorizationSchema' + type: object + ResourceType: + example: + scopes: + - scopes + - scopes + type: type + properties: + type: + type: string + scopes: + items: + type: string + type: array + uniqueItems: true type: object RoleRepresentation: example: @@ -29863,6 +31073,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType - owner: owner policies: - policies @@ -29887,6 +31098,7 @@ components: decisionStrategy: AFFIRMATIVE config: key: config + resourceType: resourceType resources: - null - null @@ -30140,7 +31352,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -30345,16 +31557,16 @@ components: credentials: - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -30363,16 +31575,16 @@ components: algorithm: algorithm - userLabel: userLabel temporary: true - period: 4 + period: 3 hashedSaltedValue: hashedSaltedValue salt: salt - hashIterations: 7 - counter: 6 + hashIterations: 4 + counter: 8 type: type priority: 0 secretData: secretData - createdDate: 7 - digits: 0 + createdDate: 6 + digits: 7 id: id credentialData: credentialData value: value @@ -30381,7 +31593,7 @@ components: algorithm: algorithm origin: origin enabled: true - notBefore: 3 + notBefore: 5 id: id email: email clientRoles: @@ -30392,7 +31604,7 @@ components: key: - applicationRoles - applicationRoles - createdTimestamp: 3 + createdTimestamp: 7 groups: - groups - groups @@ -30402,7 +31614,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -30411,7 +31623,7 @@ components: - grantedRealmRoles lastUpdatedDate: 7 clientId: clientId - createdDate: 8 + createdDate: 3 grantedClientScopes: - grantedClientScopes - grantedClientScopes @@ -30595,12 +31807,12 @@ components: transientUser: type: boolean type: object - _admin_realms__realm__organizations__id__members_invite_existing_user_post_request: + _admin_realms__realm__organizations__org_id__members_invite_existing_user_post_request: properties: id: type: string type: object - _admin_realms__realm__organizations__id__members_invite_user_post_request: + _admin_realms__realm__organizations__org_id__members_invite_user_post_request: properties: email: type: string diff --git a/api_attack_detection.go b/api_attack_detection.go index c825c60..c46a9e3 100644 --- a/api_attack_detection.go +++ b/api_attack_detection.go @@ -19,13 +19,14 @@ import ( "strings" ) + // AttackDetectionAPIService AttackDetectionAPI service type AttackDetectionAPIService service type ApiAdminRealmsRealmAttackDetectionBruteForceUsersDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *AttackDetectionAPIService - realm string + realm string } func (r ApiAdminRealmsRealmAttackDetectionBruteForceUsersDeleteRequest) Execute() (*http.Response, error) { @@ -35,24 +36,24 @@ func (r ApiAdminRealmsRealmAttackDetectionBruteForceUsersDeleteRequest) Execute( /* AdminRealmsRealmAttackDetectionBruteForceUsersDelete Clear any user login failures for all users This can release temporary disabled users - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmAttackDetectionBruteForceUsersDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAttackDetectionBruteForceUsersDeleteRequest */ func (a *AttackDetectionAPIService) AdminRealmsRealmAttackDetectionBruteForceUsersDelete(ctx context.Context, realm string) ApiAdminRealmsRealmAttackDetectionBruteForceUsersDeleteRequest { return ApiAdminRealmsRealmAttackDetectionBruteForceUsersDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *AttackDetectionAPIService) AdminRealmsRealmAttackDetectionBruteForceUsersDeleteExecute(r ApiAdminRealmsRealmAttackDetectionBruteForceUsersDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttackDetectionAPIService.AdminRealmsRealmAttackDetectionBruteForceUsersDelete") @@ -113,10 +114,10 @@ func (a *AttackDetectionAPIService) AdminRealmsRealmAttackDetectionBruteForceUse } type ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *AttackDetectionAPIService - realm string - userId string + realm string + userId string } func (r ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteRequest) Execute() (*http.Response, error) { @@ -126,26 +127,26 @@ func (r ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteRequest) Ex /* AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDelete Clear any user login failures for the user This can release temporary disabled user - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param userId - @return ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteRequest */ func (a *AttackDetectionAPIService) AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDelete(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteRequest { return ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - userId: userId, + ctx: ctx, + realm: realm, + userId: userId, } } // Execute executes the request func (a *AttackDetectionAPIService) AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteExecute(r ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttackDetectionAPIService.AdminRealmsRealmAttackDetectionBruteForceUsersUserIdDelete") @@ -207,10 +208,10 @@ func (a *AttackDetectionAPIService) AdminRealmsRealmAttackDetectionBruteForceUse } type ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetRequest struct { - ctx context.Context + ctx context.Context ApiService *AttackDetectionAPIService - realm string - userId string + realm string + userId string } func (r ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetRequest) Execute() (map[string]interface{}, *http.Response, error) { @@ -220,29 +221,28 @@ func (r ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetRequest) Execu /* AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGet Get status of a username in brute force detection - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param userId - @return ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetRequest */ func (a *AttackDetectionAPIService) AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetRequest { return ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - userId: userId, + ctx: ctx, + realm: realm, + userId: userId, } } // Execute executes the request -// -// @return map[string]interface{} +// @return map[string]interface{} func (a *AttackDetectionAPIService) AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetExecute(r ApiAdminRealmsRealmAttackDetectionBruteForceUsersUserIdGetRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttackDetectionAPIService.AdminRealmsRealmAttackDetectionBruteForceUsersUserIdGet") diff --git a/api_authentication_management.go b/api_authentication_management.go index 5634204..f279406 100644 --- a/api_authentication_management.go +++ b/api_authentication_management.go @@ -19,13 +19,14 @@ import ( "strings" ) + // AuthenticationManagementAPIService AuthenticationManagementAPI service type AuthenticationManagementAPIService service type ApiAdminRealmsRealmAuthenticationAuthenticatorProvidersGetRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string + realm string } func (r ApiAdminRealmsRealmAuthenticationAuthenticatorProvidersGetRequest) Execute() ([]map[string]interface{}, *http.Response, error) { @@ -35,27 +36,26 @@ func (r ApiAdminRealmsRealmAuthenticationAuthenticatorProvidersGetRequest) Execu /* AdminRealmsRealmAuthenticationAuthenticatorProvidersGet Get authenticator providers Returns a stream of authenticator providers. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmAuthenticationAuthenticatorProvidersGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationAuthenticatorProvidersGetRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationAuthenticatorProvidersGet(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationAuthenticatorProvidersGetRequest { return ApiAdminRealmsRealmAuthenticationAuthenticatorProvidersGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []map[string]interface{} +// @return []map[string]interface{} func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationAuthenticatorProvidersGetExecute(r ApiAdminRealmsRealmAuthenticationAuthenticatorProvidersGetRequest) ([]map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationAuthenticatorProvidersGet") @@ -125,9 +125,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationAuthe } type ApiAdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string + realm string } func (r ApiAdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetRequest) Execute() ([]map[string]interface{}, *http.Response, error) { @@ -137,27 +137,26 @@ func (r ApiAdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetRequest) /* AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGet Get client authenticator providers Returns a stream of client authenticator providers. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGet(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetRequest { return ApiAdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []map[string]interface{} +// @return []map[string]interface{} func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetExecute(r ApiAdminRealmsRealmAuthenticationClientAuthenticatorProvidersGetRequest) ([]map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationClientAuthenticatorProvidersGet") @@ -227,9 +226,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationClien } type ApiAdminRealmsRealmAuthenticationConfigDescriptionProviderIdGetRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string + realm string providerId string } @@ -240,29 +239,28 @@ func (r ApiAdminRealmsRealmAuthenticationConfigDescriptionProviderIdGetRequest) /* AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGet Get authenticator provider's configuration description - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param providerId - @return ApiAdminRealmsRealmAuthenticationConfigDescriptionProviderIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param providerId + @return ApiAdminRealmsRealmAuthenticationConfigDescriptionProviderIdGetRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGet(ctx context.Context, realm string, providerId string) ApiAdminRealmsRealmAuthenticationConfigDescriptionProviderIdGetRequest { return ApiAdminRealmsRealmAuthenticationConfigDescriptionProviderIdGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, providerId: providerId, } } // Execute executes the request -// -// @return AuthenticatorConfigInfoRepresentation +// @return AuthenticatorConfigInfoRepresentation func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGetExecute(r ApiAdminRealmsRealmAuthenticationConfigDescriptionProviderIdGetRequest) (*AuthenticatorConfigInfoRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AuthenticatorConfigInfoRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuthenticatorConfigInfoRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationConfigDescriptionProviderIdGet") @@ -333,10 +331,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfi } type ApiAdminRealmsRealmAuthenticationConfigIdDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string - id string + realm string + id string } func (r ApiAdminRealmsRealmAuthenticationConfigIdDeleteRequest) Execute() (*http.Response, error) { @@ -346,26 +344,26 @@ func (r ApiAdminRealmsRealmAuthenticationConfigIdDeleteRequest) Execute() (*http /* AdminRealmsRealmAuthenticationConfigIdDelete Delete authenticator configuration - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id Configuration id - @return ApiAdminRealmsRealmAuthenticationConfigIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id Configuration id + @return ApiAdminRealmsRealmAuthenticationConfigIdDeleteRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigIdDelete(ctx context.Context, realm string, id string) ApiAdminRealmsRealmAuthenticationConfigIdDeleteRequest { return ApiAdminRealmsRealmAuthenticationConfigIdDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + id: id, } } // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigIdDeleteExecute(r ApiAdminRealmsRealmAuthenticationConfigIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationConfigIdDelete") @@ -427,10 +425,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfi } type ApiAdminRealmsRealmAuthenticationConfigIdGetRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string - id string + realm string + id string } func (r ApiAdminRealmsRealmAuthenticationConfigIdGetRequest) Execute() (*AuthenticatorConfigRepresentation, *http.Response, error) { @@ -440,29 +438,28 @@ func (r ApiAdminRealmsRealmAuthenticationConfigIdGetRequest) Execute() (*Authent /* AdminRealmsRealmAuthenticationConfigIdGet Get authenticator configuration - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id Configuration id - @return ApiAdminRealmsRealmAuthenticationConfigIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id Configuration id + @return ApiAdminRealmsRealmAuthenticationConfigIdGetRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigIdGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmAuthenticationConfigIdGetRequest { return ApiAdminRealmsRealmAuthenticationConfigIdGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + id: id, } } // Execute executes the request -// -// @return AuthenticatorConfigRepresentation +// @return AuthenticatorConfigRepresentation func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigIdGetExecute(r ApiAdminRealmsRealmAuthenticationConfigIdGetRequest) (*AuthenticatorConfigRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AuthenticatorConfigRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuthenticatorConfigRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationConfigIdGet") @@ -533,10 +530,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfi } type ApiAdminRealmsRealmAuthenticationConfigIdPutRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string - id string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + id string authenticatorConfigRepresentation *AuthenticatorConfigRepresentation } @@ -552,26 +549,26 @@ func (r ApiAdminRealmsRealmAuthenticationConfigIdPutRequest) Execute() (*http.Re /* AdminRealmsRealmAuthenticationConfigIdPut Update authenticator configuration - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id Configuration id - @return ApiAdminRealmsRealmAuthenticationConfigIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id Configuration id + @return ApiAdminRealmsRealmAuthenticationConfigIdPutRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigIdPut(ctx context.Context, realm string, id string) ApiAdminRealmsRealmAuthenticationConfigIdPutRequest { return ApiAdminRealmsRealmAuthenticationConfigIdPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + id: id, } } // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigIdPutExecute(r ApiAdminRealmsRealmAuthenticationConfigIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationConfigIdPut") @@ -635,9 +632,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfi } type ApiAdminRealmsRealmAuthenticationConfigPostRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string authenticatorConfigRepresentation *AuthenticatorConfigRepresentation } @@ -653,17 +650,17 @@ func (r ApiAdminRealmsRealmAuthenticationConfigPostRequest) Execute() (*http.Res /* AdminRealmsRealmAuthenticationConfigPost Create new authenticator configuration - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmAuthenticationConfigPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationConfigPostRequest Deprecated */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigPost(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationConfigPostRequest { return ApiAdminRealmsRealmAuthenticationConfigPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } @@ -671,9 +668,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfi // Deprecated func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfigPostExecute(r ApiAdminRealmsRealmAuthenticationConfigPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationConfigPost") @@ -736,11 +733,11 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationConfi } type ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string executionId string - id string + id string } func (r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetRequest) Execute() (*AuthenticatorConfigRepresentation, *http.Response, error) { @@ -750,35 +747,33 @@ func (r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetRequest /* AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGet Get execution's configuration - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param executionId Execution id - @param id Configuration id - @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param executionId Execution id + @param id Configuration id + @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetRequest Deprecated */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGet(ctx context.Context, realm string, executionId string, id string) ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetRequest { return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, executionId: executionId, - id: id, + id: id, } } // Execute executes the request -// -// @return AuthenticatorConfigRepresentation -// +// @return AuthenticatorConfigRepresentation // Deprecated func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetExecute(r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGetRequest) (*AuthenticatorConfigRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AuthenticatorConfigRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuthenticatorConfigRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigIdGet") @@ -850,10 +845,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecu } type ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string - executionId string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + executionId string authenticatorConfigRepresentation *AuthenticatorConfigRepresentation } @@ -869,16 +864,16 @@ func (r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostRequest) /* AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPost Update execution with new configuration - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param executionId Execution id - @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param executionId Execution id + @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPost(ctx context.Context, realm string, executionId string) ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostRequest { return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, executionId: executionId, } } @@ -886,9 +881,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecu // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostExecute(r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationExecutionsExecutionIdConfigPost") @@ -952,9 +947,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecu } type ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdDeleteRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string executionId string } @@ -965,16 +960,16 @@ func (r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdDeleteRequest) Exe /* AdminRealmsRealmAuthenticationExecutionsExecutionIdDelete Delete execution - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param executionId Execution id - @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param executionId Execution id + @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdDeleteRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdDelete(ctx context.Context, realm string, executionId string) ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdDeleteRequest { return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdDeleteRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, executionId: executionId, } } @@ -982,9 +977,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecu // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdDeleteExecute(r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationExecutionsExecutionIdDelete") @@ -1046,9 +1041,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecu } type ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdGetRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string executionId string } @@ -1059,29 +1054,28 @@ func (r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdGetRequest) Execut /* AdminRealmsRealmAuthenticationExecutionsExecutionIdGet Get Single Execution - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param executionId - @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param executionId + @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdGetRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdGet(ctx context.Context, realm string, executionId string) ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdGetRequest { return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, executionId: executionId, } } // Execute executes the request -// -// @return AuthenticationExecutionRepresentation +// @return AuthenticationExecutionRepresentation func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdGetExecute(r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdGetRequest) (*AuthenticationExecutionRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AuthenticationExecutionRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuthenticationExecutionRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationExecutionsExecutionIdGet") @@ -1152,9 +1146,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecu } type ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPostRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string executionId string } @@ -1165,16 +1159,16 @@ func (r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPostR /* AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPost Lower execution's priority - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param executionId Execution id - @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param executionId Execution id + @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPostRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPost(ctx context.Context, realm string, executionId string) ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPostRequest { return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPostRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, executionId: executionId, } } @@ -1182,9 +1176,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecu // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPostExecute(r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationExecutionsExecutionIdLowerPriorityPost") @@ -1246,9 +1240,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecu } type ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPostRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string executionId string } @@ -1259,16 +1253,16 @@ func (r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPostR /* AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPost Raise execution's priority - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param executionId Execution id - @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param executionId Execution id + @return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPostRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPost(ctx context.Context, realm string, executionId string) ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPostRequest { return ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPostRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, executionId: executionId, } } @@ -1276,9 +1270,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecu // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPostExecute(r ApiAdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationExecutionsExecutionIdRaisePriorityPost") @@ -1340,9 +1334,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecu } type ApiAdminRealmsRealmAuthenticationExecutionsPostRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string authenticationExecutionRepresentation *AuthenticationExecutionRepresentation } @@ -1358,24 +1352,24 @@ func (r ApiAdminRealmsRealmAuthenticationExecutionsPostRequest) Execute() (*http /* AdminRealmsRealmAuthenticationExecutionsPost Add new authentication execution - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmAuthenticationExecutionsPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationExecutionsPostRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsPost(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationExecutionsPostRequest { return ApiAdminRealmsRealmAuthenticationExecutionsPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecutionsPostExecute(r ApiAdminRealmsRealmAuthenticationExecutionsPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationExecutionsPost") @@ -1438,10 +1432,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationExecu } type ApiAdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string - flowAlias string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + flowAlias string requestBody *map[string]string } @@ -1457,26 +1451,26 @@ func (r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostRequest) Execute( /* AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPost Copy existing authentication flow under a new name The new name is given as 'newName' attribute of the passed JSON object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param flowAlias name of the existing authentication flow - @return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param flowAlias name of the existing authentication flow + @return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPost(ctx context.Context, realm string, flowAlias string) ApiAdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostRequest { return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - flowAlias: flowAlias, + ctx: ctx, + realm: realm, + flowAlias: flowAlias, } } // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostExecute(r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasCopyPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsFlowAliasCopyPost") @@ -1540,10 +1534,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlows } type ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string - flowAlias string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + flowAlias string requestBody *map[string]interface{} } @@ -1559,26 +1553,26 @@ func (r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostRe /* AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPost Add new authentication execution to a flow - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param flowAlias Alias of parent flow - @return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param flowAlias Alias of parent flow + @return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPost(ctx context.Context, realm string, flowAlias string) ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostRequest { return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - flowAlias: flowAlias, + ctx: ctx, + realm: realm, + flowAlias: flowAlias, } } // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostExecute(r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsExecutionPost") @@ -1642,10 +1636,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlows } type ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string - flowAlias string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + flowAlias string requestBody *map[string]interface{} } @@ -1661,26 +1655,26 @@ func (r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostRequest /* AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPost Add new flow with new execution to existing flow - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param flowAlias Alias of parent authentication flow - @return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param flowAlias Alias of parent authentication flow + @return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPost(ctx context.Context, realm string, flowAlias string) ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostRequest { return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - flowAlias: flowAlias, + ctx: ctx, + realm: realm, + flowAlias: flowAlias, } } // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostExecute(r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsFlowPost") @@ -1744,10 +1738,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlows } type ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string - flowAlias string + realm string + flowAlias string } func (r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetRequest) Execute() ([]AuthenticationExecutionInfoRepresentation, *http.Response, error) { @@ -1757,29 +1751,28 @@ func (r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetRequest) Exe /* AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGet Get authentication executions for a flow - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param flowAlias Flow alias - @return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param flowAlias Flow alias + @return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGet(ctx context.Context, realm string, flowAlias string) ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetRequest { return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - flowAlias: flowAlias, + ctx: ctx, + realm: realm, + flowAlias: flowAlias, } } // Execute executes the request -// -// @return []AuthenticationExecutionInfoRepresentation +// @return []AuthenticationExecutionInfoRepresentation func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetExecute(r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGetRequest) ([]AuthenticationExecutionInfoRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []AuthenticationExecutionInfoRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AuthenticationExecutionInfoRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsGet") @@ -1850,10 +1843,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlows } type ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string - flowAlias string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + flowAlias string authenticationExecutionInfoRepresentation *AuthenticationExecutionInfoRepresentation } @@ -1869,26 +1862,26 @@ func (r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutRequest) Exe /* AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPut Update authentication executions of a Flow - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param flowAlias Flow alias - @return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param flowAlias Flow alias + @return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPut(ctx context.Context, realm string, flowAlias string) ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutRequest { return ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - flowAlias: flowAlias, + ctx: ctx, + realm: realm, + flowAlias: flowAlias, } } // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutExecute(r ApiAdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsFlowAliasExecutionsPut") @@ -1952,9 +1945,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlows } type ApiAdminRealmsRealmAuthenticationFlowsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string + realm string } func (r ApiAdminRealmsRealmAuthenticationFlowsGetRequest) Execute() ([]AuthenticationFlowRepresentation, *http.Response, error) { @@ -1964,27 +1957,26 @@ func (r ApiAdminRealmsRealmAuthenticationFlowsGetRequest) Execute() ([]Authentic /* AdminRealmsRealmAuthenticationFlowsGet Get authentication flows Returns a stream of authentication flows. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmAuthenticationFlowsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationFlowsGetRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsGet(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationFlowsGetRequest { return ApiAdminRealmsRealmAuthenticationFlowsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []AuthenticationFlowRepresentation +// @return []AuthenticationFlowRepresentation func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsGetExecute(r ApiAdminRealmsRealmAuthenticationFlowsGetRequest) ([]AuthenticationFlowRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []AuthenticationFlowRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AuthenticationFlowRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsGet") @@ -2054,10 +2046,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlows } type ApiAdminRealmsRealmAuthenticationFlowsIdDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string - id string + realm string + id string } func (r ApiAdminRealmsRealmAuthenticationFlowsIdDeleteRequest) Execute() (*http.Response, error) { @@ -2067,26 +2059,26 @@ func (r ApiAdminRealmsRealmAuthenticationFlowsIdDeleteRequest) Execute() (*http. /* AdminRealmsRealmAuthenticationFlowsIdDelete Delete an authentication flow - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id Flow id - @return ApiAdminRealmsRealmAuthenticationFlowsIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id Flow id + @return ApiAdminRealmsRealmAuthenticationFlowsIdDeleteRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsIdDelete(ctx context.Context, realm string, id string) ApiAdminRealmsRealmAuthenticationFlowsIdDeleteRequest { return ApiAdminRealmsRealmAuthenticationFlowsIdDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + id: id, } } // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsIdDeleteExecute(r ApiAdminRealmsRealmAuthenticationFlowsIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsIdDelete") @@ -2148,10 +2140,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlows } type ApiAdminRealmsRealmAuthenticationFlowsIdGetRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string - id string + realm string + id string } func (r ApiAdminRealmsRealmAuthenticationFlowsIdGetRequest) Execute() (*AuthenticationFlowRepresentation, *http.Response, error) { @@ -2161,29 +2153,28 @@ func (r ApiAdminRealmsRealmAuthenticationFlowsIdGetRequest) Execute() (*Authenti /* AdminRealmsRealmAuthenticationFlowsIdGet Get authentication flow for id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id Flow id - @return ApiAdminRealmsRealmAuthenticationFlowsIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id Flow id + @return ApiAdminRealmsRealmAuthenticationFlowsIdGetRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsIdGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmAuthenticationFlowsIdGetRequest { return ApiAdminRealmsRealmAuthenticationFlowsIdGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + id: id, } } // Execute executes the request -// -// @return AuthenticationFlowRepresentation +// @return AuthenticationFlowRepresentation func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsIdGetExecute(r ApiAdminRealmsRealmAuthenticationFlowsIdGetRequest) (*AuthenticationFlowRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AuthenticationFlowRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuthenticationFlowRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsIdGet") @@ -2254,10 +2245,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlows } type ApiAdminRealmsRealmAuthenticationFlowsIdPutRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string - id string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + id string authenticationFlowRepresentation *AuthenticationFlowRepresentation } @@ -2273,26 +2264,26 @@ func (r ApiAdminRealmsRealmAuthenticationFlowsIdPutRequest) Execute() (*http.Res /* AdminRealmsRealmAuthenticationFlowsIdPut Update an authentication flow - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @return ApiAdminRealmsRealmAuthenticationFlowsIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmAuthenticationFlowsIdPutRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsIdPut(ctx context.Context, realm string, id string) ApiAdminRealmsRealmAuthenticationFlowsIdPutRequest { return ApiAdminRealmsRealmAuthenticationFlowsIdPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + id: id, } } // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsIdPutExecute(r ApiAdminRealmsRealmAuthenticationFlowsIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsIdPut") @@ -2356,9 +2347,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlows } type ApiAdminRealmsRealmAuthenticationFlowsPostRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string authenticationFlowRepresentation *AuthenticationFlowRepresentation } @@ -2374,24 +2365,24 @@ func (r ApiAdminRealmsRealmAuthenticationFlowsPostRequest) Execute() (*http.Resp /* AdminRealmsRealmAuthenticationFlowsPost Create a new authentication flow - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmAuthenticationFlowsPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationFlowsPostRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsPost(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationFlowsPostRequest { return ApiAdminRealmsRealmAuthenticationFlowsPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlowsPostExecute(r ApiAdminRealmsRealmAuthenticationFlowsPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFlowsPost") @@ -2454,9 +2445,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFlows } type ApiAdminRealmsRealmAuthenticationFormActionProvidersGetRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string + realm string } func (r ApiAdminRealmsRealmAuthenticationFormActionProvidersGetRequest) Execute() ([]map[string]interface{}, *http.Response, error) { @@ -2466,27 +2457,26 @@ func (r ApiAdminRealmsRealmAuthenticationFormActionProvidersGetRequest) Execute( /* AdminRealmsRealmAuthenticationFormActionProvidersGet Get form action providers Returns a stream of form action providers. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmAuthenticationFormActionProvidersGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationFormActionProvidersGetRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFormActionProvidersGet(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationFormActionProvidersGetRequest { return ApiAdminRealmsRealmAuthenticationFormActionProvidersGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []map[string]interface{} +// @return []map[string]interface{} func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFormActionProvidersGetExecute(r ApiAdminRealmsRealmAuthenticationFormActionProvidersGetRequest) ([]map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFormActionProvidersGet") @@ -2556,9 +2546,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFormA } type ApiAdminRealmsRealmAuthenticationFormProvidersGetRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string + realm string } func (r ApiAdminRealmsRealmAuthenticationFormProvidersGetRequest) Execute() ([]map[string]interface{}, *http.Response, error) { @@ -2568,27 +2558,26 @@ func (r ApiAdminRealmsRealmAuthenticationFormProvidersGetRequest) Execute() ([]m /* AdminRealmsRealmAuthenticationFormProvidersGet Get form providers Returns a stream of form providers. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmAuthenticationFormProvidersGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationFormProvidersGetRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFormProvidersGet(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationFormProvidersGetRequest { return ApiAdminRealmsRealmAuthenticationFormProvidersGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []map[string]interface{} +// @return []map[string]interface{} func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFormProvidersGetExecute(r ApiAdminRealmsRealmAuthenticationFormProvidersGetRequest) ([]map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationFormProvidersGet") @@ -2658,9 +2647,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationFormP } type ApiAdminRealmsRealmAuthenticationPerClientConfigDescriptionGetRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string + realm string } func (r ApiAdminRealmsRealmAuthenticationPerClientConfigDescriptionGetRequest) Execute() (*map[string][]ConfigPropertyRepresentation, *http.Response, error) { @@ -2670,27 +2659,26 @@ func (r ApiAdminRealmsRealmAuthenticationPerClientConfigDescriptionGetRequest) E /* AdminRealmsRealmAuthenticationPerClientConfigDescriptionGet Get configuration descriptions for all clients - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmAuthenticationPerClientConfigDescriptionGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationPerClientConfigDescriptionGetRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationPerClientConfigDescriptionGet(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationPerClientConfigDescriptionGetRequest { return ApiAdminRealmsRealmAuthenticationPerClientConfigDescriptionGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return map[string][]ConfigPropertyRepresentation +// @return map[string][]ConfigPropertyRepresentation func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationPerClientConfigDescriptionGetExecute(r ApiAdminRealmsRealmAuthenticationPerClientConfigDescriptionGetRequest) (*map[string][]ConfigPropertyRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *map[string][]ConfigPropertyRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *map[string][]ConfigPropertyRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationPerClientConfigDescriptionGet") @@ -2760,9 +2748,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationPerCl } type ApiAdminRealmsRealmAuthenticationRegisterRequiredActionPostRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string requestBody *map[string]string } @@ -2778,24 +2766,24 @@ func (r ApiAdminRealmsRealmAuthenticationRegisterRequiredActionPostRequest) Exec /* AdminRealmsRealmAuthenticationRegisterRequiredActionPost Register a new required actions - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmAuthenticationRegisterRequiredActionPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationRegisterRequiredActionPostRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRegisterRequiredActionPost(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationRegisterRequiredActionPostRequest { return ApiAdminRealmsRealmAuthenticationRegisterRequiredActionPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRegisterRequiredActionPostExecute(r ApiAdminRealmsRealmAuthenticationRegisterRequiredActionPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRegisterRequiredActionPost") @@ -2858,10 +2846,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRegis } type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string - alias string + realm string + alias string } func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteRequest) Execute() (*http.Response, error) { @@ -2871,26 +2859,26 @@ func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteRequest /* AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDelete Delete RequiredAction configuration - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias Alias of required action - @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDelete(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteRequest { return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDelete") @@ -2952,10 +2940,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequi } type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGetRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string - alias string + realm string + alias string } func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGetRequest) Execute() (*RequiredActionConfigInfoRepresentation, *http.Response, error) { @@ -2965,29 +2953,28 @@ func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGe /* AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGet Get RequiredAction provider configuration description - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias Alias of required action - @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGetRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGetRequest { return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request -// -// @return RequiredActionConfigInfoRepresentation +// @return RequiredActionConfigInfoRepresentation func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGetExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGetRequest) (*RequiredActionConfigInfoRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RequiredActionConfigInfoRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RequiredActionConfigInfoRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigDescriptionGet") @@ -3058,10 +3045,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequi } type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string - alias string + realm string + alias string } func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetRequest) Execute() (*RequiredActionConfigRepresentation, *http.Response, error) { @@ -3071,29 +3058,28 @@ func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetRequest) E /* AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGet Get RequiredAction configuration - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias Alias of required action - @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetRequest { return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request -// -// @return RequiredActionConfigRepresentation +// @return RequiredActionConfigRepresentation func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigGetRequest) (*RequiredActionConfigRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RequiredActionConfigRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RequiredActionConfigRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigGet") @@ -3164,10 +3150,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequi } type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string - alias string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + alias string requiredActionConfigRepresentation *RequiredActionConfigRepresentation } @@ -3183,26 +3169,26 @@ func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutRequest) E /* AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPut Update RequiredAction configuration - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias Alias of required action - @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPut(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutRequest { return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasConfigPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasConfigPut") @@ -3266,10 +3252,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequi } type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string - alias string + realm string + alias string } func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasDeleteRequest) Execute() (*http.Response, error) { @@ -3279,26 +3265,26 @@ func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasDeleteRequest) Exec /* AdminRealmsRealmAuthenticationRequiredActionsAliasDelete Delete required action - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias Alias of required action - @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasDeleteRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasDelete(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasDeleteRequest { return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasDeleteExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasDelete") @@ -3360,10 +3346,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequi } type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasGetRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string - alias string + realm string + alias string } func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasGetRequest) Execute() (*RequiredActionProviderRepresentation, *http.Response, error) { @@ -3373,29 +3359,28 @@ func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasGetRequest) Execute /* AdminRealmsRealmAuthenticationRequiredActionsAliasGet Get required action for alias - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias Alias of required action - @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasGetRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasGetRequest { return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request -// -// @return RequiredActionProviderRepresentation +// @return RequiredActionProviderRepresentation func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasGetExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasGetRequest) (*RequiredActionProviderRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RequiredActionProviderRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RequiredActionProviderRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasGet") @@ -3466,10 +3451,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequi } type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string - alias string + realm string + alias string } func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostRequest) Execute() (*http.Response, error) { @@ -3479,26 +3464,26 @@ func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostRe /* AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPost Lower required action's priority - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias Alias of required action - @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPost(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostRequest { return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasLowerPriorityPost") @@ -3560,10 +3545,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequi } type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasPutRequest struct { - ctx context.Context - ApiService *AuthenticationManagementAPIService - realm string - alias string + ctx context.Context + ApiService *AuthenticationManagementAPIService + realm string + alias string requiredActionProviderRepresentation *RequiredActionProviderRepresentation } @@ -3579,26 +3564,26 @@ func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasPutRequest) Execute /* AdminRealmsRealmAuthenticationRequiredActionsAliasPut Update required action - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias Alias of required action - @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasPutRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasPut(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasPutRequest { return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasPutExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasPut") @@ -3662,10 +3647,10 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequi } type ApiAdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string - alias string + realm string + alias string } func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostRequest) Execute() (*http.Response, error) { @@ -3675,26 +3660,26 @@ func (r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostRe /* AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPost Raise required action's priority - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias Alias of required action - @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias Alias of required action + @return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPost(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostRequest { return ApiAdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsAliasRaisePriorityPost") @@ -3756,9 +3741,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequi } type ApiAdminRealmsRealmAuthenticationRequiredActionsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string + realm string } func (r ApiAdminRealmsRealmAuthenticationRequiredActionsGetRequest) Execute() ([]RequiredActionProviderRepresentation, *http.Response, error) { @@ -3768,27 +3753,26 @@ func (r ApiAdminRealmsRealmAuthenticationRequiredActionsGetRequest) Execute() ([ /* AdminRealmsRealmAuthenticationRequiredActionsGet Get required actions Returns a stream of required actions. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmAuthenticationRequiredActionsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationRequiredActionsGetRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsGet(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationRequiredActionsGetRequest { return ApiAdminRealmsRealmAuthenticationRequiredActionsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []RequiredActionProviderRepresentation +// @return []RequiredActionProviderRepresentation func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequiredActionsGetExecute(r ApiAdminRealmsRealmAuthenticationRequiredActionsGetRequest) ([]RequiredActionProviderRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RequiredActionProviderRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RequiredActionProviderRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationRequiredActionsGet") @@ -3858,9 +3842,9 @@ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationRequi } type ApiAdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthenticationManagementAPIService - realm string + realm string } func (r ApiAdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetRequest) Execute() ([]map[string]string, *http.Response, error) { @@ -3870,27 +3854,26 @@ func (r ApiAdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetRequest) /* AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGet Get unregistered required actions Returns a stream of unregistered required actions. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetRequest */ func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGet(ctx context.Context, realm string) ApiAdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetRequest { return ApiAdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []map[string]string +// @return []map[string]string func (a *AuthenticationManagementAPIService) AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetExecute(r ApiAdminRealmsRealmAuthenticationUnregisteredRequiredActionsGetRequest) ([]map[string]string, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []map[string]string + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []map[string]string ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticationManagementAPIService.AdminRealmsRealmAuthenticationUnregisteredRequiredActionsGet") diff --git a/api_client_attribute_certificate.go b/api_client_attribute_certificate.go index 32ced72..aeacb37 100644 --- a/api_client_attribute_certificate.go +++ b/api_client_attribute_certificate.go @@ -16,19 +16,20 @@ import ( "io" "net/http" "net/url" - "os" "strings" + "os" ) + // ClientAttributeCertificateAPIService ClientAttributeCertificateAPI service type ClientAttributeCertificateAPIService service type ApiAdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostRequest struct { - ctx context.Context - ApiService *ClientAttributeCertificateAPIService - realm string - clientUuid string - attr string + ctx context.Context + ApiService *ClientAttributeCertificateAPIService + realm string + clientUuid string + attr string keyStoreConfig *KeyStoreConfig } @@ -44,31 +45,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostRequest) /* AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost Get a keystore file for the client, containing private key and public certificate - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param attr - @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param attr + @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostRequest */ func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost(ctx context.Context, realm string, clientUuid string, attr string) ApiAdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostRequest { return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - attr: attr, + attr: attr, } } // Execute executes the request -// -// @return *os.File +// @return *os.File func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostExecute(r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPostRequest) (*os.File, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *os.File + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *os.File ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientAttributeCertificateAPIService.AdminRealmsRealmClientsClientUuidCertificatesAttrDownloadPost") @@ -142,11 +142,11 @@ func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuid } type ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostRequest struct { - ctx context.Context - ApiService *ClientAttributeCertificateAPIService - realm string - clientUuid string - attr string + ctx context.Context + ApiService *ClientAttributeCertificateAPIService + realm string + clientUuid string + attr string keyStoreConfig *KeyStoreConfig } @@ -162,31 +162,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadP /* AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost Generate a new keypair and certificate, and get the private key file Generates a keypair and certificate and serves the private key in a specified keystore format. Only generated public certificate is saved in Keycloak DB - the private key is not. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param attr - @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param attr + @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostRequest */ func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost(ctx context.Context, realm string, clientUuid string, attr string) ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostRequest { return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - attr: attr, + attr: attr, } } // Execute executes the request -// -// @return *os.File +// @return *os.File func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostExecute(r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPostRequest) (*os.File, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *os.File + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *os.File ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientAttributeCertificateAPIService.AdminRealmsRealmClientsClientUuidCertificatesAttrGenerateAndDownloadPost") @@ -260,11 +259,11 @@ func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuid } type ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientAttributeCertificateAPIService - realm string + realm string clientUuid string - attr string + attr string } func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostRequest) Execute() (*CertificateRepresentation, *http.Response, error) { @@ -274,31 +273,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostRequest) /* AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost Generate a new certificate with new key pair - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param attr - @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param attr + @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostRequest */ func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost(ctx context.Context, realm string, clientUuid string, attr string) ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostRequest { return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - attr: attr, + attr: attr, } } // Execute executes the request -// -// @return CertificateRepresentation +// @return CertificateRepresentation func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostExecute(r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePostRequest) (*CertificateRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CertificateRepresentation + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientAttributeCertificateAPIService.AdminRealmsRealmClientsClientUuidCertificatesAttrGeneratePost") @@ -370,11 +368,11 @@ func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuid } type ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientAttributeCertificateAPIService - realm string + realm string clientUuid string - attr string + attr string } func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGetRequest) Execute() (*CertificateRepresentation, *http.Response, error) { @@ -384,31 +382,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGetRequest) Execute( /* AdminRealmsRealmClientsClientUuidCertificatesAttrGet Get key info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param attr - @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param attr + @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGetRequest */ func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrGet(ctx context.Context, realm string, clientUuid string, attr string) ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGetRequest { return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - attr: attr, + attr: attr, } } // Execute executes the request -// -// @return CertificateRepresentation +// @return CertificateRepresentation func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrGetExecute(r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrGetRequest) (*CertificateRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CertificateRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientAttributeCertificateAPIService.AdminRealmsRealmClientsClientUuidCertificatesAttrGet") @@ -480,11 +477,11 @@ func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuid } type ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientAttributeCertificateAPIService - realm string + realm string clientUuid string - attr string + attr string } func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostRequest) Execute() (*CertificateRepresentation, *http.Response, error) { @@ -494,31 +491,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePos /* AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost Upload only certificate, not private key - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param attr - @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param attr + @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostRequest */ func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost(ctx context.Context, realm string, clientUuid string, attr string) ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostRequest { return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - attr: attr, + attr: attr, } } // Execute executes the request -// -// @return CertificateRepresentation +// @return CertificateRepresentation func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostExecute(r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePostRequest) (*CertificateRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CertificateRepresentation + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientAttributeCertificateAPIService.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadCertificatePost") @@ -590,11 +586,11 @@ func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuid } type ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientAttributeCertificateAPIService - realm string + realm string clientUuid string - attr string + attr string } func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostRequest) Execute() (*CertificateRepresentation, *http.Response, error) { @@ -604,31 +600,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostRequest) E /* AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost Upload certificate and eventually private key - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param attr - @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param attr + @return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostRequest */ func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost(ctx context.Context, realm string, clientUuid string, attr string) ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostRequest { return ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - attr: attr, + attr: attr, } } // Execute executes the request -// -// @return CertificateRepresentation +// @return CertificateRepresentation func (a *ClientAttributeCertificateAPIService) AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostExecute(r ApiAdminRealmsRealmClientsClientUuidCertificatesAttrUploadPostRequest) (*CertificateRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CertificateRepresentation + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientAttributeCertificateAPIService.AdminRealmsRealmClientsClientUuidCertificatesAttrUploadPost") diff --git a/api_client_initial_access.go b/api_client_initial_access.go index d4fb2af..d18030c 100644 --- a/api_client_initial_access.go +++ b/api_client_initial_access.go @@ -19,13 +19,14 @@ import ( "strings" ) + // ClientInitialAccessAPIService ClientInitialAccessAPI service type ClientInitialAccessAPIService service type ApiAdminRealmsRealmClientsInitialAccessGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientInitialAccessAPIService - realm string + realm string } func (r ApiAdminRealmsRealmClientsInitialAccessGetRequest) Execute() ([]ClientInitialAccessPresentation, *http.Response, error) { @@ -35,27 +36,26 @@ func (r ApiAdminRealmsRealmClientsInitialAccessGetRequest) Execute() ([]ClientIn /* AdminRealmsRealmClientsInitialAccessGet Method for AdminRealmsRealmClientsInitialAccessGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmClientsInitialAccessGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientsInitialAccessGetRequest */ func (a *ClientInitialAccessAPIService) AdminRealmsRealmClientsInitialAccessGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientsInitialAccessGetRequest { return ApiAdminRealmsRealmClientsInitialAccessGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []ClientInitialAccessPresentation +// @return []ClientInitialAccessPresentation func (a *ClientInitialAccessAPIService) AdminRealmsRealmClientsInitialAccessGetExecute(r ApiAdminRealmsRealmClientsInitialAccessGetRequest) ([]ClientInitialAccessPresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ClientInitialAccessPresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClientInitialAccessPresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientInitialAccessAPIService.AdminRealmsRealmClientsInitialAccessGet") @@ -125,10 +125,10 @@ func (a *ClientInitialAccessAPIService) AdminRealmsRealmClientsInitialAccessGetE } type ApiAdminRealmsRealmClientsInitialAccessIdDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientInitialAccessAPIService - realm string - id string + realm string + id string } func (r ApiAdminRealmsRealmClientsInitialAccessIdDeleteRequest) Execute() (*http.Response, error) { @@ -138,26 +138,26 @@ func (r ApiAdminRealmsRealmClientsInitialAccessIdDeleteRequest) Execute() (*http /* AdminRealmsRealmClientsInitialAccessIdDelete Method for AdminRealmsRealmClientsInitialAccessIdDelete - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @return ApiAdminRealmsRealmClientsInitialAccessIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmClientsInitialAccessIdDeleteRequest */ func (a *ClientInitialAccessAPIService) AdminRealmsRealmClientsInitialAccessIdDelete(ctx context.Context, realm string, id string) ApiAdminRealmsRealmClientsInitialAccessIdDeleteRequest { return ApiAdminRealmsRealmClientsInitialAccessIdDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + id: id, } } // Execute executes the request func (a *ClientInitialAccessAPIService) AdminRealmsRealmClientsInitialAccessIdDeleteExecute(r ApiAdminRealmsRealmClientsInitialAccessIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientInitialAccessAPIService.AdminRealmsRealmClientsInitialAccessIdDelete") @@ -219,9 +219,9 @@ func (a *ClientInitialAccessAPIService) AdminRealmsRealmClientsInitialAccessIdDe } type ApiAdminRealmsRealmClientsInitialAccessPostRequest struct { - ctx context.Context - ApiService *ClientInitialAccessAPIService - realm string + ctx context.Context + ApiService *ClientInitialAccessAPIService + realm string clientInitialAccessCreatePresentation *ClientInitialAccessCreatePresentation } @@ -237,27 +237,26 @@ func (r ApiAdminRealmsRealmClientsInitialAccessPostRequest) Execute() (*ClientIn /* AdminRealmsRealmClientsInitialAccessPost Create a new initial access token. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmClientsInitialAccessPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientsInitialAccessPostRequest */ func (a *ClientInitialAccessAPIService) AdminRealmsRealmClientsInitialAccessPost(ctx context.Context, realm string) ApiAdminRealmsRealmClientsInitialAccessPostRequest { return ApiAdminRealmsRealmClientsInitialAccessPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return ClientInitialAccessCreatePresentation +// @return ClientInitialAccessCreatePresentation func (a *ClientInitialAccessAPIService) AdminRealmsRealmClientsInitialAccessPostExecute(r ApiAdminRealmsRealmClientsInitialAccessPostRequest) (*ClientInitialAccessCreatePresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ClientInitialAccessCreatePresentation + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientInitialAccessCreatePresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientInitialAccessAPIService.AdminRealmsRealmClientsInitialAccessPost") diff --git a/api_client_registration_policy.go b/api_client_registration_policy.go index b18d88d..bb94c45 100644 --- a/api_client_registration_policy.go +++ b/api_client_registration_policy.go @@ -19,13 +19,14 @@ import ( "strings" ) + // ClientRegistrationPolicyAPIService ClientRegistrationPolicyAPI service type ClientRegistrationPolicyAPIService service type ApiAdminRealmsRealmClientRegistrationPolicyProvidersGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientRegistrationPolicyAPIService - realm string + realm string } func (r ApiAdminRealmsRealmClientRegistrationPolicyProvidersGetRequest) Execute() ([]ComponentTypeRepresentation, *http.Response, error) { @@ -35,27 +36,26 @@ func (r ApiAdminRealmsRealmClientRegistrationPolicyProvidersGetRequest) Execute( /* AdminRealmsRealmClientRegistrationPolicyProvidersGet Base path for retrieve providers with the configProperties properly filled - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmClientRegistrationPolicyProvidersGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientRegistrationPolicyProvidersGetRequest */ func (a *ClientRegistrationPolicyAPIService) AdminRealmsRealmClientRegistrationPolicyProvidersGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientRegistrationPolicyProvidersGetRequest { return ApiAdminRealmsRealmClientRegistrationPolicyProvidersGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []ComponentTypeRepresentation +// @return []ComponentTypeRepresentation func (a *ClientRegistrationPolicyAPIService) AdminRealmsRealmClientRegistrationPolicyProvidersGetExecute(r ApiAdminRealmsRealmClientRegistrationPolicyProvidersGetRequest) ([]ComponentTypeRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ComponentTypeRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ComponentTypeRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRegistrationPolicyAPIService.AdminRealmsRealmClientRegistrationPolicyProvidersGet") diff --git a/api_client_role_mappings.go b/api_client_role_mappings.go index c9c3fb1..5bff5df 100644 --- a/api_client_role_mappings.go +++ b/api_client_role_mappings.go @@ -19,15 +19,16 @@ import ( "strings" ) + // ClientRoleMappingsAPIService ClientRoleMappingsAPI service type ClientRoleMappingsAPIService service type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientRoleMappingsAPIService - realm string - groupId string - clientId string + realm string + groupId string + clientId string } func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -37,31 +38,30 @@ func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetR /* AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGet Get available client-level roles that can be mapped to the user or group - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @param clientId client id (not clientId!) - @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetRequest */ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGet(ctx context.Context, realm string, groupId string, clientId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetRequest { return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, - clientId: clientId, + ctx: ctx, + realm: realm, + groupId: groupId, + clientId: clientId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdAvailableGet") @@ -133,11 +133,11 @@ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappings } type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetRequest struct { - ctx context.Context - ApiService *ClientRoleMappingsAPIService - realm string - groupId string - clientId string + ctx context.Context + ApiService *ClientRoleMappingsAPIService + realm string + groupId string + clientId string briefRepresentation *bool } @@ -154,31 +154,30 @@ func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetR /* AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGet Get effective client-level role mappings This recurses any composite roles - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @param clientId client id (not clientId!) - @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetRequest */ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGet(ctx context.Context, realm string, groupId string, clientId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetRequest { return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, - clientId: clientId, + ctx: ctx, + realm: realm, + groupId: groupId, + clientId: clientId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdCompositeGet") @@ -256,11 +255,11 @@ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappings } type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteRequest struct { - ctx context.Context - ApiService *ClientRoleMappingsAPIService - realm string - groupId string - clientId string + ctx context.Context + ApiService *ClientRoleMappingsAPIService + realm string + groupId string + clientId string roleRepresentation *[]RoleRepresentation } @@ -276,28 +275,28 @@ func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteRequest /* AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDelete Delete client-level roles from user or group role mapping - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @param clientId client id (not clientId!) - @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteRequest */ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDelete(ctx context.Context, realm string, groupId string, clientId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteRequest { return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, - clientId: clientId, + ctx: ctx, + realm: realm, + groupId: groupId, + clientId: clientId, } } // Execute executes the request func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdDelete") @@ -362,11 +361,11 @@ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappings } type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientRoleMappingsAPIService - realm string - groupId string - clientId string + realm string + groupId string + clientId string } func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -376,31 +375,30 @@ func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetRequest) E /* AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGet Get client-level role mappings for the user or group, and the app - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @param clientId client id (not clientId!) - @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetRequest */ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGet(ctx context.Context, realm string, groupId string, clientId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetRequest { return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, - clientId: clientId, + ctx: ctx, + realm: realm, + groupId: groupId, + clientId: clientId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdGet") @@ -472,11 +470,11 @@ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappings } type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostRequest struct { - ctx context.Context - ApiService *ClientRoleMappingsAPIService - realm string - groupId string - clientId string + ctx context.Context + ApiService *ClientRoleMappingsAPIService + realm string + groupId string + clientId string roleRepresentation *[]RoleRepresentation } @@ -492,28 +490,28 @@ func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostRequest) /* AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPost Add client-level roles to the user or group role mapping - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @param clientId client id (not clientId!) - @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostRequest */ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPost(ctx context.Context, realm string, groupId string, clientId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostRequest { return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, - clientId: clientId, + ctx: ctx, + realm: realm, + groupId: groupId, + clientId: clientId, } } // Execute executes the request func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsClientsClientIdPost") @@ -578,11 +576,11 @@ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmGroupsGroupIdRoleMappings } type ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientRoleMappingsAPIService - realm string - userId string - clientId string + realm string + userId string + clientId string } func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -592,31 +590,30 @@ func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetReq /* AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGet Get available client-level roles that can be mapped to the user or group - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param userId - @param clientId client id (not clientId!) - @return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetRequest */ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGet(ctx context.Context, realm string, userId string, clientId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetRequest { return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - userId: userId, - clientId: clientId, + ctx: ctx, + realm: realm, + userId: userId, + clientId: clientId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdAvailableGet") @@ -688,11 +685,11 @@ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsCl } type ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetRequest struct { - ctx context.Context - ApiService *ClientRoleMappingsAPIService - realm string - userId string - clientId string + ctx context.Context + ApiService *ClientRoleMappingsAPIService + realm string + userId string + clientId string briefRepresentation *bool } @@ -709,31 +706,30 @@ func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetReq /* AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGet Get effective client-level role mappings This recurses any composite roles - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param userId - @param clientId client id (not clientId!) - @return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetRequest */ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGet(ctx context.Context, realm string, userId string, clientId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetRequest { return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - userId: userId, - clientId: clientId, + ctx: ctx, + realm: realm, + userId: userId, + clientId: clientId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdCompositeGet") @@ -811,11 +807,11 @@ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsCl } type ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteRequest struct { - ctx context.Context - ApiService *ClientRoleMappingsAPIService - realm string - userId string - clientId string + ctx context.Context + ApiService *ClientRoleMappingsAPIService + realm string + userId string + clientId string roleRepresentation *[]RoleRepresentation } @@ -831,28 +827,28 @@ func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteRequest) /* AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDelete Delete client-level roles from user or group role mapping - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param userId - @param clientId client id (not clientId!) - @return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteRequest */ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDelete(ctx context.Context, realm string, userId string, clientId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteRequest { return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - userId: userId, - clientId: clientId, + ctx: ctx, + realm: realm, + userId: userId, + clientId: clientId, } } // Execute executes the request func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdDelete") @@ -917,11 +913,11 @@ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsCl } type ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientRoleMappingsAPIService - realm string - userId string - clientId string + realm string + userId string + clientId string } func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -931,31 +927,30 @@ func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetRequest) Exe /* AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGet Get client-level role mappings for the user or group, and the app - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param userId - @param clientId client id (not clientId!) - @return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetRequest */ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGet(ctx context.Context, realm string, userId string, clientId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetRequest { return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - userId: userId, - clientId: clientId, + ctx: ctx, + realm: realm, + userId: userId, + clientId: clientId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdGet") @@ -1027,11 +1022,11 @@ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsCl } type ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostRequest struct { - ctx context.Context - ApiService *ClientRoleMappingsAPIService - realm string - userId string - clientId string + ctx context.Context + ApiService *ClientRoleMappingsAPIService + realm string + userId string + clientId string roleRepresentation *[]RoleRepresentation } @@ -1047,28 +1042,28 @@ func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostRequest) Ex /* AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPost Add client-level roles to the user or group role mapping - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param userId - @param clientId client id (not clientId!) - @return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @param clientId client id (not clientId!) + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostRequest */ func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPost(ctx context.Context, realm string, userId string, clientId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostRequest { return ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - userId: userId, - clientId: clientId, + ctx: ctx, + realm: realm, + userId: userId, + clientId: clientId, } } // Execute executes the request func (a *ClientRoleMappingsAPIService) AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientRoleMappingsAPIService.AdminRealmsRealmUsersUserIdRoleMappingsClientsClientIdPost") diff --git a/api_client_scopes.go b/api_client_scopes.go index a31750d..0bfe6cb 100644 --- a/api_client_scopes.go +++ b/api_client_scopes.go @@ -19,13 +19,14 @@ import ( "strings" ) + // ClientScopesAPIService ClientScopesAPI service type ClientScopesAPIService service type ApiAdminRealmsRealmClientScopesClientScopeIdDeleteRequest struct { - ctx context.Context - ApiService *ClientScopesAPIService - realm string + ctx context.Context + ApiService *ClientScopesAPIService + realm string clientScopeId string } @@ -36,16 +37,16 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdDeleteRequest) Execute() (*h /* AdminRealmsRealmClientScopesClientScopeIdDelete Delete the client scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientScopesClientScopeIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdDeleteRequest */ func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesClientScopeIdDelete(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdDeleteRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdDeleteRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } @@ -53,9 +54,9 @@ func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesClientScopeIdDelete // Execute executes the request func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesClientScopeIdDeleteExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientScopesClientScopeIdDelete") @@ -117,9 +118,9 @@ func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesClientScopeIdDelete } type ApiAdminRealmsRealmClientScopesClientScopeIdGetRequest struct { - ctx context.Context - ApiService *ClientScopesAPIService - realm string + ctx context.Context + ApiService *ClientScopesAPIService + realm string clientScopeId string } @@ -130,29 +131,28 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdGetRequest) Execute() (*Clie /* AdminRealmsRealmClientScopesClientScopeIdGet Get representation of the client scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientScopesClientScopeIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdGetRequest */ func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesClientScopeIdGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdGetRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } // Execute executes the request -// -// @return ClientScopeRepresentation +// @return ClientScopeRepresentation func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesClientScopeIdGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdGetRequest) (*ClientScopeRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ClientScopeRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientScopeRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientScopesClientScopeIdGet") @@ -223,10 +223,10 @@ func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesClientScopeIdGetExe } type ApiAdminRealmsRealmClientScopesClientScopeIdPutRequest struct { - ctx context.Context - ApiService *ClientScopesAPIService - realm string - clientScopeId string + ctx context.Context + ApiService *ClientScopesAPIService + realm string + clientScopeId string clientScopeRepresentation *ClientScopeRepresentation } @@ -242,16 +242,16 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdPutRequest) Execute() (*http /* AdminRealmsRealmClientScopesClientScopeIdPut Update the client scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientScopesClientScopeIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdPutRequest */ func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesClientScopeIdPut(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdPutRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdPutRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } @@ -259,9 +259,9 @@ func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesClientScopeIdPut(ct // Execute executes the request func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesClientScopeIdPutExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientScopesClientScopeIdPut") @@ -325,9 +325,9 @@ func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesClientScopeIdPutExe } type ApiAdminRealmsRealmClientScopesGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientScopesAPIService - realm string + realm string } func (r ApiAdminRealmsRealmClientScopesGetRequest) Execute() ([]ClientScopeRepresentation, *http.Response, error) { @@ -337,27 +337,26 @@ func (r ApiAdminRealmsRealmClientScopesGetRequest) Execute() ([]ClientScopeRepre /* AdminRealmsRealmClientScopesGet Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmClientScopesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientScopesGetRequest */ func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientScopesGetRequest { return ApiAdminRealmsRealmClientScopesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []ClientScopeRepresentation +// @return []ClientScopeRepresentation func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesGetExecute(r ApiAdminRealmsRealmClientScopesGetRequest) ([]ClientScopeRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ClientScopeRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClientScopeRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientScopesGet") @@ -427,9 +426,9 @@ func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesGetExecute(r ApiAdm } type ApiAdminRealmsRealmClientScopesPostRequest struct { - ctx context.Context - ApiService *ClientScopesAPIService - realm string + ctx context.Context + ApiService *ClientScopesAPIService + realm string clientScopeRepresentation *ClientScopeRepresentation } @@ -445,24 +444,24 @@ func (r ApiAdminRealmsRealmClientScopesPostRequest) Execute() (*http.Response, e /* AdminRealmsRealmClientScopesPost Create a new client scope Client Scope’s name must be unique! - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmClientScopesPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientScopesPostRequest */ func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesPost(ctx context.Context, realm string) ApiAdminRealmsRealmClientScopesPostRequest { return ApiAdminRealmsRealmClientScopesPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesPostExecute(r ApiAdminRealmsRealmClientScopesPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientScopesPost") @@ -525,9 +524,9 @@ func (a *ClientScopesAPIService) AdminRealmsRealmClientScopesPostExecute(r ApiAd } type ApiAdminRealmsRealmClientTemplatesClientScopeIdDeleteRequest struct { - ctx context.Context - ApiService *ClientScopesAPIService - realm string + ctx context.Context + ApiService *ClientScopesAPIService + realm string clientScopeId string } @@ -538,16 +537,16 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdDeleteRequest) Execute() /* AdminRealmsRealmClientTemplatesClientScopeIdDelete Delete the client scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdDeleteRequest */ func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesClientScopeIdDelete(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdDeleteRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdDeleteRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } @@ -555,9 +554,9 @@ func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesClientScopeIdDel // Execute executes the request func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesClientScopeIdDeleteExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientTemplatesClientScopeIdDelete") @@ -619,9 +618,9 @@ func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesClientScopeIdDel } type ApiAdminRealmsRealmClientTemplatesClientScopeIdGetRequest struct { - ctx context.Context - ApiService *ClientScopesAPIService - realm string + ctx context.Context + ApiService *ClientScopesAPIService + realm string clientScopeId string } @@ -632,29 +631,28 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdGetRequest) Execute() (*C /* AdminRealmsRealmClientTemplatesClientScopeIdGet Get representation of the client scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdGetRequest */ func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesClientScopeIdGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdGetRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } // Execute executes the request -// -// @return ClientScopeRepresentation +// @return ClientScopeRepresentation func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesClientScopeIdGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdGetRequest) (*ClientScopeRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ClientScopeRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientScopeRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientTemplatesClientScopeIdGet") @@ -725,10 +723,10 @@ func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesClientScopeIdGet } type ApiAdminRealmsRealmClientTemplatesClientScopeIdPutRequest struct { - ctx context.Context - ApiService *ClientScopesAPIService - realm string - clientScopeId string + ctx context.Context + ApiService *ClientScopesAPIService + realm string + clientScopeId string clientScopeRepresentation *ClientScopeRepresentation } @@ -744,16 +742,16 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdPutRequest) Execute() (*h /* AdminRealmsRealmClientTemplatesClientScopeIdPut Update the client scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdPutRequest */ func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesClientScopeIdPut(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdPutRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdPutRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } @@ -761,9 +759,9 @@ func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesClientScopeIdPut // Execute executes the request func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesClientScopeIdPutExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientTemplatesClientScopeIdPut") @@ -827,9 +825,9 @@ func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesClientScopeIdPut } type ApiAdminRealmsRealmClientTemplatesGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientScopesAPIService - realm string + realm string } func (r ApiAdminRealmsRealmClientTemplatesGetRequest) Execute() ([]ClientScopeRepresentation, *http.Response, error) { @@ -839,27 +837,26 @@ func (r ApiAdminRealmsRealmClientTemplatesGetRequest) Execute() ([]ClientScopeRe /* AdminRealmsRealmClientTemplatesGet Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmClientTemplatesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientTemplatesGetRequest */ func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientTemplatesGetRequest { return ApiAdminRealmsRealmClientTemplatesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []ClientScopeRepresentation +// @return []ClientScopeRepresentation func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesGetExecute(r ApiAdminRealmsRealmClientTemplatesGetRequest) ([]ClientScopeRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ClientScopeRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClientScopeRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientTemplatesGet") @@ -929,9 +926,9 @@ func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesGetExecute(r Api } type ApiAdminRealmsRealmClientTemplatesPostRequest struct { - ctx context.Context - ApiService *ClientScopesAPIService - realm string + ctx context.Context + ApiService *ClientScopesAPIService + realm string clientScopeRepresentation *ClientScopeRepresentation } @@ -947,24 +944,24 @@ func (r ApiAdminRealmsRealmClientTemplatesPostRequest) Execute() (*http.Response /* AdminRealmsRealmClientTemplatesPost Create a new client scope Client Scope’s name must be unique! - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmClientTemplatesPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientTemplatesPostRequest */ func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesPost(ctx context.Context, realm string) ApiAdminRealmsRealmClientTemplatesPostRequest { return ApiAdminRealmsRealmClientTemplatesPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *ClientScopesAPIService) AdminRealmsRealmClientTemplatesPostExecute(r ApiAdminRealmsRealmClientTemplatesPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientScopesAPIService.AdminRealmsRealmClientTemplatesPost") diff --git a/api_clients.go b/api_clients.go index e5f8ec0..e3d7e10 100644 --- a/api_clients.go +++ b/api_clients.go @@ -19,13 +19,14 @@ import ( "strings" ) + // ClientsAPIService ClientsAPI service type ClientsAPIService service type ApiAdminRealmsRealmClientsClientUuidClientSecretGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string } @@ -36,29 +37,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidClientSecretGetRequest) Execute() (* /* AdminRealmsRealmClientsClientUuidClientSecretGet Get the client secret - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidClientSecretGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidClientSecretGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidClientSecretGetRequest { return ApiAdminRealmsRealmClientsClientUuidClientSecretGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return CredentialRepresentation +// @return CredentialRepresentation func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretGetExecute(r ApiAdminRealmsRealmClientsClientUuidClientSecretGetRequest) (*CredentialRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CredentialRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CredentialRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidClientSecretGet") @@ -129,9 +129,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretGetExec } type ApiAdminRealmsRealmClientsClientUuidClientSecretPostRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string } @@ -142,29 +142,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidClientSecretPostRequest) Execute() ( /* AdminRealmsRealmClientsClientUuidClientSecretPost Generate a new secret for the client - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidClientSecretPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidClientSecretPostRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidClientSecretPostRequest { return ApiAdminRealmsRealmClientsClientUuidClientSecretPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return CredentialRepresentation +// @return CredentialRepresentation func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretPostExecute(r ApiAdminRealmsRealmClientsClientUuidClientSecretPostRequest) (*CredentialRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CredentialRepresentation + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CredentialRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidClientSecretPost") @@ -235,9 +234,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretPostExe } type ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string } @@ -248,16 +247,16 @@ func (r ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteRequest) Ex /* AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete Invalidate the rotated secret for the client - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteRequest { return ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } @@ -265,9 +264,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretRotated // Execute executes the request func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidClientSecretRotatedDelete") @@ -329,9 +328,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretRotated } type ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string } @@ -342,29 +341,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedGetRequest) Execu /* AdminRealmsRealmClientsClientUuidClientSecretRotatedGet Get the rotated client secret - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretRotatedGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedGetRequest { return ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return CredentialRepresentation +// @return CredentialRepresentation func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretRotatedGetExecute(r ApiAdminRealmsRealmClientsClientUuidClientSecretRotatedGetRequest) (*CredentialRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CredentialRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CredentialRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidClientSecretRotatedGet") @@ -435,10 +433,10 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidClientSecretRotated } type ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDeleteRequest struct { - ctx context.Context - ApiService *ClientsAPIService - realm string - clientUuid string + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string clientScopeId string } @@ -449,18 +447,18 @@ func (r ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDele /* AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete Method for AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDeleteRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete(ctx context.Context, realm string, clientUuid string, clientScopeId string) ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDeleteRequest { return ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDeleteRequest{ - ApiService: a, - ctx: ctx, - realm: realm, - clientUuid: clientUuid, + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, clientScopeId: clientScopeId, } } @@ -468,9 +466,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDefaultClientScopes // Execute executes the request func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdDelete") @@ -533,10 +531,10 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDefaultClientScopes } type ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutRequest struct { - ctx context.Context - ApiService *ClientsAPIService - realm string - clientUuid string + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string clientScopeId string } @@ -547,18 +545,18 @@ func (r ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutR /* AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut Method for AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut(ctx context.Context, realm string, clientUuid string, clientScopeId string) ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutRequest { return ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutRequest{ - ApiService: a, - ctx: ctx, - realm: realm, - clientUuid: clientUuid, + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, clientScopeId: clientScopeId, } } @@ -566,9 +564,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDefaultClientScopes // Execute executes the request func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutExecute(r ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidDefaultClientScopesClientScopeIdPut") @@ -631,9 +629,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDefaultClientScopes } type ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string } @@ -644,29 +642,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesGetRequest) Execu /* AdminRealmsRealmClientsClientUuidDefaultClientScopesGet Get default client scopes. Only name and ids are returned. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDefaultClientScopesGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesGetRequest { return ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return []ClientScopeRepresentation +// @return []ClientScopeRepresentation func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDefaultClientScopesGetExecute(r ApiAdminRealmsRealmClientsClientUuidDefaultClientScopesGetRequest) ([]ClientScopeRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ClientScopeRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClientScopeRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidDefaultClientScopesGet") @@ -737,9 +734,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDefaultClientScopes } type ApiAdminRealmsRealmClientsClientUuidDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string } @@ -750,16 +747,16 @@ func (r ApiAdminRealmsRealmClientsClientUuidDeleteRequest) Execute() (*http.Resp /* AdminRealmsRealmClientsClientUuidDelete Delete the client - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidDeleteRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDelete(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidDeleteRequest { return ApiAdminRealmsRealmClientsClientUuidDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } @@ -767,9 +764,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDelete(ctx context. // Execute executes the request func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidDelete") @@ -831,12 +828,12 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidDeleteExecute(r Api } type ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string - scope *string - userId *string + scope *string + userId *string } func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest { @@ -856,29 +853,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessT /* AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet Create JSON with payload of example access token - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest { return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return AccessToken +// @return AccessToken func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetExecute(r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGetRequest) (*AccessToken, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AccessToken + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AccessToken ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleAccessTokenGet") @@ -955,12 +951,12 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesGener } type ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string - scope *string - userId *string + scope *string + userId *string } func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest { @@ -980,29 +976,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdToken /* AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet Create JSON with payload of example id token - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest { return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return IDToken +// @return IDToken func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetExecute(r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGetRequest) (*IDToken, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IDToken + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IDToken ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleIdTokenGet") @@ -1079,12 +1074,12 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesGener } type ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string - scope *string - userId *string + scope *string + userId *string } func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest { @@ -1104,29 +1099,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinf /* AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet Create JSON with payload of example user info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest { return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return map[string]interface{} +// @return map[string]interface{} func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetExecute(r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGetRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidEvaluateScopesGenerateExampleUserinfoGet") @@ -1203,11 +1197,11 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesGener } type ApiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string - scope *string + scope *string } func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest { @@ -1224,29 +1218,28 @@ AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet Return list of This means protocol mappers assigned to this client directly and protocol mappers assigned to all client scopes of this client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest { return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return []ProtocolMapperEvaluationRepresentation +// @return []ProtocolMapperEvaluationRepresentation func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetExecute(r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGetRequest) ([]ProtocolMapperEvaluationRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ProtocolMapperEvaluationRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProtocolMapperEvaluationRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidEvaluateScopesProtocolMappersGet") @@ -1320,12 +1313,12 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesProto } type ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest struct { - ctx context.Context - ApiService *ClientsAPIService - realm string - clientUuid string + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string roleContainerId string - scope *string + scope *string } func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest { @@ -1342,31 +1335,30 @@ AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrant This contains scope mappings, which this client has directly, as well as scope mappings, which are granted to all client scopes, which are linked with this client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param roleContainerId either realm name OR client UUID - @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleContainerId either realm name OR client UUID + @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet(ctx context.Context, realm string, clientUuid string, roleContainerId string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest { return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, - clientUuid: clientUuid, + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, roleContainerId: roleContainerId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetExecute(r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdGrantedGet") @@ -1441,12 +1433,12 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesScope } type ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest struct { - ctx context.Context - ApiService *ClientsAPIService - realm string - clientUuid string + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string roleContainerId string - scope *string + scope *string } func (r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest) Scope(scope string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest { @@ -1463,31 +1455,30 @@ AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGr Defacto all the other roles of particular role container, which are not in {@link #getGrantedScopeMappings()} - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param roleContainerId either realm name OR client UUID - @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleContainerId either realm name OR client UUID + @return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet(ctx context.Context, realm string, clientUuid string, roleContainerId string) ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest { return ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, - clientUuid: clientUuid, + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, roleContainerId: roleContainerId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetExecute(r ApiAdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet") @@ -1562,9 +1553,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidEvaluateScopesScope } type ApiAdminRealmsRealmClientsClientUuidGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string } @@ -1575,29 +1566,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidGetRequest) Execute() (*ClientRepres /* AdminRealmsRealmClientsClientUuidGet Get representation of the client - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidGetRequest { return ApiAdminRealmsRealmClientsClientUuidGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return ClientRepresentation +// @return ClientRepresentation func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidGetExecute(r ApiAdminRealmsRealmClientsClientUuidGetRequest) (*ClientRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ClientRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidGet") @@ -1668,9 +1658,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidGetExecute(r ApiAdm } type ApiAdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string providerId string } @@ -1682,17 +1672,17 @@ func (r ApiAdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetRe /* AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet Method for AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param providerId - @return ApiAdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param providerId + @return ApiAdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet(ctx context.Context, realm string, clientUuid string, providerId string) ApiAdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetRequest { return ApiAdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, providerId: providerId, } @@ -1701,9 +1691,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidInstallationProvide // Execute executes the request func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetExecute(r ApiAdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGetRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidInstallationProvidersProviderIdGet") @@ -1766,9 +1756,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidInstallationProvide } type ApiAdminRealmsRealmClientsClientUuidManagementPermissionsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string } @@ -1779,29 +1769,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidManagementPermissionsGetRequest) Exe /* AdminRealmsRealmClientsClientUuidManagementPermissionsGet Return object stating whether client Authorization permissions have been initialized or not and a reference - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidManagementPermissionsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidManagementPermissionsGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidManagementPermissionsGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidManagementPermissionsGetRequest { return ApiAdminRealmsRealmClientsClientUuidManagementPermissionsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return ManagementPermissionReference +// @return ManagementPermissionReference func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidManagementPermissionsGetExecute(r ApiAdminRealmsRealmClientsClientUuidManagementPermissionsGetRequest) (*ManagementPermissionReference, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ManagementPermissionReference + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidManagementPermissionsGet") @@ -1872,10 +1861,10 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidManagementPermissio } type ApiAdminRealmsRealmClientsClientUuidManagementPermissionsPutRequest struct { - ctx context.Context - ApiService *ClientsAPIService - realm string - clientUuid string + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string managementPermissionReference *ManagementPermissionReference } @@ -1891,29 +1880,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidManagementPermissionsPutRequest) Exe /* AdminRealmsRealmClientsClientUuidManagementPermissionsPut Return object stating whether client Authorization permissions have been initialized or not and a reference - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidManagementPermissionsPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidManagementPermissionsPutRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidManagementPermissionsPut(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidManagementPermissionsPutRequest { return ApiAdminRealmsRealmClientsClientUuidManagementPermissionsPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return ManagementPermissionReference +// @return ManagementPermissionReference func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidManagementPermissionsPutExecute(r ApiAdminRealmsRealmClientsClientUuidManagementPermissionsPutRequest) (*ManagementPermissionReference, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ManagementPermissionReference + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidManagementPermissionsPut") @@ -1986,11 +1974,11 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidManagementPermissio } type ApiAdminRealmsRealmClientsClientUuidNodesNodeDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string - node string + node string } func (r ApiAdminRealmsRealmClientsClientUuidNodesNodeDeleteRequest) Execute() (*http.Response, error) { @@ -2000,28 +1988,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidNodesNodeDeleteRequest) Execute() (* /* AdminRealmsRealmClientsClientUuidNodesNodeDelete Unregister a cluster node from the client - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param node - @return ApiAdminRealmsRealmClientsClientUuidNodesNodeDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param node + @return ApiAdminRealmsRealmClientsClientUuidNodesNodeDeleteRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidNodesNodeDelete(ctx context.Context, realm string, clientUuid string, node string) ApiAdminRealmsRealmClientsClientUuidNodesNodeDeleteRequest { return ApiAdminRealmsRealmClientsClientUuidNodesNodeDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - node: node, + node: node, } } // Execute executes the request func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidNodesNodeDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidNodesNodeDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidNodesNodeDelete") @@ -2084,10 +2072,10 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidNodesNodeDeleteExec } type ApiAdminRealmsRealmClientsClientUuidNodesPostRequest struct { - ctx context.Context - ApiService *ClientsAPIService - realm string - clientUuid string + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string requestBody *map[string]string } @@ -2103,16 +2091,16 @@ func (r ApiAdminRealmsRealmClientsClientUuidNodesPostRequest) Execute() (*http.R /* AdminRealmsRealmClientsClientUuidNodesPost Register a cluster node with the client Manually register cluster node to this client - usually it’s not needed to call this directly as adapter should handle by sending registration request to Keycloak - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidNodesPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidNodesPostRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidNodesPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidNodesPostRequest { return ApiAdminRealmsRealmClientsClientUuidNodesPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } @@ -2120,9 +2108,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidNodesPost(ctx conte // Execute executes the request func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidNodesPostExecute(r ApiAdminRealmsRealmClientsClientUuidNodesPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidNodesPost") @@ -2186,9 +2174,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidNodesPostExecute(r } type ApiAdminRealmsRealmClientsClientUuidOfflineSessionCountGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string } @@ -2199,29 +2187,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidOfflineSessionCountGetRequest) Execu /* AdminRealmsRealmClientsClientUuidOfflineSessionCountGet Get application offline session count Returns a number of offline user sessions associated with this client { \"count\": number } - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidOfflineSessionCountGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidOfflineSessionCountGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOfflineSessionCountGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidOfflineSessionCountGetRequest { return ApiAdminRealmsRealmClientsClientUuidOfflineSessionCountGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return map[string]int64 +// @return map[string]int64 func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOfflineSessionCountGetExecute(r ApiAdminRealmsRealmClientsClientUuidOfflineSessionCountGetRequest) (map[string]int64, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]int64 + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]int64 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidOfflineSessionCountGet") @@ -2292,12 +2279,12 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOfflineSessionCount } type ApiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string - first *int32 - max *int32 + first *int32 + max *int32 } // Paging offset @@ -2319,29 +2306,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest) Execute() /* AdminRealmsRealmClientsClientUuidOfflineSessionsGet Get offline sessions for client Returns a list of offline user sessions associated with this client - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOfflineSessionsGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest { return ApiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return []UserSessionRepresentation +// @return []UserSessionRepresentation func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOfflineSessionsGetExecute(r ApiAdminRealmsRealmClientsClientUuidOfflineSessionsGetRequest) ([]UserSessionRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []UserSessionRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []UserSessionRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidOfflineSessionsGet") @@ -2418,10 +2404,10 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOfflineSessionsGetE } type ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDeleteRequest struct { - ctx context.Context - ApiService *ClientsAPIService - realm string - clientUuid string + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string clientScopeId string } @@ -2432,18 +2418,18 @@ func (r ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDel /* AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete Method for AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDeleteRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete(ctx context.Context, realm string, clientUuid string, clientScopeId string) ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDeleteRequest { return ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDeleteRequest{ - ApiService: a, - ctx: ctx, - realm: realm, - clientUuid: clientUuid, + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, clientScopeId: clientScopeId, } } @@ -2451,9 +2437,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOptionalClientScope // Execute executes the request func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdDelete") @@ -2516,10 +2502,10 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOptionalClientScope } type ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPutRequest struct { - ctx context.Context - ApiService *ClientsAPIService - realm string - clientUuid string + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string clientScopeId string } @@ -2530,18 +2516,18 @@ func (r ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut /* AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut Method for AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPutRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut(ctx context.Context, realm string, clientUuid string, clientScopeId string) ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPutRequest { return ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPutRequest{ - ApiService: a, - ctx: ctx, - realm: realm, - clientUuid: clientUuid, + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, clientScopeId: clientScopeId, } } @@ -2549,9 +2535,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOptionalClientScope // Execute executes the request func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPutExecute(r ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidOptionalClientScopesClientScopeIdPut") @@ -2614,9 +2600,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOptionalClientScope } type ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string } @@ -2627,29 +2613,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesGetRequest) Exec /* AdminRealmsRealmClientsClientUuidOptionalClientScopesGet Get optional client scopes. Only name and ids are returned. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOptionalClientScopesGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesGetRequest { return ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return []ClientScopeRepresentation +// @return []ClientScopeRepresentation func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOptionalClientScopesGetExecute(r ApiAdminRealmsRealmClientsClientUuidOptionalClientScopesGetRequest) ([]ClientScopeRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ClientScopeRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClientScopeRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidOptionalClientScopesGet") @@ -2720,9 +2705,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidOptionalClientScope } type ApiAdminRealmsRealmClientsClientUuidPushRevocationPostRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string } @@ -2733,29 +2718,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidPushRevocationPostRequest) Execute() /* AdminRealmsRealmClientsClientUuidPushRevocationPost Push the client's revocation policy to its admin URL If the client has an admin URL, push revocation policy to it. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidPushRevocationPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidPushRevocationPostRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidPushRevocationPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidPushRevocationPostRequest { return ApiAdminRealmsRealmClientsClientUuidPushRevocationPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return GlobalRequestResult +// @return GlobalRequestResult func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidPushRevocationPostExecute(r ApiAdminRealmsRealmClientsClientUuidPushRevocationPostRequest) (*GlobalRequestResult, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GlobalRequestResult + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GlobalRequestResult ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidPushRevocationPost") @@ -2826,10 +2810,10 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidPushRevocationPostE } type ApiAdminRealmsRealmClientsClientUuidPutRequest struct { - ctx context.Context - ApiService *ClientsAPIService - realm string - clientUuid string + ctx context.Context + ApiService *ClientsAPIService + realm string + clientUuid string clientRepresentation *ClientRepresentation } @@ -2845,16 +2829,16 @@ func (r ApiAdminRealmsRealmClientsClientUuidPutRequest) Execute() (*http.Respons /* AdminRealmsRealmClientsClientUuidPut Update the client - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidPutRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidPut(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidPutRequest { return ApiAdminRealmsRealmClientsClientUuidPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } @@ -2862,9 +2846,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidPut(ctx context.Con // Execute executes the request func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidPutExecute(r ApiAdminRealmsRealmClientsClientUuidPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidPut") @@ -2928,9 +2912,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidPutExecute(r ApiAdm } type ApiAdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string } @@ -2941,29 +2925,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostRequest) /* AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost Generate a new registration access token for the client - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostRequest { return ApiAdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return ClientRepresentation +// @return ClientRepresentation func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostExecute(r ApiAdminRealmsRealmClientsClientUuidRegistrationAccessTokenPostRequest) (*ClientRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ClientRepresentation + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidRegistrationAccessTokenPost") @@ -3034,9 +3017,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidRegistrationAccessT } type ApiAdminRealmsRealmClientsClientUuidServiceAccountUserGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string } @@ -3047,29 +3030,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidServiceAccountUserGetRequest) Execut /* AdminRealmsRealmClientsClientUuidServiceAccountUserGet Get a user dedicated to the service account - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidServiceAccountUserGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidServiceAccountUserGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidServiceAccountUserGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidServiceAccountUserGetRequest { return ApiAdminRealmsRealmClientsClientUuidServiceAccountUserGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return UserRepresentation +// @return UserRepresentation func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidServiceAccountUserGetExecute(r ApiAdminRealmsRealmClientsClientUuidServiceAccountUserGetRequest) (*UserRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *UserRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UserRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidServiceAccountUserGet") @@ -3140,9 +3122,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidServiceAccountUserG } type ApiAdminRealmsRealmClientsClientUuidSessionCountGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string } @@ -3153,29 +3135,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidSessionCountGetRequest) Execute() (m /* AdminRealmsRealmClientsClientUuidSessionCountGet Get application session count Returns a number of user sessions associated with this client { \"count\": number } - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidSessionCountGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidSessionCountGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidSessionCountGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidSessionCountGetRequest { return ApiAdminRealmsRealmClientsClientUuidSessionCountGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return map[string]int64 +// @return map[string]int64 func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidSessionCountGetExecute(r ApiAdminRealmsRealmClientsClientUuidSessionCountGetRequest) (map[string]int64, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]int64 + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]int64 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidSessionCountGet") @@ -3246,9 +3227,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidSessionCountGetExec } type ApiAdminRealmsRealmClientsClientUuidTestNodesAvailableGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string } @@ -3259,29 +3240,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidTestNodesAvailableGetRequest) Execut /* AdminRealmsRealmClientsClientUuidTestNodesAvailableGet Test if registered cluster nodes are available Tests availability by sending 'ping' request to all cluster nodes. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidTestNodesAvailableGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidTestNodesAvailableGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidTestNodesAvailableGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidTestNodesAvailableGetRequest { return ApiAdminRealmsRealmClientsClientUuidTestNodesAvailableGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return GlobalRequestResult +// @return GlobalRequestResult func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidTestNodesAvailableGetExecute(r ApiAdminRealmsRealmClientsClientUuidTestNodesAvailableGetRequest) (*GlobalRequestResult, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GlobalRequestResult + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GlobalRequestResult ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidTestNodesAvailableGet") @@ -3352,12 +3332,12 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidTestNodesAvailableG } type ApiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ClientsAPIService - realm string + realm string clientUuid string - first *int32 - max *int32 + first *int32 + max *int32 } // Paging offset @@ -3377,31 +3357,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest) Execute() ([ } /* -AdminRealmsRealmClientsClientUuidUserSessionsGet Get user sessions for client Returns a list of user sessions associated with this client +AdminRealmsRealmClientsClientUuidUserSessionsGet Get user sessions for client Returns a list of user sessions associated with this client - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidUserSessionsGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest { return ApiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return []UserSessionRepresentation +// @return []UserSessionRepresentation func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidUserSessionsGetExecute(r ApiAdminRealmsRealmClientsClientUuidUserSessionsGetRequest) ([]UserSessionRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []UserSessionRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []UserSessionRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsClientUuidUserSessionsGet") @@ -3478,14 +3457,14 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsClientUuidUserSessionsGetExec } type ApiAdminRealmsRealmClientsGetRequest struct { - ctx context.Context - ApiService *ClientsAPIService - realm string - clientId *string - first *int32 - max *int32 - q *string - search *bool + ctx context.Context + ApiService *ClientsAPIService + realm string + clientId *string + first *int32 + max *int32 + q *string + search *bool viewableOnly *bool } @@ -3533,27 +3512,26 @@ AdminRealmsRealmClientsGet Get clients belonging to the realm. If a client can’t be retrieved from the storage due to a problem with the underlying storage, it is silently removed from the returned list. This ensures that concurrent modifications to the list don’t prevent callers from retrieving this list. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmClientsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientsGetRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientsGetRequest { return ApiAdminRealmsRealmClientsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []ClientRepresentation +// @return []ClientRepresentation func (a *ClientsAPIService) AdminRealmsRealmClientsGetExecute(r ApiAdminRealmsRealmClientsGetRequest) ([]ClientRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ClientRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClientRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsGet") @@ -3647,9 +3625,9 @@ func (a *ClientsAPIService) AdminRealmsRealmClientsGetExecute(r ApiAdminRealmsRe } type ApiAdminRealmsRealmClientsPostRequest struct { - ctx context.Context - ApiService *ClientsAPIService - realm string + ctx context.Context + ApiService *ClientsAPIService + realm string clientRepresentation *ClientRepresentation } @@ -3665,24 +3643,24 @@ func (r ApiAdminRealmsRealmClientsPostRequest) Execute() (*http.Response, error) /* AdminRealmsRealmClientsPost Create a new client Client’s client_id must be unique! - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmClientsPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientsPostRequest */ func (a *ClientsAPIService) AdminRealmsRealmClientsPost(ctx context.Context, realm string) ApiAdminRealmsRealmClientsPostRequest { return ApiAdminRealmsRealmClientsPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *ClientsAPIService) AdminRealmsRealmClientsPostExecute(r ApiAdminRealmsRealmClientsPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ClientsAPIService.AdminRealmsRealmClientsPost") diff --git a/api_component.go b/api_component.go index 466610e..9d25d0a 100644 --- a/api_component.go +++ b/api_component.go @@ -19,16 +19,17 @@ import ( "strings" ) + // ComponentAPIService ComponentAPI service type ComponentAPIService service type ApiAdminRealmsRealmComponentsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ComponentAPIService - realm string - name *string - parent *string - type_ *string + realm string + name *string + parent *string + type_ *string } func (r ApiAdminRealmsRealmComponentsGetRequest) Name(name string) ApiAdminRealmsRealmComponentsGetRequest { @@ -53,27 +54,26 @@ func (r ApiAdminRealmsRealmComponentsGetRequest) Execute() ([]ComponentRepresent /* AdminRealmsRealmComponentsGet Method for AdminRealmsRealmComponentsGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmComponentsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmComponentsGetRequest */ func (a *ComponentAPIService) AdminRealmsRealmComponentsGet(ctx context.Context, realm string) ApiAdminRealmsRealmComponentsGetRequest { return ApiAdminRealmsRealmComponentsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []ComponentRepresentation +// @return []ComponentRepresentation func (a *ComponentAPIService) AdminRealmsRealmComponentsGetExecute(r ApiAdminRealmsRealmComponentsGetRequest) ([]ComponentRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ComponentRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ComponentRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentAPIService.AdminRealmsRealmComponentsGet") @@ -152,10 +152,10 @@ func (a *ComponentAPIService) AdminRealmsRealmComponentsGetExecute(r ApiAdminRea } type ApiAdminRealmsRealmComponentsIdDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *ComponentAPIService - realm string - id string + realm string + id string } func (r ApiAdminRealmsRealmComponentsIdDeleteRequest) Execute() (*http.Response, error) { @@ -165,26 +165,26 @@ func (r ApiAdminRealmsRealmComponentsIdDeleteRequest) Execute() (*http.Response, /* AdminRealmsRealmComponentsIdDelete Method for AdminRealmsRealmComponentsIdDelete - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @return ApiAdminRealmsRealmComponentsIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmComponentsIdDeleteRequest */ func (a *ComponentAPIService) AdminRealmsRealmComponentsIdDelete(ctx context.Context, realm string, id string) ApiAdminRealmsRealmComponentsIdDeleteRequest { return ApiAdminRealmsRealmComponentsIdDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + id: id, } } // Execute executes the request func (a *ComponentAPIService) AdminRealmsRealmComponentsIdDeleteExecute(r ApiAdminRealmsRealmComponentsIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentAPIService.AdminRealmsRealmComponentsIdDelete") @@ -246,10 +246,10 @@ func (a *ComponentAPIService) AdminRealmsRealmComponentsIdDeleteExecute(r ApiAdm } type ApiAdminRealmsRealmComponentsIdGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ComponentAPIService - realm string - id string + realm string + id string } func (r ApiAdminRealmsRealmComponentsIdGetRequest) Execute() (*ComponentRepresentation, *http.Response, error) { @@ -259,29 +259,28 @@ func (r ApiAdminRealmsRealmComponentsIdGetRequest) Execute() (*ComponentRepresen /* AdminRealmsRealmComponentsIdGet Method for AdminRealmsRealmComponentsIdGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @return ApiAdminRealmsRealmComponentsIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmComponentsIdGetRequest */ func (a *ComponentAPIService) AdminRealmsRealmComponentsIdGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmComponentsIdGetRequest { return ApiAdminRealmsRealmComponentsIdGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + id: id, } } // Execute executes the request -// -// @return ComponentRepresentation +// @return ComponentRepresentation func (a *ComponentAPIService) AdminRealmsRealmComponentsIdGetExecute(r ApiAdminRealmsRealmComponentsIdGetRequest) (*ComponentRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComponentRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComponentRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentAPIService.AdminRealmsRealmComponentsIdGet") @@ -352,10 +351,10 @@ func (a *ComponentAPIService) AdminRealmsRealmComponentsIdGetExecute(r ApiAdminR } type ApiAdminRealmsRealmComponentsIdPutRequest struct { - ctx context.Context - ApiService *ComponentAPIService - realm string - id string + ctx context.Context + ApiService *ComponentAPIService + realm string + id string componentRepresentation *ComponentRepresentation } @@ -371,26 +370,26 @@ func (r ApiAdminRealmsRealmComponentsIdPutRequest) Execute() (*http.Response, er /* AdminRealmsRealmComponentsIdPut Method for AdminRealmsRealmComponentsIdPut - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @return ApiAdminRealmsRealmComponentsIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmComponentsIdPutRequest */ func (a *ComponentAPIService) AdminRealmsRealmComponentsIdPut(ctx context.Context, realm string, id string) ApiAdminRealmsRealmComponentsIdPutRequest { return ApiAdminRealmsRealmComponentsIdPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + id: id, } } // Execute executes the request func (a *ComponentAPIService) AdminRealmsRealmComponentsIdPutExecute(r ApiAdminRealmsRealmComponentsIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentAPIService.AdminRealmsRealmComponentsIdPut") @@ -454,11 +453,11 @@ func (a *ComponentAPIService) AdminRealmsRealmComponentsIdPutExecute(r ApiAdminR } type ApiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ComponentAPIService - realm string - id string - type_ *string + realm string + id string + type_ *string } func (r ApiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest) Type_(type_ string) ApiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest { @@ -473,29 +472,28 @@ func (r ApiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest) Execute() ([ /* AdminRealmsRealmComponentsIdSubComponentTypesGet List of subcomponent types that are available to configure for a particular parent component. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @return ApiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param id + @return ApiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest */ func (a *ComponentAPIService) AdminRealmsRealmComponentsIdSubComponentTypesGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest { return ApiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + id: id, } } // Execute executes the request -// -// @return []ComponentTypeRepresentation +// @return []ComponentTypeRepresentation func (a *ComponentAPIService) AdminRealmsRealmComponentsIdSubComponentTypesGetExecute(r ApiAdminRealmsRealmComponentsIdSubComponentTypesGetRequest) ([]ComponentTypeRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ComponentTypeRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ComponentTypeRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentAPIService.AdminRealmsRealmComponentsIdSubComponentTypesGet") @@ -569,9 +567,9 @@ func (a *ComponentAPIService) AdminRealmsRealmComponentsIdSubComponentTypesGetEx } type ApiAdminRealmsRealmComponentsPostRequest struct { - ctx context.Context - ApiService *ComponentAPIService - realm string + ctx context.Context + ApiService *ComponentAPIService + realm string componentRepresentation *ComponentRepresentation } @@ -587,24 +585,24 @@ func (r ApiAdminRealmsRealmComponentsPostRequest) Execute() (*http.Response, err /* AdminRealmsRealmComponentsPost Method for AdminRealmsRealmComponentsPost - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmComponentsPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmComponentsPostRequest */ func (a *ComponentAPIService) AdminRealmsRealmComponentsPost(ctx context.Context, realm string) ApiAdminRealmsRealmComponentsPostRequest { return ApiAdminRealmsRealmComponentsPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *ComponentAPIService) AdminRealmsRealmComponentsPostExecute(r ApiAdminRealmsRealmComponentsPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentAPIService.AdminRealmsRealmComponentsPost") diff --git a/api_default.go b/api_default.go index ecc1ec7..1051330 100644 --- a/api_default.go +++ b/api_default.go @@ -19,13 +19,14 @@ import ( "strings" ) + // DefaultAPIService DefaultAPI service type DefaultAPIService service type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerGetRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - realm string + realm string clientUuid string } @@ -36,29 +37,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerGetRequest) Execu /* AdminRealmsRealmClientsClientUuidAuthzResourceServerGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return ResourceServerRepresentation +// @return ResourceServerRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerGetRequest) (*ResourceServerRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ResourceServerRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ResourceServerRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerGet") @@ -129,10 +129,10 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostRequest struct { - ctx context.Context - ApiService *DefaultAPIService - realm string - clientUuid string + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string resourceServerRepresentation *ResourceServerRepresentation } @@ -148,16 +148,16 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostRequest /* AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPost Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPost - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } @@ -165,9 +165,9 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer // Execute executes the request func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerImportPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerImportPost") @@ -231,10 +231,10 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostRequest struct { - ctx context.Context - ApiService *DefaultAPIService - realm string - clientUuid string + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string policyEvaluationRequest *PolicyEvaluationRequest } @@ -250,29 +250,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluat /* AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return PolicyEvaluationResponse +// @return PolicyEvaluationResponse func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePostRequest) (*PolicyEvaluationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PolicyEvaluationResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PolicyEvaluationResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionEvaluatePost") @@ -345,20 +344,20 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - realm string + realm string clientUuid string - fields *string - first *int32 - max *int32 - name *string - owner *string + fields *string + first *int32 + max *int32 + name *string + owner *string permission *bool - policyId *string - resource *string - scope *string - type_ *string + policyId *string + resource *string + scope *string + type_ *string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest) Fields(fields string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest { @@ -418,29 +417,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequ /* AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return []AbstractPolicyRepresentation +// @return []AbstractPolicyRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGetRequest) ([]AbstractPolicyRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []AbstractPolicyRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AbstractPolicyRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionGet") @@ -541,11 +539,11 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - realm string + realm string clientUuid string - body *string + body *string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostRequest) Body(body string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostRequest { @@ -560,16 +558,16 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostReq /* AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPost Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPost - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } @@ -577,9 +575,9 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer // Execute executes the request func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionPost") @@ -643,9 +641,9 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGetRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - realm string + realm string clientUuid string } @@ -656,29 +654,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvide /* AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return []PolicyProviderRepresentation +// @return []PolicyProviderRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGetRequest) ([]PolicyProviderRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PolicyProviderRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PolicyProviderRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionProvidersGet") @@ -749,12 +746,12 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - realm string + realm string clientUuid string - fields *string - name *string + fields *string + name *string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest) Fields(fields string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest { @@ -774,29 +771,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchG /* AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return AbstractPolicyRepresentation +// @return AbstractPolicyRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGetRequest) (*AbstractPolicyRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AbstractPolicyRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AbstractPolicyRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPermissionSearchGet") @@ -873,10 +869,10 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostRequest struct { - ctx context.Context - ApiService *DefaultAPIService - realm string - clientUuid string + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string policyEvaluationRequest *PolicyEvaluationRequest } @@ -892,29 +888,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePos /* AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return PolicyEvaluationResponse +// @return PolicyEvaluationResponse func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePostRequest) (*PolicyEvaluationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PolicyEvaluationResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PolicyEvaluationResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyEvaluatePost") @@ -987,20 +982,20 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - realm string + realm string clientUuid string - fields *string - first *int32 - max *int32 - name *string - owner *string + fields *string + first *int32 + max *int32 + name *string + owner *string permission *bool - policyId *string - resource *string - scope *string - type_ *string + policyId *string + resource *string + scope *string + type_ *string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest) Fields(fields string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest { @@ -1060,29 +1055,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest) /* AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return []AbstractPolicyRepresentation +// @return []AbstractPolicyRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGetRequest) ([]AbstractPolicyRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []AbstractPolicyRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AbstractPolicyRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyGet") @@ -1183,11 +1177,11 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - realm string + realm string clientUuid string - body *string + body *string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest) Body(body string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest { @@ -1202,16 +1196,16 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest /* AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPost Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPost - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } @@ -1219,9 +1213,9 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer // Execute executes the request func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyPost") @@ -1285,9 +1279,9 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGetRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - realm string + realm string clientUuid string } @@ -1298,29 +1292,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGe /* AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return []PolicyProviderRepresentation +// @return []PolicyProviderRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGetRequest) ([]PolicyProviderRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PolicyProviderRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PolicyProviderRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicyProvidersGet") @@ -1391,12 +1384,12 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - realm string + realm string clientUuid string - fields *string - name *string + fields *string + name *string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest) Fields(fields string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest { @@ -1416,29 +1409,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRe /* AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return AbstractPolicyRepresentation +// @return AbstractPolicyRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGetRequest) (*AbstractPolicyRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AbstractPolicyRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AbstractPolicyRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPolicySearchGet") @@ -1515,10 +1507,10 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPutRequest struct { - ctx context.Context - ApiService *DefaultAPIService - realm string - clientUuid string + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string resourceServerRepresentation *ResourceServerRepresentation } @@ -1534,16 +1526,16 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPutRequest) Execu /* AdminRealmsRealmClientsClientUuidAuthzResourceServerPut Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerPut - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPutRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPut(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPutRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } @@ -1551,9 +1543,9 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer // Execute executes the request func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerPutExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerPut") @@ -1617,21 +1609,21 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest struct { - ctx context.Context - ApiService *DefaultAPIService - realm string - clientUuid string - id *string - deep *bool - exactName *bool - first *int32 + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + id *string + deep *bool + exactName *bool + first *int32 matchingUri *bool - max *int32 - name *string - owner *string - scope *string - type_ *string - uri *string + max *int32 + name *string + owner *string + scope *string + type_ *string + uri *string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest) Id(id string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest { @@ -1696,29 +1688,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetReques /* AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return []ResourceRepresentation +// @return []ResourceRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGetRequest) ([]ResourceRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ResourceRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ResourceRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceGet") @@ -1822,21 +1813,21 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest struct { - ctx context.Context - ApiService *DefaultAPIService - realm string - clientUuid string - id *string - deep *bool - exactName *bool - first *int32 - matchingUri *bool - max *int32 - name *string - owner *string - scope *string - type_ *string - uri *string + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + id *string + deep *bool + exactName *bool + first *int32 + matchingUri *bool + max *int32 + name *string + owner *string + scope *string + type_ *string + uri *string resourceRepresentation *ResourceRepresentation } @@ -1907,29 +1898,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostReque /* AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return ResourceRepresentation +// @return ResourceRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePostRequest) (*ResourceRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ResourceRepresentation + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ResourceRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourcePost") @@ -2035,22 +2025,22 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest struct { - ctx context.Context - ApiService *DefaultAPIService - realm string - clientUuid string - resourceId string - id *string - deep *bool - exactName *bool - first *int32 + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + resourceId string + id *string + deep *bool + exactName *bool + first *int32 matchingUri *bool - max *int32 - name *string - owner *string - scope *string - type_ *string - uri *string + max *int32 + name *string + owner *string + scope *string + type_ *string + uri *string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest) Id(id string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest { @@ -2115,17 +2105,17 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceI /* AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param resourceId - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param resourceId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGet(ctx context.Context, realm string, clientUuid string, resourceId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, resourceId: resourceId, } @@ -2134,9 +2124,9 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer // Execute executes the request func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGetRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdAttributesGet") @@ -2232,22 +2222,22 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest struct { - ctx context.Context - ApiService *DefaultAPIService - realm string - clientUuid string - resourceId string - id *string - deep *bool - exactName *bool - first *int32 + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + resourceId string + id *string + deep *bool + exactName *bool + first *int32 matchingUri *bool - max *int32 - name *string - owner *string - scope *string - type_ *string - uri *string + max *int32 + name *string + owner *string + scope *string + type_ *string + uri *string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest) Id(id string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest { @@ -2312,17 +2302,17 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceI /* AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDelete Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDelete - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param resourceId - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param resourceId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDelete(ctx context.Context, realm string, clientUuid string, resourceId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, resourceId: resourceId, } @@ -2331,9 +2321,9 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer // Execute executes the request func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdDelete") @@ -2429,22 +2419,22 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest struct { - ctx context.Context - ApiService *DefaultAPIService - realm string - clientUuid string - resourceId string - id *string - deep *bool - exactName *bool - first *int32 + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + resourceId string + id *string + deep *bool + exactName *bool + first *int32 matchingUri *bool - max *int32 - name *string - owner *string - scope *string - type_ *string - uri *string + max *int32 + name *string + owner *string + scope *string + type_ *string + uri *string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest) Id(id string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest { @@ -2509,31 +2499,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceI /* AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param resourceId - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param resourceId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet(ctx context.Context, realm string, clientUuid string, resourceId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, resourceId: resourceId, } } // Execute executes the request -// -// @return ResourceRepresentation +// @return ResourceRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGetRequest) (*ResourceRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ResourceRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ResourceRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdGet") @@ -2638,22 +2627,22 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest struct { - ctx context.Context - ApiService *DefaultAPIService - realm string - clientUuid string - resourceId string - id *string - deep *bool - exactName *bool - first *int32 + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + resourceId string + id *string + deep *bool + exactName *bool + first *int32 matchingUri *bool - max *int32 - name *string - owner *string - scope *string - type_ *string - uri *string + max *int32 + name *string + owner *string + scope *string + type_ *string + uri *string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest) Id(id string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest { @@ -2718,31 +2707,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceI /* AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param resourceId - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param resourceId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet(ctx context.Context, realm string, clientUuid string, resourceId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, resourceId: resourceId, } } // Execute executes the request -// -// @return []PolicyRepresentation +// @return []PolicyRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGetRequest) ([]PolicyRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PolicyRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PolicyRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPermissionsGet") @@ -2847,22 +2835,22 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest struct { - ctx context.Context - ApiService *DefaultAPIService - realm string - clientUuid string - resourceId string - id *string - deep *bool - exactName *bool - first *int32 - matchingUri *bool - max *int32 - name *string - owner *string - scope *string - type_ *string - uri *string + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + resourceId string + id *string + deep *bool + exactName *bool + first *int32 + matchingUri *bool + max *int32 + name *string + owner *string + scope *string + type_ *string + uri *string resourceRepresentation *ResourceRepresentation } @@ -2933,17 +2921,17 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceI /* AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPut Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPut - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param resourceId - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param resourceId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPut(ctx context.Context, realm string, clientUuid string, resourceId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, resourceId: resourceId, } @@ -2952,9 +2940,9 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer // Execute executes the request func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdPut") @@ -3052,22 +3040,22 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest struct { - ctx context.Context - ApiService *DefaultAPIService - realm string - clientUuid string - resourceId string - id *string - deep *bool - exactName *bool - first *int32 + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + resourceId string + id *string + deep *bool + exactName *bool + first *int32 matchingUri *bool - max *int32 - name *string - owner *string - scope *string - type_ *string - uri *string + max *int32 + name *string + owner *string + scope *string + type_ *string + uri *string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest) Id(id string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest { @@ -3132,31 +3120,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceI /* AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param resourceId - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param resourceId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet(ctx context.Context, realm string, clientUuid string, resourceId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, resourceId: resourceId, } } // Execute executes the request -// -// @return []ScopeRepresentation +// @return []ScopeRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGetRequest) ([]ScopeRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ScopeRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ScopeRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceResourceIdScopesGet") @@ -3261,21 +3248,21 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest struct { - ctx context.Context - ApiService *DefaultAPIService - realm string - clientUuid string - id *string - deep *bool - exactName *bool - first *int32 + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + id *string + deep *bool + exactName *bool + first *int32 matchingUri *bool - max *int32 - owner *string - scope *string - type_ *string - uri *string - name *string + max *int32 + owner *string + scope *string + type_ *string + uri *string + name *string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest) Id(id string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest { @@ -3340,29 +3327,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet /* AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return ResourceRepresentation +// @return ResourceRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGetRequest) (*ResourceRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ResourceRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ResourceRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerResourceSearchGet") @@ -3466,14 +3452,14 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - realm string + realm string clientUuid string - first *int32 - max *int32 - name *string - scopeId *string + first *int32 + max *int32 + name *string + scopeId *string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest) First(first int32) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest { @@ -3503,29 +3489,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest) /* AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return []ScopeRepresentation +// @return []ScopeRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGetRequest) ([]ScopeRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ScopeRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ScopeRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeGet") @@ -3608,10 +3593,10 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostRequest struct { - ctx context.Context - ApiService *DefaultAPIService - realm string - clientUuid string + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string scopeRepresentation *ScopeRepresentation } @@ -3627,16 +3612,16 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostRequest) /* AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePost Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePost - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } @@ -3644,9 +3629,9 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer // Execute executes the request func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopePostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopePost") @@ -3710,11 +3695,11 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - realm string + realm string clientUuid string - scopeId string + scopeId string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDeleteRequest) Execute() (*http.Response, error) { @@ -3724,28 +3709,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelet /* AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelete Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelete - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param scopeId - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param scopeId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDeleteRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelete(ctx context.Context, realm string, clientUuid string, scopeId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDeleteRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - scopeId: scopeId, + scopeId: scopeId, } } // Execute executes the request func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdDelete") @@ -3808,11 +3793,11 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - realm string + realm string clientUuid string - scopeId string + scopeId string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetRequest) Execute() (*ScopeRepresentation, *http.Response, error) { @@ -3822,31 +3807,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetRe /* AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param scopeId - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param scopeId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet(ctx context.Context, realm string, clientUuid string, scopeId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - scopeId: scopeId, + scopeId: scopeId, } } // Execute executes the request -// -// @return ScopeRepresentation +// @return ScopeRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGetRequest) (*ScopeRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ScopeRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ScopeRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdGet") @@ -3918,11 +3902,11 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - realm string + realm string clientUuid string - scopeId string + scopeId string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGetRequest) Execute() ([]PolicyRepresentation, *http.Response, error) { @@ -3932,31 +3916,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermi /* AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param scopeId - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param scopeId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet(ctx context.Context, realm string, clientUuid string, scopeId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - scopeId: scopeId, + scopeId: scopeId, } } // Execute executes the request -// -// @return []PolicyRepresentation +// @return []PolicyRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGetRequest) ([]PolicyRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PolicyRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PolicyRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPermissionsGet") @@ -4028,11 +4011,11 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutRequest struct { - ctx context.Context - ApiService *DefaultAPIService - realm string - clientUuid string - scopeId string + ctx context.Context + ApiService *DefaultAPIService + realm string + clientUuid string + scopeId string scopeRepresentation *ScopeRepresentation } @@ -4048,28 +4031,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutRe /* AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPut Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPut - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param scopeId - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param scopeId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPut(ctx context.Context, realm string, clientUuid string, scopeId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - scopeId: scopeId, + scopeId: scopeId, } } // Execute executes the request func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdPut") @@ -4134,11 +4117,11 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGetRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - realm string + realm string clientUuid string - scopeId string + scopeId string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGetRequest) Execute() ([]ResourceRepresentation, *http.Response, error) { @@ -4148,31 +4131,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResou /* AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param scopeId - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param scopeId + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet(ctx context.Context, realm string, clientUuid string, scopeId string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - scopeId: scopeId, + scopeId: scopeId, } } // Execute executes the request -// -// @return []ResourceRepresentation +// @return []ResourceRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGetRequest) ([]ResourceRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ResourceRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ResourceRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeScopeIdResourcesGet") @@ -4244,11 +4226,11 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - realm string + realm string clientUuid string - name *string + name *string } func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetRequest) Name(name string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetRequest { @@ -4263,29 +4245,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetReq /* AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return []ScopeRepresentation +// @return []ScopeRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGetRequest) ([]ScopeRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ScopeRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ScopeRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerScopeSearchGet") @@ -4359,9 +4340,9 @@ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServer } type ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - realm string + realm string clientUuid string } @@ -4372,29 +4353,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGetReques /* AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet Method for AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGetRequest */ func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGetRequest { return ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return ResourceServerRepresentation +// @return ResourceServerRepresentation func (a *DefaultAPIService) AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGetExecute(r ApiAdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGetRequest) (*ResourceServerRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ResourceServerRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ResourceServerRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AdminRealmsRealmClientsClientUuidAuthzResourceServerSettingsGet") diff --git a/api_groups.go b/api_groups.go index f06eac1..7d86dce 100644 --- a/api_groups.go +++ b/api_groups.go @@ -19,15 +19,16 @@ import ( "strings" ) + // GroupsAPIService GroupsAPI service type GroupsAPIService service type ApiAdminRealmsRealmGroupsCountGetRequest struct { - ctx context.Context + ctx context.Context ApiService *GroupsAPIService - realm string - search *string - top *bool + realm string + search *string + top *bool } func (r ApiAdminRealmsRealmGroupsCountGetRequest) Search(search string) ApiAdminRealmsRealmGroupsCountGetRequest { @@ -47,27 +48,26 @@ func (r ApiAdminRealmsRealmGroupsCountGetRequest) Execute() (map[string]int64, * /* AdminRealmsRealmGroupsCountGet Returns the groups counts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmGroupsCountGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmGroupsCountGetRequest */ func (a *GroupsAPIService) AdminRealmsRealmGroupsCountGet(ctx context.Context, realm string) ApiAdminRealmsRealmGroupsCountGetRequest { return ApiAdminRealmsRealmGroupsCountGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return map[string]int64 +// @return map[string]int64 func (a *GroupsAPIService) AdminRealmsRealmGroupsCountGetExecute(r ApiAdminRealmsRealmGroupsCountGetRequest) (map[string]int64, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]int64 + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]int64 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsCountGet") @@ -146,16 +146,16 @@ func (a *GroupsAPIService) AdminRealmsRealmGroupsCountGetExecute(r ApiAdminRealm } type ApiAdminRealmsRealmGroupsGetRequest struct { - ctx context.Context - ApiService *GroupsAPIService - realm string + ctx context.Context + ApiService *GroupsAPIService + realm string briefRepresentation *bool - exact *bool - first *int32 - max *int32 - populateHierarchy *bool - q *string - search *string + exact *bool + first *int32 + max *int32 + populateHierarchy *bool + q *string + search *string } func (r ApiAdminRealmsRealmGroupsGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmGroupsGetRequest { @@ -198,29 +198,28 @@ func (r ApiAdminRealmsRealmGroupsGetRequest) Execute() ([]GroupRepresentation, * } /* -AdminRealmsRealmGroupsGet Get group hierarchy. Only name and ids are returned. +AdminRealmsRealmGroupsGet Get group hierarchy. Only `name` and `id` are returned. `subGroups` are only returned when using the `search` or `q` parameter. If none of these parameters is provided, the top-level groups are returned without `subGroups` being filled. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmGroupsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmGroupsGetRequest */ func (a *GroupsAPIService) AdminRealmsRealmGroupsGet(ctx context.Context, realm string) ApiAdminRealmsRealmGroupsGetRequest { return ApiAdminRealmsRealmGroupsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []GroupRepresentation +// @return []GroupRepresentation func (a *GroupsAPIService) AdminRealmsRealmGroupsGetExecute(r ApiAdminRealmsRealmGroupsGetRequest) ([]GroupRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []GroupRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []GroupRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGet") @@ -320,15 +319,15 @@ func (a *GroupsAPIService) AdminRealmsRealmGroupsGetExecute(r ApiAdminRealmsReal } type ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest struct { - ctx context.Context - ApiService *GroupsAPIService - realm string - groupId string + ctx context.Context + ApiService *GroupsAPIService + realm string + groupId string briefRepresentation *bool - exact *bool - first *int32 - max *int32 - search *string + exact *bool + first *int32 + max *int32 + search *string } // Boolean which defines whether brief groups representations are returned or not (default: false) @@ -368,29 +367,28 @@ func (r ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest) Execute() ([]GroupRe /* AdminRealmsRealmGroupsGroupIdChildrenGet Return a paginated list of subgroups that have a parent group corresponding to the group on the URL - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @return ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest */ func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdChildrenGet(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest { return ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, + ctx: ctx, + realm: realm, + groupId: groupId, } } // Execute executes the request -// -// @return []GroupRepresentation +// @return []GroupRepresentation func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdChildrenGetExecute(r ApiAdminRealmsRealmGroupsGroupIdChildrenGetRequest) ([]GroupRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []GroupRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []GroupRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGroupIdChildrenGet") @@ -479,10 +477,10 @@ func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdChildrenGetExecute(r Api } type ApiAdminRealmsRealmGroupsGroupIdChildrenPostRequest struct { - ctx context.Context - ApiService *GroupsAPIService - realm string - groupId string + ctx context.Context + ApiService *GroupsAPIService + realm string + groupId string groupRepresentation *GroupRepresentation } @@ -500,26 +498,26 @@ AdminRealmsRealmGroupsGroupIdChildrenPost Set or create child. This will just set the parent if it exists. Create it and set the parent if the group doesn’t exist. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @return ApiAdminRealmsRealmGroupsGroupIdChildrenPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdChildrenPostRequest */ func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdChildrenPost(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdChildrenPostRequest { return ApiAdminRealmsRealmGroupsGroupIdChildrenPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, + ctx: ctx, + realm: realm, + groupId: groupId, } } // Execute executes the request func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdChildrenPostExecute(r ApiAdminRealmsRealmGroupsGroupIdChildrenPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGroupIdChildrenPost") @@ -583,10 +581,10 @@ func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdChildrenPostExecute(r Ap } type ApiAdminRealmsRealmGroupsGroupIdDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *GroupsAPIService - realm string - groupId string + realm string + groupId string } func (r ApiAdminRealmsRealmGroupsGroupIdDeleteRequest) Execute() (*http.Response, error) { @@ -596,26 +594,26 @@ func (r ApiAdminRealmsRealmGroupsGroupIdDeleteRequest) Execute() (*http.Response /* AdminRealmsRealmGroupsGroupIdDelete Method for AdminRealmsRealmGroupsGroupIdDelete - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @return ApiAdminRealmsRealmGroupsGroupIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdDeleteRequest */ func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdDelete(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdDeleteRequest { return ApiAdminRealmsRealmGroupsGroupIdDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, + ctx: ctx, + realm: realm, + groupId: groupId, } } // Execute executes the request func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdDeleteExecute(r ApiAdminRealmsRealmGroupsGroupIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGroupIdDelete") @@ -677,10 +675,10 @@ func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdDeleteExecute(r ApiAdmin } type ApiAdminRealmsRealmGroupsGroupIdGetRequest struct { - ctx context.Context + ctx context.Context ApiService *GroupsAPIService - realm string - groupId string + realm string + groupId string } func (r ApiAdminRealmsRealmGroupsGroupIdGetRequest) Execute() (*GroupRepresentation, *http.Response, error) { @@ -690,29 +688,28 @@ func (r ApiAdminRealmsRealmGroupsGroupIdGetRequest) Execute() (*GroupRepresentat /* AdminRealmsRealmGroupsGroupIdGet Method for AdminRealmsRealmGroupsGroupIdGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @return ApiAdminRealmsRealmGroupsGroupIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdGetRequest */ func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdGet(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdGetRequest { return ApiAdminRealmsRealmGroupsGroupIdGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, + ctx: ctx, + realm: realm, + groupId: groupId, } } // Execute executes the request -// -// @return GroupRepresentation +// @return GroupRepresentation func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdGetExecute(r ApiAdminRealmsRealmGroupsGroupIdGetRequest) (*GroupRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GroupRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GroupRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGroupIdGet") @@ -783,10 +780,10 @@ func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdGetExecute(r ApiAdminRea } type ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *GroupsAPIService - realm string - groupId string + realm string + groupId string } func (r ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsGetRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { @@ -796,29 +793,28 @@ func (r ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsGetRequest) Execute /* AdminRealmsRealmGroupsGroupIdManagementPermissionsGet Return object stating whether client Authorization permissions have been initialized or not and a reference - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @return ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsGetRequest */ func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdManagementPermissionsGet(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsGetRequest { return ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, + ctx: ctx, + realm: realm, + groupId: groupId, } } // Execute executes the request -// -// @return ManagementPermissionReference +// @return ManagementPermissionReference func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdManagementPermissionsGetExecute(r ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsGetRequest) (*ManagementPermissionReference, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ManagementPermissionReference + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGroupIdManagementPermissionsGet") @@ -889,10 +885,10 @@ func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdManagementPermissionsGet } type ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsPutRequest struct { - ctx context.Context - ApiService *GroupsAPIService - realm string - groupId string + ctx context.Context + ApiService *GroupsAPIService + realm string + groupId string managementPermissionReference *ManagementPermissionReference } @@ -908,29 +904,28 @@ func (r ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsPutRequest) Execute /* AdminRealmsRealmGroupsGroupIdManagementPermissionsPut Return object stating whether client Authorization permissions have been initialized or not and a reference - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @return ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsPutRequest */ func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdManagementPermissionsPut(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsPutRequest { return ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, + ctx: ctx, + realm: realm, + groupId: groupId, } } // Execute executes the request -// -// @return ManagementPermissionReference +// @return ManagementPermissionReference func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdManagementPermissionsPutExecute(r ApiAdminRealmsRealmGroupsGroupIdManagementPermissionsPutRequest) (*ManagementPermissionReference, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ManagementPermissionReference + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGroupIdManagementPermissionsPut") @@ -1003,13 +998,13 @@ func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdManagementPermissionsPut } type ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest struct { - ctx context.Context - ApiService *GroupsAPIService - realm string - groupId string + ctx context.Context + ApiService *GroupsAPIService + realm string + groupId string briefRepresentation *bool - first *int32 - max *int32 + first *int32 + max *int32 } // Only return basic information (only guaranteed to return id, username, created, first and last name, email, enabled state, email verification state, federation link, and access. Note that it means that namely user attributes, required actions, and not before are not returned.) @@ -1037,29 +1032,28 @@ func (r ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest) Execute() ([]UserRepr /* AdminRealmsRealmGroupsGroupIdMembersGet Get users Returns a stream of users, filtered according to query parameters - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @return ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest */ func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdMembersGet(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest { return ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, + ctx: ctx, + realm: realm, + groupId: groupId, } } // Execute executes the request -// -// @return []UserRepresentation +// @return []UserRepresentation func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdMembersGetExecute(r ApiAdminRealmsRealmGroupsGroupIdMembersGetRequest) ([]UserRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []UserRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []UserRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGroupIdMembersGet") @@ -1139,10 +1133,10 @@ func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdMembersGetExecute(r ApiA } type ApiAdminRealmsRealmGroupsGroupIdPutRequest struct { - ctx context.Context - ApiService *GroupsAPIService - realm string - groupId string + ctx context.Context + ApiService *GroupsAPIService + realm string + groupId string groupRepresentation *GroupRepresentation } @@ -1158,26 +1152,26 @@ func (r ApiAdminRealmsRealmGroupsGroupIdPutRequest) Execute() (*http.Response, e /* AdminRealmsRealmGroupsGroupIdPut Update group, ignores subgroups. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @return ApiAdminRealmsRealmGroupsGroupIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdPutRequest */ func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdPut(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdPutRequest { return ApiAdminRealmsRealmGroupsGroupIdPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, + ctx: ctx, + realm: realm, + groupId: groupId, } } // Execute executes the request func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdPutExecute(r ApiAdminRealmsRealmGroupsGroupIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsGroupIdPut") @@ -1241,9 +1235,9 @@ func (a *GroupsAPIService) AdminRealmsRealmGroupsGroupIdPutExecute(r ApiAdminRea } type ApiAdminRealmsRealmGroupsPostRequest struct { - ctx context.Context - ApiService *GroupsAPIService - realm string + ctx context.Context + ApiService *GroupsAPIService + realm string groupRepresentation *GroupRepresentation } @@ -1261,24 +1255,24 @@ AdminRealmsRealmGroupsPost create or add a top level realm groupSet or create ch This will update the group and set the parent if it exists. Create it and set the parent if the group doesn’t exist. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmGroupsPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmGroupsPostRequest */ func (a *GroupsAPIService) AdminRealmsRealmGroupsPost(ctx context.Context, realm string) ApiAdminRealmsRealmGroupsPostRequest { return ApiAdminRealmsRealmGroupsPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *GroupsAPIService) AdminRealmsRealmGroupsPostExecute(r ApiAdminRealmsRealmGroupsPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.AdminRealmsRealmGroupsPost") diff --git a/api_identity_providers.go b/api_identity_providers.go index 0cbb9ac..3bf51fa 100644 --- a/api_identity_providers.go +++ b/api_identity_providers.go @@ -19,13 +19,14 @@ import ( "strings" ) + // IdentityProvidersAPIService IdentityProvidersAPI service type IdentityProvidersAPIService service type ApiAdminRealmsRealmIdentityProviderImportConfigPostRequest struct { - ctx context.Context - ApiService *IdentityProvidersAPIService - realm string + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string requestBody *map[string]interface{} } @@ -43,27 +44,26 @@ AdminRealmsRealmIdentityProviderImportConfigPost Import identity provider from J Import identity provider from uploaded JSON file - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmIdentityProviderImportConfigPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmIdentityProviderImportConfigPostRequest */ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderImportConfigPost(ctx context.Context, realm string) ApiAdminRealmsRealmIdentityProviderImportConfigPostRequest { return ApiAdminRealmsRealmIdentityProviderImportConfigPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return map[string]string +// @return map[string]string func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderImportConfigPostExecute(r ApiAdminRealmsRealmIdentityProviderImportConfigPostRequest) (map[string]string, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]string + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]string ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderImportConfigPost") @@ -135,10 +135,10 @@ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderImportConf } type ApiAdminRealmsRealmIdentityProviderInstancesAliasDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *IdentityProvidersAPIService - realm string - alias string + realm string + alias string } func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasDeleteRequest) Execute() (*http.Response, error) { @@ -148,26 +148,26 @@ func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasDeleteRequest) Execute( /* AdminRealmsRealmIdentityProviderInstancesAliasDelete Delete the identity provider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias - @return ApiAdminRealmsRealmIdentityProviderInstancesAliasDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasDeleteRequest */ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasDelete(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasDeleteRequest { return ApiAdminRealmsRealmIdentityProviderInstancesAliasDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasDeleteExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasDelete") @@ -229,11 +229,11 @@ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesA } type ApiAdminRealmsRealmIdentityProviderInstancesAliasExportGetRequest struct { - ctx context.Context + ctx context.Context ApiService *IdentityProvidersAPIService - realm string - alias string - format *string + realm string + alias string + format *string } // Format to use @@ -249,26 +249,26 @@ func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasExportGetRequest) Execu /* AdminRealmsRealmIdentityProviderInstancesAliasExportGet Export public broker configuration for identity provider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias - @return ApiAdminRealmsRealmIdentityProviderInstancesAliasExportGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasExportGetRequest */ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasExportGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasExportGetRequest { return ApiAdminRealmsRealmIdentityProviderInstancesAliasExportGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasExportGetExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasExportGetRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasExportGet") @@ -333,10 +333,10 @@ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesA } type ApiAdminRealmsRealmIdentityProviderInstancesAliasGetRequest struct { - ctx context.Context + ctx context.Context ApiService *IdentityProvidersAPIService - realm string - alias string + realm string + alias string } func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasGetRequest) Execute() (*IdentityProviderRepresentation, *http.Response, error) { @@ -346,29 +346,28 @@ func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasGetRequest) Execute() ( /* AdminRealmsRealmIdentityProviderInstancesAliasGet Get the identity provider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias - @return ApiAdminRealmsRealmIdentityProviderInstancesAliasGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasGetRequest */ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasGetRequest { return ApiAdminRealmsRealmIdentityProviderInstancesAliasGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request -// -// @return IdentityProviderRepresentation +// @return IdentityProviderRepresentation func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasGetExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasGetRequest) (*IdentityProviderRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IdentityProviderRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IdentityProviderRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasGet") @@ -439,10 +438,10 @@ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesA } type ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *IdentityProvidersAPIService - realm string - alias string + realm string + alias string } func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGetRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { @@ -452,29 +451,28 @@ func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGe /* AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGet Return object stating whether client Authorization permissions have been initialized or not and a reference - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias - @return ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGetRequest */ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGetRequest { return ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request -// -// @return ManagementPermissionReference +// @return ManagementPermissionReference func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGetExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGetRequest) (*ManagementPermissionReference, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ManagementPermissionReference + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsGet") @@ -545,10 +543,10 @@ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesA } type ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutRequest struct { - ctx context.Context - ApiService *IdentityProvidersAPIService - realm string - alias string + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + alias string managementPermissionReference *ManagementPermissionReference } @@ -564,29 +562,28 @@ func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPu /* AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPut Return object stating whether client Authorization permissions have been initialized or not and a reference - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias - @return ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutRequest */ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPut(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutRequest { return ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request -// -// @return ManagementPermissionReference +// @return ManagementPermissionReference func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPutRequest) (*ManagementPermissionReference, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ManagementPermissionReference + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasManagementPermissionsPut") @@ -659,10 +656,10 @@ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesA } type ApiAdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetRequest struct { - ctx context.Context + ctx context.Context ApiService *IdentityProvidersAPIService - realm string - alias string + realm string + alias string } func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetRequest) Execute() (*map[string]IdentityProviderMapperTypeRepresentation, *http.Response, error) { @@ -672,29 +669,28 @@ func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetRequest) /* AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGet Get mapper types for identity provider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias - @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetRequest */ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetRequest { return ApiAdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request -// -// @return map[string]IdentityProviderMapperTypeRepresentation +// @return map[string]IdentityProviderMapperTypeRepresentation func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGetRequest) (*map[string]IdentityProviderMapperTypeRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *map[string]IdentityProviderMapperTypeRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *map[string]IdentityProviderMapperTypeRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasMapperTypesGet") @@ -765,10 +761,10 @@ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesA } type ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersGetRequest struct { - ctx context.Context + ctx context.Context ApiService *IdentityProvidersAPIService - realm string - alias string + realm string + alias string } func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersGetRequest) Execute() ([]IdentityProviderMapperRepresentation, *http.Response, error) { @@ -778,29 +774,28 @@ func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersGetRequest) Exec /* AdminRealmsRealmIdentityProviderInstancesAliasMappersGet Get mappers for identity provider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias - @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersGetRequest */ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersGetRequest { return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request -// -// @return []IdentityProviderMapperRepresentation +// @return []IdentityProviderMapperRepresentation func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersGetExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersGetRequest) ([]IdentityProviderMapperRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IdentityProviderMapperRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IdentityProviderMapperRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasMappersGet") @@ -871,11 +866,11 @@ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesA } type ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *IdentityProvidersAPIService - realm string - alias string - id string + realm string + alias string + id string } func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteRequest) Execute() (*http.Response, error) { @@ -885,28 +880,28 @@ func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteRequest) /* AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDelete Delete a mapper for the identity provider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias - @param id Mapper id - @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @param id Mapper id + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteRequest */ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDelete(ctx context.Context, realm string, alias string, id string) ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteRequest { return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, - id: id, + ctx: ctx, + realm: realm, + alias: alias, + id: id, } } // Execute executes the request func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdDelete") @@ -969,11 +964,11 @@ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesA } type ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetRequest struct { - ctx context.Context + ctx context.Context ApiService *IdentityProvidersAPIService - realm string - alias string - id string + realm string + alias string + id string } func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetRequest) Execute() (*IdentityProviderMapperRepresentation, *http.Response, error) { @@ -983,31 +978,30 @@ func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetRequest) Ex /* AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGet Get mapper by id for the identity provider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias - @param id - @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @param id + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetRequest */ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGet(ctx context.Context, realm string, alias string, id string) ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetRequest { return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, - id: id, + ctx: ctx, + realm: realm, + alias: alias, + id: id, } } // Execute executes the request -// -// @return IdentityProviderMapperRepresentation +// @return IdentityProviderMapperRepresentation func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdGetRequest) (*IdentityProviderMapperRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IdentityProviderMapperRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IdentityProviderMapperRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdGet") @@ -1079,11 +1073,11 @@ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesA } type ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutRequest struct { - ctx context.Context - ApiService *IdentityProvidersAPIService - realm string - alias string - id string + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + alias string + id string identityProviderMapperRepresentation *IdentityProviderMapperRepresentation } @@ -1099,28 +1093,28 @@ func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutRequest) Ex /* AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPut Update a mapper for the identity provider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias - @param id Mapper id - @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @param id Mapper id + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutRequest */ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPut(ctx context.Context, realm string, alias string, id string) ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutRequest { return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, - id: id, + ctx: ctx, + realm: realm, + alias: alias, + id: id, } } // Execute executes the request func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasMappersIdPut") @@ -1185,10 +1179,10 @@ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesA } type ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersPostRequest struct { - ctx context.Context - ApiService *IdentityProvidersAPIService - realm string - alias string + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + alias string identityProviderMapperRepresentation *IdentityProviderMapperRepresentation } @@ -1204,26 +1198,26 @@ func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersPostRequest) Exe /* AdminRealmsRealmIdentityProviderInstancesAliasMappersPost Add a mapper to identity provider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias - @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersPostRequest */ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersPost(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersPostRequest { return ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasMappersPostExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasMappersPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasMappersPost") @@ -1287,10 +1281,10 @@ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesA } type ApiAdminRealmsRealmIdentityProviderInstancesAliasPutRequest struct { - ctx context.Context - ApiService *IdentityProvidersAPIService - realm string - alias string + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string + alias string identityProviderRepresentation *IdentityProviderRepresentation } @@ -1306,26 +1300,26 @@ func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasPutRequest) Execute() ( /* AdminRealmsRealmIdentityProviderInstancesAliasPut Update the identity provider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias - @return ApiAdminRealmsRealmIdentityProviderInstancesAliasPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasPutRequest */ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasPut(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasPutRequest { return ApiAdminRealmsRealmIdentityProviderInstancesAliasPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasPutExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasPut") @@ -1389,10 +1383,10 @@ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesA } type ApiAdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetRequest struct { - ctx context.Context + ctx context.Context ApiService *IdentityProvidersAPIService - realm string - alias string + realm string + alias string } func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetRequest) Execute() (bool, *http.Response, error) { @@ -1402,29 +1396,28 @@ func (r ApiAdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetRequest) E /* AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGet Reaload keys for the identity provider if the provider supports it, \"true\" is returned if reload was performed, \"false\" if not. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param alias - @return ApiAdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param alias + @return ApiAdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetRequest */ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGet(ctx context.Context, realm string, alias string) ApiAdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetRequest { return ApiAdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - alias: alias, + ctx: ctx, + realm: realm, + alias: alias, } } // Execute executes the request -// -// @return bool +// @return bool func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetExecute(r ApiAdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGetRequest) (bool, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue bool + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue bool ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesAliasReloadKeysGet") @@ -1495,14 +1488,14 @@ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesA } type ApiAdminRealmsRealmIdentityProviderInstancesGetRequest struct { - ctx context.Context - ApiService *IdentityProvidersAPIService - realm string + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string briefRepresentation *bool - first *int32 - max *int32 - realmOnly *bool - search *string + first *int32 + max *int32 + realmOnly *bool + search *string } // Boolean which defines whether brief representations are returned (default: false) @@ -1542,27 +1535,26 @@ func (r ApiAdminRealmsRealmIdentityProviderInstancesGetRequest) Execute() ([]Ide /* AdminRealmsRealmIdentityProviderInstancesGet List identity providers - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmIdentityProviderInstancesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmIdentityProviderInstancesGetRequest */ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesGet(ctx context.Context, realm string) ApiAdminRealmsRealmIdentityProviderInstancesGetRequest { return ApiAdminRealmsRealmIdentityProviderInstancesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []IdentityProviderRepresentation +// @return []IdentityProviderRepresentation func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesGetExecute(r ApiAdminRealmsRealmIdentityProviderInstancesGetRequest) ([]IdentityProviderRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IdentityProviderRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IdentityProviderRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesGet") @@ -1647,9 +1639,9 @@ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesG } type ApiAdminRealmsRealmIdentityProviderInstancesPostRequest struct { - ctx context.Context - ApiService *IdentityProvidersAPIService - realm string + ctx context.Context + ApiService *IdentityProvidersAPIService + realm string identityProviderRepresentation *IdentityProviderRepresentation } @@ -1665,24 +1657,24 @@ func (r ApiAdminRealmsRealmIdentityProviderInstancesPostRequest) Execute() (*htt /* AdminRealmsRealmIdentityProviderInstancesPost Create a new identity provider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmIdentityProviderInstancesPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmIdentityProviderInstancesPostRequest */ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesPost(ctx context.Context, realm string) ApiAdminRealmsRealmIdentityProviderInstancesPostRequest { return ApiAdminRealmsRealmIdentityProviderInstancesPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesPostExecute(r ApiAdminRealmsRealmIdentityProviderInstancesPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderInstancesPost") @@ -1745,9 +1737,9 @@ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderInstancesP } type ApiAdminRealmsRealmIdentityProviderProvidersProviderIdGetRequest struct { - ctx context.Context + ctx context.Context ApiService *IdentityProvidersAPIService - realm string + realm string providerId string } @@ -1758,29 +1750,28 @@ func (r ApiAdminRealmsRealmIdentityProviderProvidersProviderIdGetRequest) Execut /* AdminRealmsRealmIdentityProviderProvidersProviderIdGet Get the identity provider factory for that provider id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param providerId The provider id to get the factory - @return ApiAdminRealmsRealmIdentityProviderProvidersProviderIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param providerId The provider id to get the factory + @return ApiAdminRealmsRealmIdentityProviderProvidersProviderIdGetRequest */ func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderProvidersProviderIdGet(ctx context.Context, realm string, providerId string) ApiAdminRealmsRealmIdentityProviderProvidersProviderIdGetRequest { return ApiAdminRealmsRealmIdentityProviderProvidersProviderIdGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, providerId: providerId, } } // Execute executes the request -// -// @return map[string]interface{} +// @return map[string]interface{} func (a *IdentityProvidersAPIService) AdminRealmsRealmIdentityProviderProvidersProviderIdGetExecute(r ApiAdminRealmsRealmIdentityProviderProvidersProviderIdGetRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityProvidersAPIService.AdminRealmsRealmIdentityProviderProvidersProviderIdGet") diff --git a/api_key.go b/api_key.go index b6eed19..dab50df 100644 --- a/api_key.go +++ b/api_key.go @@ -19,13 +19,14 @@ import ( "strings" ) + // KeyAPIService KeyAPI service type KeyAPIService service type ApiAdminRealmsRealmKeysGetRequest struct { - ctx context.Context + ctx context.Context ApiService *KeyAPIService - realm string + realm string } func (r ApiAdminRealmsRealmKeysGetRequest) Execute() (*KeysMetadataRepresentation, *http.Response, error) { @@ -35,27 +36,26 @@ func (r ApiAdminRealmsRealmKeysGetRequest) Execute() (*KeysMetadataRepresentatio /* AdminRealmsRealmKeysGet Method for AdminRealmsRealmKeysGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmKeysGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmKeysGetRequest */ func (a *KeyAPIService) AdminRealmsRealmKeysGet(ctx context.Context, realm string) ApiAdminRealmsRealmKeysGetRequest { return ApiAdminRealmsRealmKeysGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return KeysMetadataRepresentation +// @return KeysMetadataRepresentation func (a *KeyAPIService) AdminRealmsRealmKeysGetExecute(r ApiAdminRealmsRealmKeysGetRequest) (*KeysMetadataRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *KeysMetadataRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *KeysMetadataRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "KeyAPIService.AdminRealmsRealmKeysGet") diff --git a/api_organizations.go b/api_organizations.go index 041cf58..cf7d0af 100644 --- a/api_organizations.go +++ b/api_organizations.go @@ -19,18 +19,26 @@ import ( "strings" ) + // OrganizationsAPIService OrganizationsAPI service type OrganizationsAPIService service type ApiAdminRealmsRealmOrganizationsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *OrganizationsAPIService - realm string - exact *bool - first *int32 - max *int32 - q *string - search *string + realm string + briefRepresentation *bool + exact *bool + first *int32 + max *int32 + q *string + search *string +} + +// if true, return the full representation. Otherwise, only the basic fields are returned. +func (r ApiAdminRealmsRealmOrganizationsGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmOrganizationsGetRequest { + r.briefRepresentation = &briefRepresentation + return r } // Boolean which defines whether the param 'search' must match exactly or not @@ -70,27 +78,26 @@ func (r ApiAdminRealmsRealmOrganizationsGetRequest) Execute() ([]OrganizationRep /* AdminRealmsRealmOrganizationsGet Returns a paginated list of organizations filtered according to the specified parameters - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmOrganizationsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmOrganizationsGetRequest */ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsGet(ctx context.Context, realm string) ApiAdminRealmsRealmOrganizationsGetRequest { return ApiAdminRealmsRealmOrganizationsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []OrganizationRepresentation +// @return []OrganizationRepresentation func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsGetExecute(r ApiAdminRealmsRealmOrganizationsGetRequest) ([]OrganizationRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []OrganizationRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []OrganizationRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsGet") @@ -105,6 +112,12 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsGetExecute(r ApiA localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.briefRepresentation != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "briefRepresentation", r.briefRepresentation, "form", "") + } else { + var defaultValue bool = false + r.briefRepresentation = &defaultValue + } if r.exact != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "exact", r.exact, "form", "") } @@ -174,50 +187,155 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsGetExecute(r ApiA return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAdminRealmsRealmOrganizationsIdDeleteRequest struct { - ctx context.Context +type ApiAdminRealmsRealmOrganizationsMembersMemberIdOrganizationsGetRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + memberId string +} + +func (r ApiAdminRealmsRealmOrganizationsMembersMemberIdOrganizationsGetRequest) Execute() ([]OrganizationRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsMembersMemberIdOrganizationsGetExecute(r) +} + +/* +AdminRealmsRealmOrganizationsMembersMemberIdOrganizationsGet Returns the organizations associated with the user that has the specified id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param memberId + @return ApiAdminRealmsRealmOrganizationsMembersMemberIdOrganizationsGetRequest +*/ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsMembersMemberIdOrganizationsGet(ctx context.Context, realm string, memberId string) ApiAdminRealmsRealmOrganizationsMembersMemberIdOrganizationsGetRequest { + return ApiAdminRealmsRealmOrganizationsMembersMemberIdOrganizationsGetRequest{ + ApiService: a, + ctx: ctx, + realm: realm, + memberId: memberId, + } +} + +// Execute executes the request +// @return []OrganizationRepresentation +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsMembersMemberIdOrganizationsGetExecute(r ApiAdminRealmsRealmOrganizationsMembersMemberIdOrganizationsGetRequest) ([]OrganizationRepresentation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []OrganizationRepresentation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsMembersMemberIdOrganizationsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/members/{member-id}/organizations" + localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"member-id"+"}", url.PathEscape(parameterValueToString(r.memberId, "memberId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAdminRealmsRealmOrganizationsOrgIdDeleteRequest struct { + ctx context.Context ApiService *OrganizationsAPIService - realm string - id string + realm string + orgId string } -func (r ApiAdminRealmsRealmOrganizationsIdDeleteRequest) Execute() (*http.Response, error) { - return r.ApiService.AdminRealmsRealmOrganizationsIdDeleteExecute(r) +func (r ApiAdminRealmsRealmOrganizationsOrgIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsOrgIdDeleteExecute(r) } /* -AdminRealmsRealmOrganizationsIdDelete Deletes the organization +AdminRealmsRealmOrganizationsOrgIdDelete Deletes the organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @return ApiAdminRealmsRealmOrganizationsIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param orgId + @return ApiAdminRealmsRealmOrganizationsOrgIdDeleteRequest */ -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdDelete(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdDeleteRequest { - return ApiAdminRealmsRealmOrganizationsIdDeleteRequest{ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdDelete(ctx context.Context, realm string, orgId string) ApiAdminRealmsRealmOrganizationsOrgIdDeleteRequest { + return ApiAdminRealmsRealmOrganizationsOrgIdDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + orgId: orgId, } } // Execute executes the request -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdDeleteExecute(r ApiAdminRealmsRealmOrganizationsIdDeleteRequest) (*http.Response, error) { +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdDeleteExecute(r ApiAdminRealmsRealmOrganizationsOrgIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsOrgIdDelete") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}" + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{org-id}" localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"org-id"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -268,53 +386,52 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdDeleteExecute(r return localVarHTTPResponse, nil } -type ApiAdminRealmsRealmOrganizationsIdGetRequest struct { - ctx context.Context +type ApiAdminRealmsRealmOrganizationsOrgIdGetRequest struct { + ctx context.Context ApiService *OrganizationsAPIService - realm string - id string + realm string + orgId string } -func (r ApiAdminRealmsRealmOrganizationsIdGetRequest) Execute() (*OrganizationRepresentation, *http.Response, error) { - return r.ApiService.AdminRealmsRealmOrganizationsIdGetExecute(r) +func (r ApiAdminRealmsRealmOrganizationsOrgIdGetRequest) Execute() (*OrganizationRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsOrgIdGetExecute(r) } /* -AdminRealmsRealmOrganizationsIdGet Returns the organization representation +AdminRealmsRealmOrganizationsOrgIdGet Returns the organization representation - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @return ApiAdminRealmsRealmOrganizationsIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param orgId + @return ApiAdminRealmsRealmOrganizationsOrgIdGetRequest */ -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdGetRequest { - return ApiAdminRealmsRealmOrganizationsIdGetRequest{ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdGet(ctx context.Context, realm string, orgId string) ApiAdminRealmsRealmOrganizationsOrgIdGetRequest { + return ApiAdminRealmsRealmOrganizationsOrgIdGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + orgId: orgId, } } // Execute executes the request -// -// @return OrganizationRepresentation -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdGetExecute(r ApiAdminRealmsRealmOrganizationsIdGetRequest) (*OrganizationRepresentation, *http.Response, error) { +// @return OrganizationRepresentation +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdGetExecute(r ApiAdminRealmsRealmOrganizationsOrgIdGetRequest) (*OrganizationRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *OrganizationRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrganizationRepresentation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsOrgIdGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}" + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{org-id}" localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"org-id"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -374,55 +491,55 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdGetExecute(r Ap return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasDeleteRequest struct { - ctx context.Context +type ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasDeleteRequest struct { + ctx context.Context ApiService *OrganizationsAPIService - realm string - id string - alias string + realm string + orgId string + alias string } -func (r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasDeleteRequest) Execute() (*http.Response, error) { - return r.ApiService.AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDeleteExecute(r) +func (r ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasDeleteExecute(r) } /* -AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDelete Removes the identity provider with the specified alias from the organization +AdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasDelete Removes the identity provider with the specified alias from the organization Breaks the association between the identity provider and the organization. The provider itself is not deleted. If no provider is found, or if it is not currently associated with the org, an error response is returned - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @param alias - @return ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param orgId + @param alias + @return ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasDeleteRequest */ -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDelete(ctx context.Context, realm string, id string, alias string) ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasDeleteRequest { - return ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasDeleteRequest{ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasDelete(ctx context.Context, realm string, orgId string, alias string) ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasDeleteRequest { + return ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, - alias: alias, + ctx: ctx, + realm: realm, + orgId: orgId, + alias: alias, } } // Execute executes the request -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDeleteExecute(r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasDeleteRequest) (*http.Response, error) { +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasDeleteExecute(r ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdIdentityProvidersAliasDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasDelete") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/identity-providers/{alias}" + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{org-id}/identity-providers/{alias}" localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"org-id"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) localVarHeaderParams := make(map[string]string) @@ -474,58 +591,57 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvide return localVarHTTPResponse, nil } -type ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasGetRequest struct { - ctx context.Context +type ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasGetRequest struct { + ctx context.Context ApiService *OrganizationsAPIService - realm string - id string - alias string + realm string + orgId string + alias string } -func (r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasGetRequest) Execute() (*IdentityProviderRepresentation, *http.Response, error) { - return r.ApiService.AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGetExecute(r) +func (r ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasGetRequest) Execute() (*IdentityProviderRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasGetExecute(r) } /* -AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet Returns the identity provider associated with the organization that has the specified alias +AdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasGet Returns the identity provider associated with the organization that has the specified alias Searches for an identity provider with the given alias. If one is found and is associated with the organization, it is returned. Otherwise, an error response with status NOT_FOUND is returned - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @param alias - @return ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param orgId + @param alias + @return ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasGetRequest */ -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet(ctx context.Context, realm string, id string, alias string) ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasGetRequest { - return ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasGetRequest{ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasGet(ctx context.Context, realm string, orgId string, alias string) ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasGetRequest { + return ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, - alias: alias, + ctx: ctx, + realm: realm, + orgId: orgId, + alias: alias, } } // Execute executes the request -// -// @return IdentityProviderRepresentation -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGetExecute(r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersAliasGetRequest) (*IdentityProviderRepresentation, *http.Response, error) { +// @return IdentityProviderRepresentation +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasGetExecute(r ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasGetRequest) (*IdentityProviderRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IdentityProviderRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IdentityProviderRepresentation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdIdentityProvidersAliasGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsOrgIdIdentityProvidersAliasGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/identity-providers/{alias}" + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{org-id}/identity-providers/{alias}" localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"org-id"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"alias"+"}", url.PathEscape(parameterValueToString(r.alias, "alias")), -1) localVarHeaderParams := make(map[string]string) @@ -586,53 +702,52 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvide return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAdminRealmsRealmOrganizationsIdIdentityProvidersGetRequest struct { - ctx context.Context +type ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersGetRequest struct { + ctx context.Context ApiService *OrganizationsAPIService - realm string - id string + realm string + orgId string } -func (r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersGetRequest) Execute() ([]IdentityProviderRepresentation, *http.Response, error) { - return r.ApiService.AdminRealmsRealmOrganizationsIdIdentityProvidersGetExecute(r) +func (r ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersGetRequest) Execute() ([]IdentityProviderRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsOrgIdIdentityProvidersGetExecute(r) } /* -AdminRealmsRealmOrganizationsIdIdentityProvidersGet Returns all identity providers associated with the organization +AdminRealmsRealmOrganizationsOrgIdIdentityProvidersGet Returns all identity providers associated with the organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @return ApiAdminRealmsRealmOrganizationsIdIdentityProvidersGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param orgId + @return ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersGetRequest */ -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvidersGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdIdentityProvidersGetRequest { - return ApiAdminRealmsRealmOrganizationsIdIdentityProvidersGetRequest{ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdIdentityProvidersGet(ctx context.Context, realm string, orgId string) ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersGetRequest { + return ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + orgId: orgId, } } // Execute executes the request -// -// @return []IdentityProviderRepresentation -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvidersGetExecute(r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersGetRequest) ([]IdentityProviderRepresentation, *http.Response, error) { +// @return []IdentityProviderRepresentation +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdIdentityProvidersGetExecute(r ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersGetRequest) ([]IdentityProviderRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IdentityProviderRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IdentityProviderRepresentation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdIdentityProvidersGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsOrgIdIdentityProvidersGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/identity-providers" + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{org-id}/identity-providers" localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"org-id"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -692,58 +807,58 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvide return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAdminRealmsRealmOrganizationsIdIdentityProvidersPostRequest struct { - ctx context.Context +type ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersPostRequest struct { + ctx context.Context ApiService *OrganizationsAPIService - realm string - id string - body *string + realm string + orgId string + body *string } -func (r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersPostRequest) Body(body string) ApiAdminRealmsRealmOrganizationsIdIdentityProvidersPostRequest { +func (r ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersPostRequest) Body(body string) ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersPostRequest { r.body = &body return r } -func (r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersPostRequest) Execute() (*http.Response, error) { - return r.ApiService.AdminRealmsRealmOrganizationsIdIdentityProvidersPostExecute(r) +func (r ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsOrgIdIdentityProvidersPostExecute(r) } /* -AdminRealmsRealmOrganizationsIdIdentityProvidersPost Adds the identity provider with the specified id to the organization +AdminRealmsRealmOrganizationsOrgIdIdentityProvidersPost Adds the identity provider with the specified id to the organization Adds, or associates, an existing identity provider with the organization. If no identity provider is found, or if it is already associated with the organization, an error response is returned - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @return ApiAdminRealmsRealmOrganizationsIdIdentityProvidersPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param orgId + @return ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersPostRequest */ -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvidersPost(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdIdentityProvidersPostRequest { - return ApiAdminRealmsRealmOrganizationsIdIdentityProvidersPostRequest{ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdIdentityProvidersPost(ctx context.Context, realm string, orgId string) ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersPostRequest { + return ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + orgId: orgId, } } // Execute executes the request -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvidersPostExecute(r ApiAdminRealmsRealmOrganizationsIdIdentityProvidersPostRequest) (*http.Response, error) { +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdIdentityProvidersPostExecute(r ApiAdminRealmsRealmOrganizationsOrgIdIdentityProvidersPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdIdentityProvidersPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsOrgIdIdentityProvidersPost") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/identity-providers" + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{org-id}/identity-providers" localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"org-id"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -796,53 +911,52 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdIdentityProvide return localVarHTTPResponse, nil } -type ApiAdminRealmsRealmOrganizationsIdMembersCountGetRequest struct { - ctx context.Context +type ApiAdminRealmsRealmOrganizationsOrgIdMembersCountGetRequest struct { + ctx context.Context ApiService *OrganizationsAPIService - realm string - id string + realm string + orgId string } -func (r ApiAdminRealmsRealmOrganizationsIdMembersCountGetRequest) Execute() (int64, *http.Response, error) { - return r.ApiService.AdminRealmsRealmOrganizationsIdMembersCountGetExecute(r) +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersCountGetRequest) Execute() (int64, *http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsOrgIdMembersCountGetExecute(r) } /* -AdminRealmsRealmOrganizationsIdMembersCountGet Returns number of members in the organization. +AdminRealmsRealmOrganizationsOrgIdMembersCountGet Returns number of members in the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @return ApiAdminRealmsRealmOrganizationsIdMembersCountGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param orgId + @return ApiAdminRealmsRealmOrganizationsOrgIdMembersCountGetRequest */ -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersCountGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdMembersCountGetRequest { - return ApiAdminRealmsRealmOrganizationsIdMembersCountGetRequest{ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdMembersCountGet(ctx context.Context, realm string, orgId string) ApiAdminRealmsRealmOrganizationsOrgIdMembersCountGetRequest { + return ApiAdminRealmsRealmOrganizationsOrgIdMembersCountGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + orgId: orgId, } } // Execute executes the request -// -// @return int64 -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersCountGetExecute(r ApiAdminRealmsRealmOrganizationsIdMembersCountGetRequest) (int64, *http.Response, error) { +// @return int64 +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdMembersCountGetExecute(r ApiAdminRealmsRealmOrganizationsOrgIdMembersCountGetRequest) (int64, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue int64 + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue int64 ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdMembersCountGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsOrgIdMembersCountGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/members/count" + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{org-id}/members/count" localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"org-id"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -902,81 +1016,87 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersCountGet return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAdminRealmsRealmOrganizationsIdMembersGetRequest struct { - ctx context.Context +type ApiAdminRealmsRealmOrganizationsOrgIdMembersGetRequest struct { + ctx context.Context ApiService *OrganizationsAPIService - realm string - id string - exact *bool - first *int32 - max *int32 - search *string + realm string + orgId string + exact *bool + first *int32 + max *int32 + membershipType *string + search *string } // Boolean which defines whether the param 'search' must match exactly or not -func (r ApiAdminRealmsRealmOrganizationsIdMembersGetRequest) Exact(exact bool) ApiAdminRealmsRealmOrganizationsIdMembersGetRequest { +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersGetRequest) Exact(exact bool) ApiAdminRealmsRealmOrganizationsOrgIdMembersGetRequest { r.exact = &exact return r } // The position of the first result to be processed (pagination offset) -func (r ApiAdminRealmsRealmOrganizationsIdMembersGetRequest) First(first int32) ApiAdminRealmsRealmOrganizationsIdMembersGetRequest { +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersGetRequest) First(first int32) ApiAdminRealmsRealmOrganizationsOrgIdMembersGetRequest { r.first = &first return r } // The maximum number of results to be returned. Defaults to 10 -func (r ApiAdminRealmsRealmOrganizationsIdMembersGetRequest) Max(max int32) ApiAdminRealmsRealmOrganizationsIdMembersGetRequest { +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersGetRequest) Max(max int32) ApiAdminRealmsRealmOrganizationsOrgIdMembersGetRequest { r.max = &max return r } +// The membership type +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersGetRequest) MembershipType(membershipType string) ApiAdminRealmsRealmOrganizationsOrgIdMembersGetRequest { + r.membershipType = &membershipType + return r +} + // A String representing either a member's username, e-mail, first name, or last name. -func (r ApiAdminRealmsRealmOrganizationsIdMembersGetRequest) Search(search string) ApiAdminRealmsRealmOrganizationsIdMembersGetRequest { +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersGetRequest) Search(search string) ApiAdminRealmsRealmOrganizationsOrgIdMembersGetRequest { r.search = &search return r } -func (r ApiAdminRealmsRealmOrganizationsIdMembersGetRequest) Execute() ([]MemberRepresentation, *http.Response, error) { - return r.ApiService.AdminRealmsRealmOrganizationsIdMembersGetExecute(r) +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersGetRequest) Execute() ([]MemberRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsOrgIdMembersGetExecute(r) } /* -AdminRealmsRealmOrganizationsIdMembersGet Returns a paginated list of organization members filtered according to the specified parameters +AdminRealmsRealmOrganizationsOrgIdMembersGet Returns a paginated list of organization members filtered according to the specified parameters - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @return ApiAdminRealmsRealmOrganizationsIdMembersGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param orgId + @return ApiAdminRealmsRealmOrganizationsOrgIdMembersGetRequest */ -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdMembersGetRequest { - return ApiAdminRealmsRealmOrganizationsIdMembersGetRequest{ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdMembersGet(ctx context.Context, realm string, orgId string) ApiAdminRealmsRealmOrganizationsOrgIdMembersGetRequest { + return ApiAdminRealmsRealmOrganizationsOrgIdMembersGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + orgId: orgId, } } // Execute executes the request -// -// @return []MemberRepresentation -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersGetExecute(r ApiAdminRealmsRealmOrganizationsIdMembersGetRequest) ([]MemberRepresentation, *http.Response, error) { +// @return []MemberRepresentation +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdMembersGetExecute(r ApiAdminRealmsRealmOrganizationsOrgIdMembersGetRequest) ([]MemberRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []MemberRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []MemberRepresentation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdMembersGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsOrgIdMembersGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/members" + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{org-id}/members" localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"org-id"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -991,6 +1111,9 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersGetExecu if r.max != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "max", r.max, "form", "") } + if r.membershipType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "membershipType", r.membershipType, "form", "") + } if r.search != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") } @@ -1048,56 +1171,56 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersGetExecu return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostRequest struct { - ctx context.Context +type ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteExistingUserPostRequest struct { + ctx context.Context ApiService *OrganizationsAPIService - realm string - id string - id2 *string + realm string + orgId string + id *string } -func (r ApiAdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostRequest) Id2(id2 string) ApiAdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostRequest { - r.id2 = &id2 +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteExistingUserPostRequest) Id(id string) ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteExistingUserPostRequest { + r.id = &id return r } -func (r ApiAdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostRequest) Execute() (*http.Response, error) { - return r.ApiService.AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostExecute(r) +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteExistingUserPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsOrgIdMembersInviteExistingUserPostExecute(r) } /* -AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPost Invites an existing user to the organization, using the specified user id +AdminRealmsRealmOrganizationsOrgIdMembersInviteExistingUserPost Invites an existing user to the organization, using the specified user id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @return ApiAdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param orgId + @return ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteExistingUserPostRequest */ -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPost(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostRequest { - return ApiAdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostRequest{ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdMembersInviteExistingUserPost(ctx context.Context, realm string, orgId string) ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteExistingUserPostRequest { + return ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteExistingUserPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + orgId: orgId, } } // Execute executes the request -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostExecute(r ApiAdminRealmsRealmOrganizationsIdMembersInviteExistingUserPostRequest) (*http.Response, error) { +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdMembersInviteExistingUserPostExecute(r ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteExistingUserPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdMembersInviteExistingUserPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsOrgIdMembersInviteExistingUserPost") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/members/invite-existing-user" + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{org-id}/members/invite-existing-user" localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"org-id"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1120,8 +1243,8 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersInviteEx if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.id2 != nil { - parameterAddToHeaderOrQuery(localVarFormParams, "id", r.id2, "", "") + if r.id != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "id", r.id, "", "") } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { @@ -1151,70 +1274,70 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersInviteEx return localVarHTTPResponse, nil } -type ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest struct { - ctx context.Context +type ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteUserPostRequest struct { + ctx context.Context ApiService *OrganizationsAPIService - realm string - id string - email *string - firstName *string - lastName *string + realm string + orgId string + email *string + firstName *string + lastName *string } -func (r ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest) Email(email string) ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest { +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteUserPostRequest) Email(email string) ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteUserPostRequest { r.email = &email return r } -func (r ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest) FirstName(firstName string) ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest { +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteUserPostRequest) FirstName(firstName string) ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteUserPostRequest { r.firstName = &firstName return r } -func (r ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest) LastName(lastName string) ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest { +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteUserPostRequest) LastName(lastName string) ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteUserPostRequest { r.lastName = &lastName return r } -func (r ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest) Execute() (*http.Response, error) { - return r.ApiService.AdminRealmsRealmOrganizationsIdMembersInviteUserPostExecute(r) +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteUserPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsOrgIdMembersInviteUserPostExecute(r) } /* -AdminRealmsRealmOrganizationsIdMembersInviteUserPost Invites an existing user or sends a registration link to a new user, based on the provided e-mail address. +AdminRealmsRealmOrganizationsOrgIdMembersInviteUserPost Invites an existing user or sends a registration link to a new user, based on the provided e-mail address. If the user with the given e-mail address exists, it sends an invitation link, otherwise it sends a registration link. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @return ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param orgId + @return ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteUserPostRequest */ -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersInviteUserPost(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest { - return ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest{ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdMembersInviteUserPost(ctx context.Context, realm string, orgId string) ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteUserPostRequest { + return ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteUserPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + orgId: orgId, } } // Execute executes the request -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersInviteUserPostExecute(r ApiAdminRealmsRealmOrganizationsIdMembersInviteUserPostRequest) (*http.Response, error) { +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdMembersInviteUserPostExecute(r ApiAdminRealmsRealmOrganizationsOrgIdMembersInviteUserPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdMembersInviteUserPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsOrgIdMembersInviteUserPost") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/members/invite-user" + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{org-id}/members/invite-user" localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"org-id"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1274,160 +1397,56 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersInviteUs return localVarHTTPResponse, nil } -type ApiAdminRealmsRealmOrganizationsIdMembersPostRequest struct { - ctx context.Context +type ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdDeleteRequest struct { + ctx context.Context ApiService *OrganizationsAPIService - realm string - id string - body *string -} - -func (r ApiAdminRealmsRealmOrganizationsIdMembersPostRequest) Body(body string) ApiAdminRealmsRealmOrganizationsIdMembersPostRequest { - r.body = &body - return r + realm string + orgId string + memberId string } -func (r ApiAdminRealmsRealmOrganizationsIdMembersPostRequest) Execute() (*http.Response, error) { - return r.ApiService.AdminRealmsRealmOrganizationsIdMembersPostExecute(r) +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsOrgIdMembersMemberIdDeleteExecute(r) } /* -AdminRealmsRealmOrganizationsIdMembersPost Adds the user with the specified id as a member of the organization - -Adds, or associates, an existing user with the organization. If no user is found, or if it is already associated with the organization, an error response is returned - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @return ApiAdminRealmsRealmOrganizationsIdMembersPostRequest -*/ -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersPost(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdMembersPostRequest { - return ApiAdminRealmsRealmOrganizationsIdMembersPostRequest{ - ApiService: a, - ctx: ctx, - realm: realm, - id: id, - } -} - -// Execute executes the request -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersPostExecute(r ApiAdminRealmsRealmOrganizationsIdMembersPostRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdMembersPost") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/members" - localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.body - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiAdminRealmsRealmOrganizationsIdMembersUserIdDeleteRequest struct { - ctx context.Context - ApiService *OrganizationsAPIService - realm string - id string - userId string -} - -func (r ApiAdminRealmsRealmOrganizationsIdMembersUserIdDeleteRequest) Execute() (*http.Response, error) { - return r.ApiService.AdminRealmsRealmOrganizationsIdMembersUserIdDeleteExecute(r) -} - -/* -AdminRealmsRealmOrganizationsIdMembersUserIdDelete Removes the user with the specified id from the organization +AdminRealmsRealmOrganizationsOrgIdMembersMemberIdDelete Removes the user with the specified id from the organization Breaks the association between the user and organization. The user itself is deleted in case the membership is managed, otherwise the user is not deleted. If no user is found, or if they are not a member of the organization, an error response is returned - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @param userId - @return ApiAdminRealmsRealmOrganizationsIdMembersUserIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param orgId + @param memberId + @return ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdDeleteRequest */ -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersUserIdDelete(ctx context.Context, realm string, id string, userId string) ApiAdminRealmsRealmOrganizationsIdMembersUserIdDeleteRequest { - return ApiAdminRealmsRealmOrganizationsIdMembersUserIdDeleteRequest{ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdMembersMemberIdDelete(ctx context.Context, realm string, orgId string, memberId string) ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdDeleteRequest { + return ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, - userId: userId, + ctx: ctx, + realm: realm, + orgId: orgId, + memberId: memberId, } } // Execute executes the request -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersUserIdDeleteExecute(r ApiAdminRealmsRealmOrganizationsIdMembersUserIdDeleteRequest) (*http.Response, error) { +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdMembersMemberIdDeleteExecute(r ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdMembersUserIdDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsOrgIdMembersMemberIdDelete") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/members/{userId}" + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{org-id}/members/{member-id}" localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"org-id"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"member-id"+"}", url.PathEscape(parameterValueToString(r.memberId, "memberId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1478,59 +1497,58 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersUserIdDe return localVarHTTPResponse, nil } -type ApiAdminRealmsRealmOrganizationsIdMembersUserIdGetRequest struct { - ctx context.Context +type ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdGetRequest struct { + ctx context.Context ApiService *OrganizationsAPIService - realm string - id string - userId string + realm string + orgId string + memberId string } -func (r ApiAdminRealmsRealmOrganizationsIdMembersUserIdGetRequest) Execute() (*MemberRepresentation, *http.Response, error) { - return r.ApiService.AdminRealmsRealmOrganizationsIdMembersUserIdGetExecute(r) +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdGetRequest) Execute() (*MemberRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsOrgIdMembersMemberIdGetExecute(r) } /* -AdminRealmsRealmOrganizationsIdMembersUserIdGet Returns the member of the organization with the specified id +AdminRealmsRealmOrganizationsOrgIdMembersMemberIdGet Returns the member of the organization with the specified id Searches for auser with the given id. If one is found, and is currently a member of the organization, returns it. Otherwise,an error response with status NOT_FOUND is returned - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @param userId - @return ApiAdminRealmsRealmOrganizationsIdMembersUserIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param orgId + @param memberId + @return ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdGetRequest */ -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersUserIdGet(ctx context.Context, realm string, id string, userId string) ApiAdminRealmsRealmOrganizationsIdMembersUserIdGetRequest { - return ApiAdminRealmsRealmOrganizationsIdMembersUserIdGetRequest{ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdMembersMemberIdGet(ctx context.Context, realm string, orgId string, memberId string) ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdGetRequest { + return ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, - userId: userId, + ctx: ctx, + realm: realm, + orgId: orgId, + memberId: memberId, } } // Execute executes the request -// -// @return MemberRepresentation -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersUserIdGetExecute(r ApiAdminRealmsRealmOrganizationsIdMembersUserIdGetRequest) (*MemberRepresentation, *http.Response, error) { +// @return MemberRepresentation +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdMembersMemberIdGetExecute(r ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdGetRequest) (*MemberRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *MemberRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MemberRepresentation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdMembersUserIdGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsOrgIdMembersMemberIdGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/members/{userId}" + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{org-id}/members/{member-id}" localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"org-id"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"member-id"+"}", url.PathEscape(parameterValueToString(r.memberId, "memberId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1590,57 +1608,56 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersUserIdGe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGetRequest struct { - ctx context.Context +type ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdOrganizationsGetRequest struct { + ctx context.Context ApiService *OrganizationsAPIService - realm string - id string - userId string + realm string + orgId string + memberId string } -func (r ApiAdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGetRequest) Execute() ([]OrganizationRepresentation, *http.Response, error) { - return r.ApiService.AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGetExecute(r) +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdOrganizationsGetRequest) Execute() ([]OrganizationRepresentation, *http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsOrgIdMembersMemberIdOrganizationsGetExecute(r) } /* -AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet Returns the organizations associated with the user that has the specified id +AdminRealmsRealmOrganizationsOrgIdMembersMemberIdOrganizationsGet Returns the organizations associated with the user that has the specified id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @param userId - @return ApiAdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param orgId + @param memberId + @return ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdOrganizationsGetRequest */ -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet(ctx context.Context, realm string, id string, userId string) ApiAdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGetRequest { - return ApiAdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGetRequest{ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdMembersMemberIdOrganizationsGet(ctx context.Context, realm string, orgId string, memberId string) ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdOrganizationsGetRequest { + return ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdOrganizationsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, - userId: userId, + ctx: ctx, + realm: realm, + orgId: orgId, + memberId: memberId, } } // Execute executes the request -// -// @return []OrganizationRepresentation -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGetExecute(r ApiAdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGetRequest) ([]OrganizationRepresentation, *http.Response, error) { +// @return []OrganizationRepresentation +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdMembersMemberIdOrganizationsGetExecute(r ApiAdminRealmsRealmOrganizationsOrgIdMembersMemberIdOrganizationsGetRequest) ([]OrganizationRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []OrganizationRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []OrganizationRepresentation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdMembersUserIdOrganizationsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsOrgIdMembersMemberIdOrganizationsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}/members/{userId}/organizations" + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{org-id}/members/{member-id}/organizations" localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"org-id"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"member-id"+"}", url.PathEscape(parameterValueToString(r.memberId, "memberId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1700,56 +1717,58 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdMembersUserIdOr return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAdminRealmsRealmOrganizationsIdPutRequest struct { - ctx context.Context - ApiService *OrganizationsAPIService - realm string - id string - organizationRepresentation *OrganizationRepresentation +type ApiAdminRealmsRealmOrganizationsOrgIdMembersPostRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + realm string + orgId string + body *string } -func (r ApiAdminRealmsRealmOrganizationsIdPutRequest) OrganizationRepresentation(organizationRepresentation OrganizationRepresentation) ApiAdminRealmsRealmOrganizationsIdPutRequest { - r.organizationRepresentation = &organizationRepresentation +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersPostRequest) Body(body string) ApiAdminRealmsRealmOrganizationsOrgIdMembersPostRequest { + r.body = &body return r } -func (r ApiAdminRealmsRealmOrganizationsIdPutRequest) Execute() (*http.Response, error) { - return r.ApiService.AdminRealmsRealmOrganizationsIdPutExecute(r) +func (r ApiAdminRealmsRealmOrganizationsOrgIdMembersPostRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsOrgIdMembersPostExecute(r) } /* -AdminRealmsRealmOrganizationsIdPut Updates the organization +AdminRealmsRealmOrganizationsOrgIdMembersPost Adds the user with the specified id as a member of the organization + +Adds, or associates, an existing user with the organization. If no user is found, or if it is already associated with the organization, an error response is returned - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @return ApiAdminRealmsRealmOrganizationsIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param orgId + @return ApiAdminRealmsRealmOrganizationsOrgIdMembersPostRequest */ -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdPut(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsIdPutRequest { - return ApiAdminRealmsRealmOrganizationsIdPutRequest{ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdMembersPost(ctx context.Context, realm string, orgId string) ApiAdminRealmsRealmOrganizationsOrgIdMembersPostRequest { + return ApiAdminRealmsRealmOrganizationsOrgIdMembersPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + orgId: orgId, } } // Execute executes the request -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdPutExecute(r ApiAdminRealmsRealmOrganizationsIdPutRequest) (*http.Response, error) { +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdMembersPostExecute(r ApiAdminRealmsRealmOrganizationsOrgIdMembersPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsIdPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsOrgIdMembersPost") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{id}" + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{org-id}/members" localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"org-id"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1773,7 +1792,7 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdPutExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.organizationRepresentation + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -1802,60 +1821,63 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsIdPutExecute(r Ap return localVarHTTPResponse, nil } -type ApiAdminRealmsRealmOrganizationsMembersIdOrganizationsGetRequest struct { - ctx context.Context +type ApiAdminRealmsRealmOrganizationsOrgIdPutRequest struct { + ctx context.Context ApiService *OrganizationsAPIService - realm string - id string + realm string + orgId string + organizationRepresentation *OrganizationRepresentation } -func (r ApiAdminRealmsRealmOrganizationsMembersIdOrganizationsGetRequest) Execute() ([]OrganizationRepresentation, *http.Response, error) { - return r.ApiService.AdminRealmsRealmOrganizationsMembersIdOrganizationsGetExecute(r) +func (r ApiAdminRealmsRealmOrganizationsOrgIdPutRequest) OrganizationRepresentation(organizationRepresentation OrganizationRepresentation) ApiAdminRealmsRealmOrganizationsOrgIdPutRequest { + r.organizationRepresentation = &organizationRepresentation + return r +} + +func (r ApiAdminRealmsRealmOrganizationsOrgIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.AdminRealmsRealmOrganizationsOrgIdPutExecute(r) } /* -AdminRealmsRealmOrganizationsMembersIdOrganizationsGet Returns the organizations associated with the user that has the specified id +AdminRealmsRealmOrganizationsOrgIdPut Updates the organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param id - @return ApiAdminRealmsRealmOrganizationsMembersIdOrganizationsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param orgId + @return ApiAdminRealmsRealmOrganizationsOrgIdPutRequest */ -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsMembersIdOrganizationsGet(ctx context.Context, realm string, id string) ApiAdminRealmsRealmOrganizationsMembersIdOrganizationsGetRequest { - return ApiAdminRealmsRealmOrganizationsMembersIdOrganizationsGetRequest{ +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdPut(ctx context.Context, realm string, orgId string) ApiAdminRealmsRealmOrganizationsOrgIdPutRequest { + return ApiAdminRealmsRealmOrganizationsOrgIdPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - id: id, + ctx: ctx, + realm: realm, + orgId: orgId, } } // Execute executes the request -// -// @return []OrganizationRepresentation -func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsMembersIdOrganizationsGetExecute(r ApiAdminRealmsRealmOrganizationsMembersIdOrganizationsGetRequest) ([]OrganizationRepresentation, *http.Response, error) { +func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsOrgIdPutExecute(r ApiAdminRealmsRealmOrganizationsOrgIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []OrganizationRepresentation + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsMembersIdOrganizationsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsOrgIdPut") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/realms/{realm}/organizations/members/{id}/organizations" + localVarPath := localBasePath + "/admin/realms/{realm}/organizations/{org-id}" localVarPath = strings.Replace(localVarPath, "{"+"realm"+"}", url.PathEscape(parameterValueToString(r.realm, "realm")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"org-id"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -1864,28 +1886,30 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsMembersIdOrganiza } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.organizationRepresentation req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -1893,25 +1917,16 @@ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsMembersIdOrganiza body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } type ApiAdminRealmsRealmOrganizationsPostRequest struct { - ctx context.Context - ApiService *OrganizationsAPIService - realm string + ctx context.Context + ApiService *OrganizationsAPIService + realm string organizationRepresentation *OrganizationRepresentation } @@ -1927,24 +1942,24 @@ func (r ApiAdminRealmsRealmOrganizationsPostRequest) Execute() (*http.Response, /* AdminRealmsRealmOrganizationsPost Creates a new organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmOrganizationsPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmOrganizationsPostRequest */ func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsPost(ctx context.Context, realm string) ApiAdminRealmsRealmOrganizationsPostRequest { return ApiAdminRealmsRealmOrganizationsPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *OrganizationsAPIService) AdminRealmsRealmOrganizationsPostExecute(r ApiAdminRealmsRealmOrganizationsPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.AdminRealmsRealmOrganizationsPost") diff --git a/api_protocol_mappers.go b/api_protocol_mappers.go index 71345c9..2dc800a 100644 --- a/api_protocol_mappers.go +++ b/api_protocol_mappers.go @@ -19,14 +19,15 @@ import ( "strings" ) + // ProtocolMappersAPIService ProtocolMappersAPI service type ProtocolMappersAPIService service type ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostRequest struct { - ctx context.Context - ApiService *ProtocolMappersAPIService - realm string - clientScopeId string + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string protocolMapperRepresentation *[]ProtocolMapperRepresentation } @@ -42,16 +43,16 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost /* AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost Create multiple mappers - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } @@ -59,9 +60,9 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdPro // Execute executes the request func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost") @@ -125,9 +126,9 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdPro } type ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetRequest struct { - ctx context.Context - ApiService *ProtocolMappersAPIService - realm string + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string clientScopeId string } @@ -138,29 +139,28 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetRequ /* AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet Get mappers - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } // Execute executes the request -// -// @return []ProtocolMapperRepresentation +// @return []ProtocolMapperRepresentation func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetRequest) ([]ProtocolMapperRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ProtocolMapperRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProtocolMapperRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet") @@ -231,11 +231,11 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdPro } type ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteRequest struct { - ctx context.Context - ApiService *ProtocolMappersAPIService - realm string + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string clientScopeId string - id string + id string } func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteRequest) Execute() (*http.Response, error) { @@ -245,28 +245,28 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelet /* AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete Delete the mapper - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param id Mapper id - @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param id Mapper id + @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete(ctx context.Context, realm string, clientScopeId string, id string) ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - id: id, + id: id, } } // Execute executes the request func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete") @@ -329,11 +329,11 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdPro } type ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetRequest struct { - ctx context.Context - ApiService *ProtocolMappersAPIService - realm string + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string clientScopeId string - id string + id string } func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetRequest) Execute() (*ProtocolMapperRepresentation, *http.Response, error) { @@ -343,31 +343,30 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetRe /* AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet Get mapper by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param id Mapper id - @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param id Mapper id + @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet(ctx context.Context, realm string, clientScopeId string, id string) ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - id: id, + id: id, } } // Execute executes the request -// -// @return ProtocolMapperRepresentation +// @return ProtocolMapperRepresentation func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetRequest) (*ProtocolMapperRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProtocolMapperRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProtocolMapperRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet") @@ -439,11 +438,11 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdPro } type ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutRequest struct { - ctx context.Context - ApiService *ProtocolMappersAPIService - realm string - clientScopeId string - id string + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string + id string protocolMapperRepresentation *ProtocolMapperRepresentation } @@ -459,28 +458,28 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutRe /* AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut Update the mapper - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param id Mapper id - @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param id Mapper id + @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut(ctx context.Context, realm string, clientScopeId string, id string) ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - id: id, + id: id, } } // Execute executes the request func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut") @@ -545,10 +544,10 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdPro } type ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostRequest struct { - ctx context.Context - ApiService *ProtocolMappersAPIService - realm string - clientScopeId string + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string protocolMapperRepresentation *ProtocolMapperRepresentation } @@ -564,16 +563,16 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostReq /* AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost Create a mapper - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } @@ -581,9 +580,9 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdPro // Execute executes the request func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost") @@ -647,11 +646,11 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdPro } type ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetRequest struct { - ctx context.Context - ApiService *ProtocolMappersAPIService - realm string + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string clientScopeId string - protocol string + protocol string } func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetRequest) Execute() ([]ProtocolMapperRepresentation, *http.Response, error) { @@ -661,31 +660,30 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProto /* AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet Get mappers by name for a specific protocol - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param protocol - @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param protocol + @return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet(ctx context.Context, realm string, clientScopeId string, protocol string) ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - protocol: protocol, + protocol: protocol, } } // Execute executes the request -// -// @return []ProtocolMapperRepresentation +// @return []ProtocolMapperRepresentation func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetRequest) ([]ProtocolMapperRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ProtocolMapperRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProtocolMapperRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet") @@ -757,10 +755,10 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientScopesClientScopeIdPro } type ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostRequest struct { - ctx context.Context - ApiService *ProtocolMappersAPIService - realm string - clientScopeId string + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string protocolMapperRepresentation *[]ProtocolMapperRepresentation } @@ -776,16 +774,16 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsP /* AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost Create multiple mappers - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } @@ -793,9 +791,9 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeId // Execute executes the request func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost") @@ -859,9 +857,9 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeId } type ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetRequest struct { - ctx context.Context - ApiService *ProtocolMappersAPIService - realm string + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string clientScopeId string } @@ -872,29 +870,28 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetR /* AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet Get mappers - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } // Execute executes the request -// -// @return []ProtocolMapperRepresentation +// @return []ProtocolMapperRepresentation func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetRequest) ([]ProtocolMapperRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ProtocolMapperRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProtocolMapperRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet") @@ -965,11 +962,11 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeId } type ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteRequest struct { - ctx context.Context - ApiService *ProtocolMappersAPIService - realm string + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string clientScopeId string - id string + id string } func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteRequest) Execute() (*http.Response, error) { @@ -979,28 +976,28 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDe /* AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete Delete the mapper - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param id Mapper id - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param id Mapper id + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete(ctx context.Context, realm string, clientScopeId string, id string) ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - id: id, + id: id, } } // Execute executes the request func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete") @@ -1063,11 +1060,11 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeId } type ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetRequest struct { - ctx context.Context - ApiService *ProtocolMappersAPIService - realm string + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string clientScopeId string - id string + id string } func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetRequest) Execute() (*ProtocolMapperRepresentation, *http.Response, error) { @@ -1077,31 +1074,30 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGe /* AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet Get mapper by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param id Mapper id - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param id Mapper id + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet(ctx context.Context, realm string, clientScopeId string, id string) ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - id: id, + id: id, } } // Execute executes the request -// -// @return ProtocolMapperRepresentation +// @return ProtocolMapperRepresentation func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetRequest) (*ProtocolMapperRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProtocolMapperRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProtocolMapperRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet") @@ -1173,11 +1169,11 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeId } type ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutRequest struct { - ctx context.Context - ApiService *ProtocolMappersAPIService - realm string - clientScopeId string - id string + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string + id string protocolMapperRepresentation *ProtocolMapperRepresentation } @@ -1193,28 +1189,28 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPu /* AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut Update the mapper - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param id Mapper id - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param id Mapper id + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut(ctx context.Context, realm string, clientScopeId string, id string) ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - id: id, + id: id, } } // Execute executes the request func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut") @@ -1279,10 +1275,10 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeId } type ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostRequest struct { - ctx context.Context - ApiService *ProtocolMappersAPIService - realm string - clientScopeId string + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientScopeId string protocolMapperRepresentation *ProtocolMapperRepresentation } @@ -1298,16 +1294,16 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost /* AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost Create a mapper - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } @@ -1315,9 +1311,9 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeId // Execute executes the request func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost") @@ -1381,11 +1377,11 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeId } type ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetRequest struct { - ctx context.Context - ApiService *ProtocolMappersAPIService - realm string + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string clientScopeId string - protocol string + protocol string } func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetRequest) Execute() ([]ProtocolMapperRepresentation, *http.Response, error) { @@ -1395,31 +1391,30 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolPr /* AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet Get mappers by name for a specific protocol - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param protocol - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param protocol + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet(ctx context.Context, realm string, clientScopeId string, protocol string) ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - protocol: protocol, + protocol: protocol, } } // Execute executes the request -// -// @return []ProtocolMapperRepresentation +// @return []ProtocolMapperRepresentation func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetRequest) ([]ProtocolMapperRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ProtocolMapperRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProtocolMapperRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet") @@ -1491,10 +1486,10 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientTemplatesClientScopeId } type ApiAdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostRequest struct { - ctx context.Context - ApiService *ProtocolMappersAPIService - realm string - clientUuid string + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientUuid string protocolMapperRepresentation *[]ProtocolMapperRepresentation } @@ -1510,16 +1505,16 @@ func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostRequest) /* AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost Create multiple mappers - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostRequest { return ApiAdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } @@ -1527,9 +1522,9 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMap // Execute executes the request func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostExecute(r ApiAdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost") @@ -1593,9 +1588,9 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMap } type ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ProtocolMappersAPIService - realm string + realm string clientUuid string } @@ -1606,29 +1601,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsGetRequest) Exe /* AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet Get mappers - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsGetRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsGetRequest { return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return []ProtocolMapperRepresentation +// @return []ProtocolMapperRepresentation func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsGetExecute(r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsGetRequest) ([]ProtocolMapperRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ProtocolMapperRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProtocolMapperRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet") @@ -1699,11 +1693,11 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMap } type ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *ProtocolMappersAPIService - realm string + realm string clientUuid string - id string + id string } func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteRequest) Execute() (*http.Response, error) { @@ -1713,28 +1707,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteRequest /* AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete Delete the mapper - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param id Mapper id - @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param id Mapper id + @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete(ctx context.Context, realm string, clientUuid string, id string) ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteRequest { return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - id: id, + id: id, } } // Execute executes the request func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete") @@ -1797,11 +1791,11 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMap } type ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ProtocolMappersAPIService - realm string + realm string clientUuid string - id string + id string } func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetRequest) Execute() (*ProtocolMapperRepresentation, *http.Response, error) { @@ -1811,31 +1805,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetRequest) E /* AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet Get mapper by id - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param id Mapper id - @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param id Mapper id + @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet(ctx context.Context, realm string, clientUuid string, id string) ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetRequest { return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - id: id, + id: id, } } // Execute executes the request -// -// @return ProtocolMapperRepresentation +// @return ProtocolMapperRepresentation func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetExecute(r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetRequest) (*ProtocolMapperRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProtocolMapperRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProtocolMapperRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet") @@ -1907,11 +1900,11 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMap } type ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutRequest struct { - ctx context.Context - ApiService *ProtocolMappersAPIService - realm string - clientUuid string - id string + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientUuid string + id string protocolMapperRepresentation *ProtocolMapperRepresentation } @@ -1927,28 +1920,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutRequest) E /* AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut Update the mapper - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param id Mapper id - @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param id Mapper id + @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut(ctx context.Context, realm string, clientUuid string, id string) ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutRequest { return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - id: id, + id: id, } } // Execute executes the request func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutExecute(r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut") @@ -2013,10 +2006,10 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMap } type ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsPostRequest struct { - ctx context.Context - ApiService *ProtocolMappersAPIService - realm string - clientUuid string + ctx context.Context + ApiService *ProtocolMappersAPIService + realm string + clientUuid string protocolMapperRepresentation *ProtocolMapperRepresentation } @@ -2032,16 +2025,16 @@ func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsPostRequest) Ex /* AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost Create a mapper - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsPostRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsPostRequest { return ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } @@ -2049,9 +2042,9 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMap // Execute executes the request func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersModelsPostExecute(r ApiAdminRealmsRealmClientsClientUuidProtocolMappersModelsPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost") @@ -2115,11 +2108,11 @@ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMap } type ApiAdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ProtocolMappersAPIService - realm string + realm string clientUuid string - protocol string + protocol string } func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetRequest) Execute() ([]ProtocolMapperRepresentation, *http.Response, error) { @@ -2129,31 +2122,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetRe /* AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet Get mappers by name for a specific protocol - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param protocol - @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param protocol + @return ApiAdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetRequest */ func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet(ctx context.Context, realm string, clientUuid string, protocol string) ApiAdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetRequest { return ApiAdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - protocol: protocol, + protocol: protocol, } } // Execute executes the request -// -// @return []ProtocolMapperRepresentation +// @return []ProtocolMapperRepresentation func (a *ProtocolMappersAPIService) AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetExecute(r ApiAdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetRequest) ([]ProtocolMapperRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ProtocolMapperRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProtocolMapperRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProtocolMappersAPIService.AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet") diff --git a/api_realms_admin.go b/api_realms_admin.go index 886a9d8..5ae9467 100644 --- a/api_realms_admin.go +++ b/api_realms_admin.go @@ -16,17 +16,18 @@ import ( "io" "net/http" "net/url" + "strings" "os" "reflect" - "strings" ) + // RealmsAdminAPIService RealmsAdminAPI service type RealmsAdminAPIService service type ApiAdminRealmsGetRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService + ctx context.Context + ApiService *RealmsAdminAPIService briefRepresentation *bool } @@ -42,25 +43,24 @@ func (r ApiAdminRealmsGetRequest) Execute() ([]RealmRepresentation, *http.Respon /* AdminRealmsGet Get accessible realms Returns a list of accessible realms. The list is filtered based on what realms the caller is allowed to view. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAdminRealmsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAdminRealmsGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsGet(ctx context.Context) ApiAdminRealmsGetRequest { return ApiAdminRealmsGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RealmRepresentation +// @return []RealmRepresentation func (a *RealmsAdminAPIService) AdminRealmsGetExecute(r ApiAdminRealmsGetRequest) ([]RealmRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RealmRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RealmRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsGet") @@ -135,9 +135,9 @@ func (a *RealmsAdminAPIService) AdminRealmsGetExecute(r ApiAdminRealmsGetRequest } type ApiAdminRealmsPostRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - body *os.File + body *os.File } func (r ApiAdminRealmsPostRequest) Body(body *os.File) ApiAdminRealmsPostRequest { @@ -154,22 +154,22 @@ AdminRealmsPost Import a realm. Imports a realm from a full representation of th Realm name must be unique. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAdminRealmsPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAdminRealmsPostRequest */ func (a *RealmsAdminAPIService) AdminRealmsPost(ctx context.Context) ApiAdminRealmsPostRequest { return ApiAdminRealmsPostRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsPostExecute(r ApiAdminRealmsPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsPost") @@ -231,9 +231,9 @@ func (a *RealmsAdminAPIService) AdminRealmsPostExecute(r ApiAdminRealmsPostReque } type ApiAdminRealmsRealmAdminEventsDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string + realm string } func (r ApiAdminRealmsRealmAdminEventsDeleteRequest) Execute() (*http.Response, error) { @@ -243,24 +243,24 @@ func (r ApiAdminRealmsRealmAdminEventsDeleteRequest) Execute() (*http.Response, /* AdminRealmsRealmAdminEventsDelete Delete all admin events - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmAdminEventsDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAdminEventsDeleteRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmAdminEventsDelete(ctx context.Context, realm string) ApiAdminRealmsRealmAdminEventsDeleteRequest { return ApiAdminRealmsRealmAdminEventsDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmAdminEventsDeleteExecute(r ApiAdminRealmsRealmAdminEventsDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmAdminEventsDelete") @@ -321,20 +321,20 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmAdminEventsDeleteExecute(r ApiAd } type ApiAdminRealmsRealmAdminEventsGetRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService - realm string - authClient *string - authIpAddress *string - authRealm *string - authUser *string - dateFrom *string - dateTo *string - first *int32 - max *int32 + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + authClient *string + authIpAddress *string + authRealm *string + authUser *string + dateFrom *string + dateTo *string + first *int32 + max *int32 operationTypes *[]string - resourcePath *string - resourceTypes *[]string + resourcePath *string + resourceTypes *[]string } func (r ApiAdminRealmsRealmAdminEventsGetRequest) AuthClient(authClient string) ApiAdminRealmsRealmAdminEventsGetRequest { @@ -401,27 +401,26 @@ func (r ApiAdminRealmsRealmAdminEventsGetRequest) Execute() ([]AdminEventReprese /* AdminRealmsRealmAdminEventsGet Get admin events Returns all admin events, or filters events based on URL query parameters listed here - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmAdminEventsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmAdminEventsGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmAdminEventsGet(ctx context.Context, realm string) ApiAdminRealmsRealmAdminEventsGetRequest { return ApiAdminRealmsRealmAdminEventsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []AdminEventRepresentation +// @return []AdminEventRepresentation func (a *RealmsAdminAPIService) AdminRealmsRealmAdminEventsGetExecute(r ApiAdminRealmsRealmAdminEventsGetRequest) ([]AdminEventRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []AdminEventRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AdminEventRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmAdminEventsGet") @@ -540,10 +539,10 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmAdminEventsGetExecute(r ApiAdmin } type ApiAdminRealmsRealmClientDescriptionConverterPostRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string - body *string + realm string + body *string } func (r ApiAdminRealmsRealmClientDescriptionConverterPostRequest) Body(body string) ApiAdminRealmsRealmClientDescriptionConverterPostRequest { @@ -558,27 +557,26 @@ func (r ApiAdminRealmsRealmClientDescriptionConverterPostRequest) Execute() (*Cl /* AdminRealmsRealmClientDescriptionConverterPost Base path for importing clients under this realm. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmClientDescriptionConverterPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientDescriptionConverterPostRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmClientDescriptionConverterPost(ctx context.Context, realm string) ApiAdminRealmsRealmClientDescriptionConverterPostRequest { return ApiAdminRealmsRealmClientDescriptionConverterPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return ClientRepresentation +// @return ClientRepresentation func (a *RealmsAdminAPIService) AdminRealmsRealmClientDescriptionConverterPostExecute(r ApiAdminRealmsRealmClientDescriptionConverterPostRequest) (*ClientRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ClientRepresentation + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmClientDescriptionConverterPost") @@ -650,9 +648,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmClientDescriptionConverterPostEx } type ApiAdminRealmsRealmClientPoliciesPoliciesGetRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService - realm string + ctx context.Context + ApiService *RealmsAdminAPIService + realm string includeGlobalPolicies *bool } @@ -668,27 +666,26 @@ func (r ApiAdminRealmsRealmClientPoliciesPoliciesGetRequest) Execute() (*ClientP /* AdminRealmsRealmClientPoliciesPoliciesGet Method for AdminRealmsRealmClientPoliciesPoliciesGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmClientPoliciesPoliciesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientPoliciesPoliciesGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesPoliciesGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientPoliciesPoliciesGetRequest { return ApiAdminRealmsRealmClientPoliciesPoliciesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return ClientPoliciesRepresentation +// @return ClientPoliciesRepresentation func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesPoliciesGetExecute(r ApiAdminRealmsRealmClientPoliciesPoliciesGetRequest) (*ClientPoliciesRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ClientPoliciesRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientPoliciesRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmClientPoliciesPoliciesGet") @@ -761,9 +758,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesPoliciesGetExecute } type ApiAdminRealmsRealmClientPoliciesPoliciesPutRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService - realm string + ctx context.Context + ApiService *RealmsAdminAPIService + realm string clientPoliciesRepresentation *ClientPoliciesRepresentation } @@ -779,24 +776,24 @@ func (r ApiAdminRealmsRealmClientPoliciesPoliciesPutRequest) Execute() (*http.Re /* AdminRealmsRealmClientPoliciesPoliciesPut Method for AdminRealmsRealmClientPoliciesPoliciesPut - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmClientPoliciesPoliciesPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientPoliciesPoliciesPutRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesPoliciesPut(ctx context.Context, realm string) ApiAdminRealmsRealmClientPoliciesPoliciesPutRequest { return ApiAdminRealmsRealmClientPoliciesPoliciesPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesPoliciesPutExecute(r ApiAdminRealmsRealmClientPoliciesPoliciesPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmClientPoliciesPoliciesPut") @@ -859,9 +856,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesPoliciesPutExecute } type ApiAdminRealmsRealmClientPoliciesProfilesGetRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService - realm string + ctx context.Context + ApiService *RealmsAdminAPIService + realm string includeGlobalProfiles *bool } @@ -877,27 +874,26 @@ func (r ApiAdminRealmsRealmClientPoliciesProfilesGetRequest) Execute() (*ClientP /* AdminRealmsRealmClientPoliciesProfilesGet Method for AdminRealmsRealmClientPoliciesProfilesGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmClientPoliciesProfilesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientPoliciesProfilesGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesProfilesGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientPoliciesProfilesGetRequest { return ApiAdminRealmsRealmClientPoliciesProfilesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return ClientProfilesRepresentation +// @return ClientProfilesRepresentation func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesProfilesGetExecute(r ApiAdminRealmsRealmClientPoliciesProfilesGetRequest) (*ClientProfilesRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ClientProfilesRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientProfilesRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmClientPoliciesProfilesGet") @@ -970,9 +966,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesProfilesGetExecute } type ApiAdminRealmsRealmClientPoliciesProfilesPutRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService - realm string + ctx context.Context + ApiService *RealmsAdminAPIService + realm string clientProfilesRepresentation *ClientProfilesRepresentation } @@ -988,24 +984,24 @@ func (r ApiAdminRealmsRealmClientPoliciesProfilesPutRequest) Execute() (*http.Re /* AdminRealmsRealmClientPoliciesProfilesPut Method for AdminRealmsRealmClientPoliciesProfilesPut - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmClientPoliciesProfilesPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientPoliciesProfilesPutRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesProfilesPut(ctx context.Context, realm string) ApiAdminRealmsRealmClientPoliciesProfilesPutRequest { return ApiAdminRealmsRealmClientPoliciesProfilesPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesProfilesPutExecute(r ApiAdminRealmsRealmClientPoliciesProfilesPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmClientPoliciesProfilesPut") @@ -1068,9 +1064,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmClientPoliciesProfilesPutExecute } type ApiAdminRealmsRealmClientSessionStatsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string + realm string } func (r ApiAdminRealmsRealmClientSessionStatsGetRequest) Execute() ([]map[string]string, *http.Response, error) { @@ -1082,27 +1078,26 @@ AdminRealmsRealmClientSessionStatsGet Get client session stats Returns a JSON ma The key is the client id, the value is the number of sessions that currently are active with that client. Only clients that actually have a session associated with them will be in this map. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmClientSessionStatsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientSessionStatsGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmClientSessionStatsGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientSessionStatsGetRequest { return ApiAdminRealmsRealmClientSessionStatsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []map[string]string +// @return []map[string]string func (a *RealmsAdminAPIService) AdminRealmsRealmClientSessionStatsGetExecute(r ApiAdminRealmsRealmClientSessionStatsGetRequest) ([]map[string]string, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []map[string]string + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []map[string]string ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmClientSessionStatsGet") @@ -1172,9 +1167,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmClientSessionStatsGetExecute(r A } type ApiAdminRealmsRealmClientTypesGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string + realm string } func (r ApiAdminRealmsRealmClientTypesGetRequest) Execute() (*ClientTypesRepresentation, *http.Response, error) { @@ -1186,27 +1181,26 @@ AdminRealmsRealmClientTypesGet List all client types available in the current re This endpoint returns a list of both global and realm level client types and the attributes they set - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmClientTypesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientTypesGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmClientTypesGet(ctx context.Context, realm string) ApiAdminRealmsRealmClientTypesGetRequest { return ApiAdminRealmsRealmClientTypesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return ClientTypesRepresentation +// @return ClientTypesRepresentation func (a *RealmsAdminAPIService) AdminRealmsRealmClientTypesGetExecute(r ApiAdminRealmsRealmClientTypesGetRequest) (*ClientTypesRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ClientTypesRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClientTypesRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmClientTypesGet") @@ -1276,9 +1270,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmClientTypesGetExecute(r ApiAdmin } type ApiAdminRealmsRealmClientTypesPutRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService - realm string + ctx context.Context + ApiService *RealmsAdminAPIService + realm string clientTypesRepresentation *ClientTypesRepresentation } @@ -1296,24 +1290,24 @@ AdminRealmsRealmClientTypesPut Update a client type This endpoint allows you to update a realm level client type - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmClientTypesPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmClientTypesPutRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmClientTypesPut(ctx context.Context, realm string) ApiAdminRealmsRealmClientTypesPutRequest { return ApiAdminRealmsRealmClientTypesPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmClientTypesPutExecute(r ApiAdminRealmsRealmClientTypesPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmClientTypesPut") @@ -1376,9 +1370,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmClientTypesPutExecute(r ApiAdmin } type ApiAdminRealmsRealmCredentialRegistratorsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string + realm string } func (r ApiAdminRealmsRealmCredentialRegistratorsGetRequest) Execute() ([]string, *http.Response, error) { @@ -1388,27 +1382,26 @@ func (r ApiAdminRealmsRealmCredentialRegistratorsGetRequest) Execute() ([]string /* AdminRealmsRealmCredentialRegistratorsGet Method for AdminRealmsRealmCredentialRegistratorsGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmCredentialRegistratorsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmCredentialRegistratorsGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmCredentialRegistratorsGet(ctx context.Context, realm string) ApiAdminRealmsRealmCredentialRegistratorsGetRequest { return ApiAdminRealmsRealmCredentialRegistratorsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []string +// @return []string func (a *RealmsAdminAPIService) AdminRealmsRealmCredentialRegistratorsGetExecute(r ApiAdminRealmsRealmCredentialRegistratorsGetRequest) ([]string, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []string + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []string ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmCredentialRegistratorsGet") @@ -1478,9 +1471,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmCredentialRegistratorsGetExecute } type ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDeleteRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService - realm string + ctx context.Context + ApiService *RealmsAdminAPIService + realm string clientScopeId string } @@ -1491,16 +1484,16 @@ func (r ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDeleteRequest) /* AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDelete Method for AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDelete - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDeleteRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDelete(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDeleteRequest { return ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDeleteRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } @@ -1508,9 +1501,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultDefaultClientScopesClient // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDeleteExecute(r ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdDelete") @@ -1572,9 +1565,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultDefaultClientScopesClient } type ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPutRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService - realm string + ctx context.Context + ApiService *RealmsAdminAPIService + realm string clientScopeId string } @@ -1585,16 +1578,16 @@ func (r ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPutRequest) Ex /* AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPut Method for AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPut - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPutRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPut(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPutRequest { return ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPutRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } @@ -1602,9 +1595,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultDefaultClientScopesClient // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPutExecute(r ApiAdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultDefaultClientScopesClientScopeIdPut") @@ -1666,9 +1659,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultDefaultClientScopesClient } type ApiAdminRealmsRealmDefaultDefaultClientScopesGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string + realm string } func (r ApiAdminRealmsRealmDefaultDefaultClientScopesGetRequest) Execute() ([]ClientScopeRepresentation, *http.Response, error) { @@ -1678,27 +1671,26 @@ func (r ApiAdminRealmsRealmDefaultDefaultClientScopesGetRequest) Execute() ([]Cl /* AdminRealmsRealmDefaultDefaultClientScopesGet Get realm default client scopes. Only name and ids are returned. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmDefaultDefaultClientScopesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmDefaultDefaultClientScopesGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultDefaultClientScopesGet(ctx context.Context, realm string) ApiAdminRealmsRealmDefaultDefaultClientScopesGetRequest { return ApiAdminRealmsRealmDefaultDefaultClientScopesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []ClientScopeRepresentation +// @return []ClientScopeRepresentation func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultDefaultClientScopesGetExecute(r ApiAdminRealmsRealmDefaultDefaultClientScopesGetRequest) ([]ClientScopeRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ClientScopeRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClientScopeRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultDefaultClientScopesGet") @@ -1768,9 +1760,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultDefaultClientScopesGetExe } type ApiAdminRealmsRealmDefaultGroupsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string + realm string } func (r ApiAdminRealmsRealmDefaultGroupsGetRequest) Execute() ([]GroupRepresentation, *http.Response, error) { @@ -1780,27 +1772,26 @@ func (r ApiAdminRealmsRealmDefaultGroupsGetRequest) Execute() ([]GroupRepresenta /* AdminRealmsRealmDefaultGroupsGet Get group hierarchy. Only name and ids are returned. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmDefaultGroupsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmDefaultGroupsGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultGroupsGet(ctx context.Context, realm string) ApiAdminRealmsRealmDefaultGroupsGetRequest { return ApiAdminRealmsRealmDefaultGroupsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []GroupRepresentation +// @return []GroupRepresentation func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultGroupsGetExecute(r ApiAdminRealmsRealmDefaultGroupsGetRequest) ([]GroupRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []GroupRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []GroupRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultGroupsGet") @@ -1870,10 +1861,10 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultGroupsGetExecute(r ApiAdm } type ApiAdminRealmsRealmDefaultGroupsGroupIdDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string - groupId string + realm string + groupId string } func (r ApiAdminRealmsRealmDefaultGroupsGroupIdDeleteRequest) Execute() (*http.Response, error) { @@ -1883,26 +1874,26 @@ func (r ApiAdminRealmsRealmDefaultGroupsGroupIdDeleteRequest) Execute() (*http.R /* AdminRealmsRealmDefaultGroupsGroupIdDelete Method for AdminRealmsRealmDefaultGroupsGroupIdDelete - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @return ApiAdminRealmsRealmDefaultGroupsGroupIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmDefaultGroupsGroupIdDeleteRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultGroupsGroupIdDelete(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmDefaultGroupsGroupIdDeleteRequest { return ApiAdminRealmsRealmDefaultGroupsGroupIdDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, + ctx: ctx, + realm: realm, + groupId: groupId, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultGroupsGroupIdDeleteExecute(r ApiAdminRealmsRealmDefaultGroupsGroupIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultGroupsGroupIdDelete") @@ -1964,10 +1955,10 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultGroupsGroupIdDeleteExecut } type ApiAdminRealmsRealmDefaultGroupsGroupIdPutRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string - groupId string + realm string + groupId string } func (r ApiAdminRealmsRealmDefaultGroupsGroupIdPutRequest) Execute() (*http.Response, error) { @@ -1977,26 +1968,26 @@ func (r ApiAdminRealmsRealmDefaultGroupsGroupIdPutRequest) Execute() (*http.Resp /* AdminRealmsRealmDefaultGroupsGroupIdPut Method for AdminRealmsRealmDefaultGroupsGroupIdPut - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @return ApiAdminRealmsRealmDefaultGroupsGroupIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmDefaultGroupsGroupIdPutRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultGroupsGroupIdPut(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmDefaultGroupsGroupIdPutRequest { return ApiAdminRealmsRealmDefaultGroupsGroupIdPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, + ctx: ctx, + realm: realm, + groupId: groupId, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultGroupsGroupIdPutExecute(r ApiAdminRealmsRealmDefaultGroupsGroupIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultGroupsGroupIdPut") @@ -2058,9 +2049,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultGroupsGroupIdPutExecute(r } type ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDeleteRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService - realm string + ctx context.Context + ApiService *RealmsAdminAPIService + realm string clientScopeId string } @@ -2071,16 +2062,16 @@ func (r ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDeleteRequest /* AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDelete Method for AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDelete - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDeleteRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDelete(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDeleteRequest { return ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDeleteRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } @@ -2088,9 +2079,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultOptionalClientScopesClien // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDeleteExecute(r ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdDelete") @@ -2152,9 +2143,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultOptionalClientScopesClien } type ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPutRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService - realm string + ctx context.Context + ApiService *RealmsAdminAPIService + realm string clientScopeId string } @@ -2165,16 +2156,16 @@ func (r ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPutRequest) E /* AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPut Method for AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPut - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPutRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPut(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPutRequest { return ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPutRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } @@ -2182,9 +2173,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultOptionalClientScopesClien // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPutExecute(r ApiAdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultOptionalClientScopesClientScopeIdPut") @@ -2246,9 +2237,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultOptionalClientScopesClien } type ApiAdminRealmsRealmDefaultOptionalClientScopesGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string + realm string } func (r ApiAdminRealmsRealmDefaultOptionalClientScopesGetRequest) Execute() ([]ClientScopeRepresentation, *http.Response, error) { @@ -2258,27 +2249,26 @@ func (r ApiAdminRealmsRealmDefaultOptionalClientScopesGetRequest) Execute() ([]C /* AdminRealmsRealmDefaultOptionalClientScopesGet Get realm optional client scopes. Only name and ids are returned. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmDefaultOptionalClientScopesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmDefaultOptionalClientScopesGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultOptionalClientScopesGet(ctx context.Context, realm string) ApiAdminRealmsRealmDefaultOptionalClientScopesGetRequest { return ApiAdminRealmsRealmDefaultOptionalClientScopesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []ClientScopeRepresentation +// @return []ClientScopeRepresentation func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultOptionalClientScopesGetExecute(r ApiAdminRealmsRealmDefaultOptionalClientScopesGetRequest) ([]ClientScopeRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ClientScopeRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClientScopeRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDefaultOptionalClientScopesGet") @@ -2348,9 +2338,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmDefaultOptionalClientScopesGetEx } type ApiAdminRealmsRealmDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string + realm string } func (r ApiAdminRealmsRealmDeleteRequest) Execute() (*http.Response, error) { @@ -2360,24 +2350,24 @@ func (r ApiAdminRealmsRealmDeleteRequest) Execute() (*http.Response, error) { /* AdminRealmsRealmDelete Delete the realm - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmDeleteRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmDelete(ctx context.Context, realm string) ApiAdminRealmsRealmDeleteRequest { return ApiAdminRealmsRealmDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmDeleteExecute(r ApiAdminRealmsRealmDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmDelete") @@ -2438,9 +2428,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmDeleteExecute(r ApiAdminRealmsRe } type ApiAdminRealmsRealmEventsConfigGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string + realm string } func (r ApiAdminRealmsRealmEventsConfigGetRequest) Execute() (*RealmEventsConfigRepresentation, *http.Response, error) { @@ -2450,27 +2440,26 @@ func (r ApiAdminRealmsRealmEventsConfigGetRequest) Execute() (*RealmEventsConfig /* AdminRealmsRealmEventsConfigGet Get the events provider configuration Returns JSON object with events provider configuration - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmEventsConfigGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmEventsConfigGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmEventsConfigGet(ctx context.Context, realm string) ApiAdminRealmsRealmEventsConfigGetRequest { return ApiAdminRealmsRealmEventsConfigGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return RealmEventsConfigRepresentation +// @return RealmEventsConfigRepresentation func (a *RealmsAdminAPIService) AdminRealmsRealmEventsConfigGetExecute(r ApiAdminRealmsRealmEventsConfigGetRequest) (*RealmEventsConfigRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RealmEventsConfigRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RealmEventsConfigRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmEventsConfigGet") @@ -2540,9 +2529,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmEventsConfigGetExecute(r ApiAdmi } type ApiAdminRealmsRealmEventsConfigPutRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService - realm string + ctx context.Context + ApiService *RealmsAdminAPIService + realm string realmEventsConfigRepresentation *RealmEventsConfigRepresentation } @@ -2560,24 +2549,24 @@ AdminRealmsRealmEventsConfigPut Method for AdminRealmsRealmEventsConfigPut Update the events provider Change the events provider and/or its configuration - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmEventsConfigPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmEventsConfigPutRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmEventsConfigPut(ctx context.Context, realm string) ApiAdminRealmsRealmEventsConfigPutRequest { return ApiAdminRealmsRealmEventsConfigPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmEventsConfigPutExecute(r ApiAdminRealmsRealmEventsConfigPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmEventsConfigPut") @@ -2640,9 +2629,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmEventsConfigPutExecute(r ApiAdmi } type ApiAdminRealmsRealmEventsDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string + realm string } func (r ApiAdminRealmsRealmEventsDeleteRequest) Execute() (*http.Response, error) { @@ -2652,24 +2641,24 @@ func (r ApiAdminRealmsRealmEventsDeleteRequest) Execute() (*http.Response, error /* AdminRealmsRealmEventsDelete Delete all events - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmEventsDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmEventsDeleteRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmEventsDelete(ctx context.Context, realm string) ApiAdminRealmsRealmEventsDeleteRequest { return ApiAdminRealmsRealmEventsDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmEventsDeleteExecute(r ApiAdminRealmsRealmEventsDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmEventsDelete") @@ -2730,17 +2719,17 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmEventsDeleteExecute(r ApiAdminRe } type ApiAdminRealmsRealmEventsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string - client *string - dateFrom *string - dateTo *string - first *int32 - ipAddress *string - max *int32 - type_ *[]string - user *string + realm string + client *string + dateFrom *string + dateTo *string + first *int32 + ipAddress *string + max *int32 + type_ *[]string + user *string } // App or oauth client name @@ -2798,27 +2787,26 @@ func (r ApiAdminRealmsRealmEventsGetRequest) Execute() ([]EventRepresentation, * /* AdminRealmsRealmEventsGet Get events Returns all events, or filters them based on URL query parameters listed here - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmEventsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmEventsGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmEventsGet(ctx context.Context, realm string) ApiAdminRealmsRealmEventsGetRequest { return ApiAdminRealmsRealmEventsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []EventRepresentation +// @return []EventRepresentation func (a *RealmsAdminAPIService) AdminRealmsRealmEventsGetExecute(r ApiAdminRealmsRealmEventsGetRequest) ([]EventRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []EventRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []EventRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmEventsGet") @@ -2920,9 +2908,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmEventsGetExecute(r ApiAdminRealm } type ApiAdminRealmsRealmGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string + realm string } func (r ApiAdminRealmsRealmGetRequest) Execute() (*RealmRepresentation, *http.Response, error) { @@ -2932,27 +2920,26 @@ func (r ApiAdminRealmsRealmGetRequest) Execute() (*RealmRepresentation, *http.Re /* AdminRealmsRealmGet Get the top-level representation of the realm It will not include nested information like User and Client representations. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmGet(ctx context.Context, realm string) ApiAdminRealmsRealmGetRequest { return ApiAdminRealmsRealmGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return RealmRepresentation +// @return RealmRepresentation func (a *RealmsAdminAPIService) AdminRealmsRealmGetExecute(r ApiAdminRealmsRealmGetRequest) (*RealmRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RealmRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RealmRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmGet") @@ -3022,10 +3009,10 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmGetExecute(r ApiAdminRealmsRealm } type ApiAdminRealmsRealmGroupByPathPathGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string - path string + realm string + path string } func (r ApiAdminRealmsRealmGroupByPathPathGetRequest) Execute() (*GroupRepresentation, *http.Response, error) { @@ -3035,29 +3022,28 @@ func (r ApiAdminRealmsRealmGroupByPathPathGetRequest) Execute() (*GroupRepresent /* AdminRealmsRealmGroupByPathPathGet Method for AdminRealmsRealmGroupByPathPathGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param path - @return ApiAdminRealmsRealmGroupByPathPathGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param path + @return ApiAdminRealmsRealmGroupByPathPathGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmGroupByPathPathGet(ctx context.Context, realm string, path string) ApiAdminRealmsRealmGroupByPathPathGetRequest { return ApiAdminRealmsRealmGroupByPathPathGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - path: path, + ctx: ctx, + realm: realm, + path: path, } } // Execute executes the request -// -// @return GroupRepresentation +// @return GroupRepresentation func (a *RealmsAdminAPIService) AdminRealmsRealmGroupByPathPathGetExecute(r ApiAdminRealmsRealmGroupByPathPathGetRequest) (*GroupRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GroupRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GroupRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmGroupByPathPathGet") @@ -3128,9 +3114,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmGroupByPathPathGetExecute(r ApiA } type ApiAdminRealmsRealmLocalizationGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string + realm string } func (r ApiAdminRealmsRealmLocalizationGetRequest) Execute() ([]string, *http.Response, error) { @@ -3140,27 +3126,26 @@ func (r ApiAdminRealmsRealmLocalizationGetRequest) Execute() ([]string, *http.Re /* AdminRealmsRealmLocalizationGet Method for AdminRealmsRealmLocalizationGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmLocalizationGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmLocalizationGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationGet(ctx context.Context, realm string) ApiAdminRealmsRealmLocalizationGetRequest { return ApiAdminRealmsRealmLocalizationGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []string +// @return []string func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationGetExecute(r ApiAdminRealmsRealmLocalizationGetRequest) ([]string, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []string + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []string ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmLocalizationGet") @@ -3230,10 +3215,10 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationGetExecute(r ApiAdmi } type ApiAdminRealmsRealmLocalizationLocaleDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string - locale string + realm string + locale string } func (r ApiAdminRealmsRealmLocalizationLocaleDeleteRequest) Execute() (*http.Response, error) { @@ -3243,26 +3228,26 @@ func (r ApiAdminRealmsRealmLocalizationLocaleDeleteRequest) Execute() (*http.Res /* AdminRealmsRealmLocalizationLocaleDelete Method for AdminRealmsRealmLocalizationLocaleDelete - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param locale - @return ApiAdminRealmsRealmLocalizationLocaleDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param locale + @return ApiAdminRealmsRealmLocalizationLocaleDeleteRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleDelete(ctx context.Context, realm string, locale string) ApiAdminRealmsRealmLocalizationLocaleDeleteRequest { return ApiAdminRealmsRealmLocalizationLocaleDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - locale: locale, + ctx: ctx, + realm: realm, + locale: locale, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleDeleteExecute(r ApiAdminRealmsRealmLocalizationLocaleDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmLocalizationLocaleDelete") @@ -3324,10 +3309,10 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleDeleteExecute( } type ApiAdminRealmsRealmLocalizationLocaleGetRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService - realm string - locale string + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + locale string useRealmDefaultLocaleFallback *bool } @@ -3344,29 +3329,28 @@ func (r ApiAdminRealmsRealmLocalizationLocaleGetRequest) Execute() (map[string]s /* AdminRealmsRealmLocalizationLocaleGet Method for AdminRealmsRealmLocalizationLocaleGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param locale - @return ApiAdminRealmsRealmLocalizationLocaleGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param locale + @return ApiAdminRealmsRealmLocalizationLocaleGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleGet(ctx context.Context, realm string, locale string) ApiAdminRealmsRealmLocalizationLocaleGetRequest { return ApiAdminRealmsRealmLocalizationLocaleGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - locale: locale, + ctx: ctx, + realm: realm, + locale: locale, } } // Execute executes the request -// -// @return map[string]string +// @return map[string]string func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleGetExecute(r ApiAdminRealmsRealmLocalizationLocaleGetRequest) (map[string]string, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]string + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]string ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmLocalizationLocaleGet") @@ -3440,11 +3424,11 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleGetExecute(r A } type ApiAdminRealmsRealmLocalizationLocaleKeyDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string - key string - locale string + realm string + key string + locale string } func (r ApiAdminRealmsRealmLocalizationLocaleKeyDeleteRequest) Execute() (*http.Response, error) { @@ -3454,28 +3438,28 @@ func (r ApiAdminRealmsRealmLocalizationLocaleKeyDeleteRequest) Execute() (*http. /* AdminRealmsRealmLocalizationLocaleKeyDelete Method for AdminRealmsRealmLocalizationLocaleKeyDelete - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param key - @param locale - @return ApiAdminRealmsRealmLocalizationLocaleKeyDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param key + @param locale + @return ApiAdminRealmsRealmLocalizationLocaleKeyDeleteRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleKeyDelete(ctx context.Context, realm string, key string, locale string) ApiAdminRealmsRealmLocalizationLocaleKeyDeleteRequest { return ApiAdminRealmsRealmLocalizationLocaleKeyDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - key: key, - locale: locale, + ctx: ctx, + realm: realm, + key: key, + locale: locale, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleKeyDeleteExecute(r ApiAdminRealmsRealmLocalizationLocaleKeyDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmLocalizationLocaleKeyDelete") @@ -3538,11 +3522,11 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleKeyDeleteExecu } type ApiAdminRealmsRealmLocalizationLocaleKeyGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string - key string - locale string + realm string + key string + locale string } func (r ApiAdminRealmsRealmLocalizationLocaleKeyGetRequest) Execute() (string, *http.Response, error) { @@ -3552,31 +3536,30 @@ func (r ApiAdminRealmsRealmLocalizationLocaleKeyGetRequest) Execute() (string, * /* AdminRealmsRealmLocalizationLocaleKeyGet Method for AdminRealmsRealmLocalizationLocaleKeyGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param key - @param locale - @return ApiAdminRealmsRealmLocalizationLocaleKeyGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param key + @param locale + @return ApiAdminRealmsRealmLocalizationLocaleKeyGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleKeyGet(ctx context.Context, realm string, key string, locale string) ApiAdminRealmsRealmLocalizationLocaleKeyGetRequest { return ApiAdminRealmsRealmLocalizationLocaleKeyGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - key: key, - locale: locale, + ctx: ctx, + realm: realm, + key: key, + locale: locale, } } // Execute executes the request -// -// @return string +// @return string func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleKeyGetExecute(r ApiAdminRealmsRealmLocalizationLocaleKeyGetRequest) (string, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue string + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmLocalizationLocaleKeyGet") @@ -3648,12 +3631,12 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleKeyGetExecute( } type ApiAdminRealmsRealmLocalizationLocaleKeyPutRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string - key string - locale string - body *string + realm string + key string + locale string + body *string } func (r ApiAdminRealmsRealmLocalizationLocaleKeyPutRequest) Body(body string) ApiAdminRealmsRealmLocalizationLocaleKeyPutRequest { @@ -3668,28 +3651,28 @@ func (r ApiAdminRealmsRealmLocalizationLocaleKeyPutRequest) Execute() (*http.Res /* AdminRealmsRealmLocalizationLocaleKeyPut Method for AdminRealmsRealmLocalizationLocaleKeyPut - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param key - @param locale - @return ApiAdminRealmsRealmLocalizationLocaleKeyPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param key + @param locale + @return ApiAdminRealmsRealmLocalizationLocaleKeyPutRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleKeyPut(ctx context.Context, realm string, key string, locale string) ApiAdminRealmsRealmLocalizationLocaleKeyPutRequest { return ApiAdminRealmsRealmLocalizationLocaleKeyPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - key: key, - locale: locale, + ctx: ctx, + realm: realm, + key: key, + locale: locale, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleKeyPutExecute(r ApiAdminRealmsRealmLocalizationLocaleKeyPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmLocalizationLocaleKeyPut") @@ -3754,10 +3737,10 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocaleKeyPutExecute( } type ApiAdminRealmsRealmLocalizationLocalePostRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService - realm string - locale string + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + locale string requestBody *map[string]string } @@ -3773,26 +3756,26 @@ func (r ApiAdminRealmsRealmLocalizationLocalePostRequest) Execute() (*http.Respo /* AdminRealmsRealmLocalizationLocalePost Import localization from uploaded JSON file - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param locale - @return ApiAdminRealmsRealmLocalizationLocalePostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param locale + @return ApiAdminRealmsRealmLocalizationLocalePostRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocalePost(ctx context.Context, realm string, locale string) ApiAdminRealmsRealmLocalizationLocalePostRequest { return ApiAdminRealmsRealmLocalizationLocalePostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - locale: locale, + ctx: ctx, + realm: realm, + locale: locale, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocalePostExecute(r ApiAdminRealmsRealmLocalizationLocalePostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmLocalizationLocalePost") @@ -3856,9 +3839,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmLocalizationLocalePostExecute(r } type ApiAdminRealmsRealmLogoutAllPostRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string + realm string } func (r ApiAdminRealmsRealmLogoutAllPostRequest) Execute() (*GlobalRequestResult, *http.Response, error) { @@ -3870,27 +3853,26 @@ AdminRealmsRealmLogoutAllPost Removes all user sessions. Any client that has an admin url will also be told to invalidate any sessions they have. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmLogoutAllPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmLogoutAllPostRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmLogoutAllPost(ctx context.Context, realm string) ApiAdminRealmsRealmLogoutAllPostRequest { return ApiAdminRealmsRealmLogoutAllPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return GlobalRequestResult +// @return GlobalRequestResult func (a *RealmsAdminAPIService) AdminRealmsRealmLogoutAllPostExecute(r ApiAdminRealmsRealmLogoutAllPostRequest) (*GlobalRequestResult, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GlobalRequestResult + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GlobalRequestResult ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmLogoutAllPost") @@ -3960,10 +3942,10 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmLogoutAllPostExecute(r ApiAdminR } type ApiAdminRealmsRealmPartialExportPostRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService - realm string - exportClients *bool + ctx context.Context + ApiService *RealmsAdminAPIService + realm string + exportClients *bool exportGroupsAndRoles *bool } @@ -3984,24 +3966,24 @@ func (r ApiAdminRealmsRealmPartialExportPostRequest) Execute() (*http.Response, /* AdminRealmsRealmPartialExportPost Partial export of existing realm into a JSON file. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmPartialExportPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmPartialExportPostRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmPartialExportPost(ctx context.Context, realm string) ApiAdminRealmsRealmPartialExportPostRequest { return ApiAdminRealmsRealmPartialExportPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmPartialExportPostExecute(r ApiAdminRealmsRealmPartialExportPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmPartialExportPost") @@ -4068,10 +4050,10 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmPartialExportPostExecute(r ApiAd } type ApiAdminRealmsRealmPartialImportPostRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string - body *os.File + realm string + body *os.File } func (r ApiAdminRealmsRealmPartialImportPostRequest) Body(body *os.File) ApiAdminRealmsRealmPartialImportPostRequest { @@ -4086,24 +4068,24 @@ func (r ApiAdminRealmsRealmPartialImportPostRequest) Execute() (*http.Response, /* AdminRealmsRealmPartialImportPost Partial import from a JSON file to an existing realm. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmPartialImportPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmPartialImportPostRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmPartialImportPost(ctx context.Context, realm string) ApiAdminRealmsRealmPartialImportPostRequest { return ApiAdminRealmsRealmPartialImportPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmPartialImportPostExecute(r ApiAdminRealmsRealmPartialImportPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmPartialImportPost") @@ -4166,9 +4148,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmPartialImportPostExecute(r ApiAd } type ApiAdminRealmsRealmPushRevocationPostRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string + realm string } func (r ApiAdminRealmsRealmPushRevocationPostRequest) Execute() (*GlobalRequestResult, *http.Response, error) { @@ -4178,27 +4160,26 @@ func (r ApiAdminRealmsRealmPushRevocationPostRequest) Execute() (*GlobalRequestR /* AdminRealmsRealmPushRevocationPost Push the realm's revocation policy to any client that has an admin url associated with it. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmPushRevocationPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmPushRevocationPostRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmPushRevocationPost(ctx context.Context, realm string) ApiAdminRealmsRealmPushRevocationPostRequest { return ApiAdminRealmsRealmPushRevocationPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return GlobalRequestResult +// @return GlobalRequestResult func (a *RealmsAdminAPIService) AdminRealmsRealmPushRevocationPostExecute(r ApiAdminRealmsRealmPushRevocationPostRequest) (*GlobalRequestResult, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GlobalRequestResult + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GlobalRequestResult ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmPushRevocationPost") @@ -4268,9 +4249,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmPushRevocationPostExecute(r ApiA } type ApiAdminRealmsRealmPutRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService - realm string + ctx context.Context + ApiService *RealmsAdminAPIService + realm string realmRepresentation *RealmRepresentation } @@ -4288,24 +4269,24 @@ AdminRealmsRealmPut Update the top-level information of the realm Any user, role This will only update top-level attributes of the realm. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmPutRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmPut(ctx context.Context, realm string) ApiAdminRealmsRealmPutRequest { return ApiAdminRealmsRealmPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmPutExecute(r ApiAdminRealmsRealmPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmPut") @@ -4368,11 +4349,11 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmPutExecute(r ApiAdminRealmsRealm } type ApiAdminRealmsRealmSessionsSessionDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string - session string - isOffline *bool + realm string + session string + isOffline *bool } func (r ApiAdminRealmsRealmSessionsSessionDeleteRequest) IsOffline(isOffline bool) ApiAdminRealmsRealmSessionsSessionDeleteRequest { @@ -4389,26 +4370,26 @@ AdminRealmsRealmSessionsSessionDelete Remove a specific user session. Any client that has an admin url will also be told to invalidate this particular session. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param session - @return ApiAdminRealmsRealmSessionsSessionDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param session + @return ApiAdminRealmsRealmSessionsSessionDeleteRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmSessionsSessionDelete(ctx context.Context, realm string, session string) ApiAdminRealmsRealmSessionsSessionDeleteRequest { return ApiAdminRealmsRealmSessionsSessionDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - session: session, + ctx: ctx, + realm: realm, + session: session, } } // Execute executes the request func (a *RealmsAdminAPIService) AdminRealmsRealmSessionsSessionDeleteExecute(r ApiAdminRealmsRealmSessionsSessionDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmSessionsSessionDelete") @@ -4476,9 +4457,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmSessionsSessionDeleteExecute(r A } type ApiAdminRealmsRealmTestSMTPConnectionPostRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService - realm string + ctx context.Context + ApiService *RealmsAdminAPIService + realm string requestBody *map[string]string } @@ -4494,17 +4475,17 @@ func (r ApiAdminRealmsRealmTestSMTPConnectionPostRequest) Execute() (*http.Respo /* AdminRealmsRealmTestSMTPConnectionPost Test SMTP connection with current logged in user - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmTestSMTPConnectionPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmTestSMTPConnectionPostRequest Deprecated */ func (a *RealmsAdminAPIService) AdminRealmsRealmTestSMTPConnectionPost(ctx context.Context, realm string) ApiAdminRealmsRealmTestSMTPConnectionPostRequest { return ApiAdminRealmsRealmTestSMTPConnectionPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } @@ -4512,9 +4493,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmTestSMTPConnectionPost(ctx conte // Deprecated func (a *RealmsAdminAPIService) AdminRealmsRealmTestSMTPConnectionPostExecute(r ApiAdminRealmsRealmTestSMTPConnectionPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmTestSMTPConnectionPost") @@ -4577,9 +4558,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmTestSMTPConnectionPostExecute(r } type ApiAdminRealmsRealmUsersManagementPermissionsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RealmsAdminAPIService - realm string + realm string } func (r ApiAdminRealmsRealmUsersManagementPermissionsGetRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { @@ -4589,27 +4570,26 @@ func (r ApiAdminRealmsRealmUsersManagementPermissionsGetRequest) Execute() (*Man /* AdminRealmsRealmUsersManagementPermissionsGet Method for AdminRealmsRealmUsersManagementPermissionsGet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmUsersManagementPermissionsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmUsersManagementPermissionsGetRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmUsersManagementPermissionsGet(ctx context.Context, realm string) ApiAdminRealmsRealmUsersManagementPermissionsGetRequest { return ApiAdminRealmsRealmUsersManagementPermissionsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return ManagementPermissionReference +// @return ManagementPermissionReference func (a *RealmsAdminAPIService) AdminRealmsRealmUsersManagementPermissionsGetExecute(r ApiAdminRealmsRealmUsersManagementPermissionsGetRequest) (*ManagementPermissionReference, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ManagementPermissionReference + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmUsersManagementPermissionsGet") @@ -4679,9 +4659,9 @@ func (a *RealmsAdminAPIService) AdminRealmsRealmUsersManagementPermissionsGetExe } type ApiAdminRealmsRealmUsersManagementPermissionsPutRequest struct { - ctx context.Context - ApiService *RealmsAdminAPIService - realm string + ctx context.Context + ApiService *RealmsAdminAPIService + realm string managementPermissionReference *ManagementPermissionReference } @@ -4697,27 +4677,26 @@ func (r ApiAdminRealmsRealmUsersManagementPermissionsPutRequest) Execute() (*Man /* AdminRealmsRealmUsersManagementPermissionsPut Method for AdminRealmsRealmUsersManagementPermissionsPut - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmUsersManagementPermissionsPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmUsersManagementPermissionsPutRequest */ func (a *RealmsAdminAPIService) AdminRealmsRealmUsersManagementPermissionsPut(ctx context.Context, realm string) ApiAdminRealmsRealmUsersManagementPermissionsPutRequest { return ApiAdminRealmsRealmUsersManagementPermissionsPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return ManagementPermissionReference +// @return ManagementPermissionReference func (a *RealmsAdminAPIService) AdminRealmsRealmUsersManagementPermissionsPutExecute(r ApiAdminRealmsRealmUsersManagementPermissionsPutRequest) (*ManagementPermissionReference, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ManagementPermissionReference + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealmsAdminAPIService.AdminRealmsRealmUsersManagementPermissionsPut") diff --git a/api_role_mapper.go b/api_role_mapper.go index fb7191e..58ee9f8 100644 --- a/api_role_mapper.go +++ b/api_role_mapper.go @@ -19,14 +19,15 @@ import ( "strings" ) + // RoleMapperAPIService RoleMapperAPI service type RoleMapperAPIService service type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RoleMapperAPIService - realm string - groupId string + realm string + groupId string } func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsGetRequest) Execute() (*MappingsRepresentation, *http.Response, error) { @@ -36,29 +37,28 @@ func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsGetRequest) Execute() (*Mapp /* AdminRealmsRealmGroupsGroupIdRoleMappingsGet Get role mappings - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsGetRequest */ func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsGet(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsGetRequest { return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, + ctx: ctx, + realm: realm, + groupId: groupId, } } // Execute executes the request -// -// @return MappingsRepresentation +// @return MappingsRepresentation func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsGetExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsGetRequest) (*MappingsRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *MappingsRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MappingsRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsGet") @@ -129,10 +129,10 @@ func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsGetExecu } type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RoleMapperAPIService - realm string - groupId string + realm string + groupId string } func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -142,29 +142,28 @@ func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetRequest) Ex /* AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGet Get realm-level roles that can be mapped - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetRequest */ func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGet(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetRequest { return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, + ctx: ctx, + realm: realm, + groupId: groupId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAvailableGet") @@ -235,10 +234,10 @@ func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmAva } type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetRequest struct { - ctx context.Context - ApiService *RoleMapperAPIService - realm string - groupId string + ctx context.Context + ApiService *RoleMapperAPIService + realm string + groupId string briefRepresentation *bool } @@ -255,29 +254,28 @@ func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetRequest) Ex /* AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGet Get effective realm-level role mappings This will recurse all composite roles to get the result. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetRequest */ func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGet(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetRequest { return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, + ctx: ctx, + realm: realm, + groupId: groupId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCompositeGet") @@ -354,10 +352,10 @@ func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmCom } type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteRequest struct { - ctx context.Context - ApiService *RoleMapperAPIService - realm string - groupId string + ctx context.Context + ApiService *RoleMapperAPIService + realm string + groupId string roleRepresentation *[]RoleRepresentation } @@ -373,26 +371,26 @@ func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteRequest) Execute( /* AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDelete Delete realm-level role mappings - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteRequest */ func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDelete(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteRequest { return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, + ctx: ctx, + realm: realm, + groupId: groupId, } } // Execute executes the request func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDelete") @@ -456,10 +454,10 @@ func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmDel } type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RoleMapperAPIService - realm string - groupId string + realm string + groupId string } func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -469,29 +467,28 @@ func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetRequest) Execute() ( /* AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet Get realm-level role mappings - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetRequest */ func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetRequest { return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, + ctx: ctx, + realm: realm, + groupId: groupId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet") @@ -562,10 +559,10 @@ func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmGet } type ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostRequest struct { - ctx context.Context - ApiService *RoleMapperAPIService - realm string - groupId string + ctx context.Context + ApiService *RoleMapperAPIService + realm string + groupId string roleRepresentation *[]RoleRepresentation } @@ -581,26 +578,26 @@ func (r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostRequest) Execute() /* AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPost Add realm-level role mappings to the user - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param groupId - @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param groupId + @return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostRequest */ func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPost(ctx context.Context, realm string, groupId string) ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostRequest { return ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - groupId: groupId, + ctx: ctx, + realm: realm, + groupId: groupId, } } // Execute executes the request func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostExecute(r ApiAdminRealmsRealmGroupsGroupIdRoleMappingsRealmPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPost") @@ -664,10 +661,10 @@ func (a *RoleMapperAPIService) AdminRealmsRealmGroupsGroupIdRoleMappingsRealmPos } type ApiAdminRealmsRealmUsersUserIdRoleMappingsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RoleMapperAPIService - realm string - userId string + realm string + userId string } func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsGetRequest) Execute() (*MappingsRepresentation, *http.Response, error) { @@ -677,29 +674,28 @@ func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsGetRequest) Execute() (*Mappin /* AdminRealmsRealmUsersUserIdRoleMappingsGet Get role mappings - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param userId - @return ApiAdminRealmsRealmUsersUserIdRoleMappingsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsGetRequest */ func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsGetRequest { return ApiAdminRealmsRealmUsersUserIdRoleMappingsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - userId: userId, + ctx: ctx, + realm: realm, + userId: userId, } } // Execute executes the request -// -// @return MappingsRepresentation +// @return MappingsRepresentation func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsGetExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsGetRequest) (*MappingsRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *MappingsRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MappingsRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmUsersUserIdRoleMappingsGet") @@ -770,10 +766,10 @@ func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsGetExecute } type ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RoleMapperAPIService - realm string - userId string + realm string + userId string } func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -783,29 +779,28 @@ func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetRequest) Exec /* AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGet Get realm-level roles that can be mapped - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param userId - @return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetRequest */ func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetRequest { return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - userId: userId, + ctx: ctx, + realm: realm, + userId: userId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmUsersUserIdRoleMappingsRealmAvailableGet") @@ -876,10 +871,10 @@ func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmAvail } type ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetRequest struct { - ctx context.Context - ApiService *RoleMapperAPIService - realm string - userId string + ctx context.Context + ApiService *RoleMapperAPIService + realm string + userId string briefRepresentation *bool } @@ -896,29 +891,28 @@ func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetRequest) Exec /* AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGet Get effective realm-level role mappings This will recurse all composite roles to get the result. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param userId - @return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetRequest */ func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetRequest { return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - userId: userId, + ctx: ctx, + realm: realm, + userId: userId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmUsersUserIdRoleMappingsRealmCompositeGet") @@ -995,10 +989,10 @@ func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmCompo } type ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteRequest struct { - ctx context.Context - ApiService *RoleMapperAPIService - realm string - userId string + ctx context.Context + ApiService *RoleMapperAPIService + realm string + userId string roleRepresentation *[]RoleRepresentation } @@ -1014,26 +1008,26 @@ func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteRequest) Execute() /* AdminRealmsRealmUsersUserIdRoleMappingsRealmDelete Delete realm-level role mappings - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param userId - @return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteRequest */ func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmDelete(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteRequest { return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - userId: userId, + ctx: ctx, + realm: realm, + userId: userId, } } // Execute executes the request func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmUsersUserIdRoleMappingsRealmDelete") @@ -1097,10 +1091,10 @@ func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmDelet } type ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RoleMapperAPIService - realm string - userId string + realm string + userId string } func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -1110,29 +1104,28 @@ func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmGetRequest) Execute() ([] /* AdminRealmsRealmUsersUserIdRoleMappingsRealmGet Get realm-level role mappings - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param userId - @return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmGetRequest */ func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmGetRequest { return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - userId: userId, + ctx: ctx, + realm: realm, + userId: userId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmGetExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmUsersUserIdRoleMappingsRealmGet") @@ -1203,10 +1196,10 @@ func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmGetEx } type ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmPostRequest struct { - ctx context.Context - ApiService *RoleMapperAPIService - realm string - userId string + ctx context.Context + ApiService *RoleMapperAPIService + realm string + userId string roleRepresentation *[]RoleRepresentation } @@ -1222,26 +1215,26 @@ func (r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmPostRequest) Execute() (* /* AdminRealmsRealmUsersUserIdRoleMappingsRealmPost Add realm-level role mappings to the user - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param userId - @return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param userId + @return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmPostRequest */ func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmPost(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmPostRequest { return ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - userId: userId, + ctx: ctx, + realm: realm, + userId: userId, } } // Execute executes the request func (a *RoleMapperAPIService) AdminRealmsRealmUsersUserIdRoleMappingsRealmPostExecute(r ApiAdminRealmsRealmUsersUserIdRoleMappingsRealmPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleMapperAPIService.AdminRealmsRealmUsersUserIdRoleMappingsRealmPost") diff --git a/api_roles.go b/api_roles.go index 6d20399..7438993 100644 --- a/api_roles.go +++ b/api_roles.go @@ -19,18 +19,19 @@ import ( "strings" ) + // RolesAPIService RolesAPI service type RolesAPIService service type ApiAdminRealmsRealmClientsClientUuidRolesGetRequest struct { - ctx context.Context - ApiService *RolesAPIService - realm string - clientUuid string + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string briefRepresentation *bool - first *int32 - max *int32 - search *string + first *int32 + max *int32 + search *string } func (r ApiAdminRealmsRealmClientsClientUuidRolesGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmClientsClientUuidRolesGetRequest { @@ -60,29 +61,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidRolesGetRequest) Execute() ([]RoleRe /* AdminRealmsRealmClientsClientUuidRolesGet Get all roles for the realm or client - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidRolesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesGetRequest */ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidRolesGetRequest { return ApiAdminRealmsRealmClientsClientUuidRolesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesGetExecute(r ApiAdminRealmsRealmClientsClientUuidRolesGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesGet") @@ -171,10 +171,10 @@ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesGetExecute(r Api } type ApiAdminRealmsRealmClientsClientUuidRolesPostRequest struct { - ctx context.Context - ApiService *RolesAPIService - realm string - clientUuid string + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string roleRepresentation *RoleRepresentation } @@ -190,16 +190,16 @@ func (r ApiAdminRealmsRealmClientsClientUuidRolesPostRequest) Execute() (*http.R /* AdminRealmsRealmClientsClientUuidRolesPost Create a new role for the realm or client - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidRolesPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesPostRequest */ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidRolesPostRequest { return ApiAdminRealmsRealmClientsClientUuidRolesPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } @@ -207,9 +207,9 @@ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesPost(ctx context // Execute executes the request func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesPostExecute(r ApiAdminRealmsRealmClientsClientUuidRolesPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesPost") @@ -273,11 +273,11 @@ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesPostExecute(r Ap } type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGetRequest struct { - ctx context.Context - ApiService *RolesAPIService - realm string - clientUuid string - roleName string + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string clientInCompositeUuid string } @@ -288,33 +288,32 @@ func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClient /* AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGet Get client-level roles for the client that are in the role's composite - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid - @param roleName role's name (not id!) - @param clientInCompositeUuid - @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid + @param roleName role's name (not id!) + @param clientInCompositeUuid + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGetRequest */ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGet(ctx context.Context, realm string, clientUuid string, roleName string, clientInCompositeUuid string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGetRequest { return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, - clientUuid: clientUuid, - roleName: roleName, + ApiService: a, + ctx: ctx, + realm: realm, + clientUuid: clientUuid, + roleName: roleName, clientInCompositeUuid: clientInCompositeUuid, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGetExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesClientsClientInCompositeUuidGet") @@ -387,11 +386,11 @@ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameComposit } type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteRequest struct { - ctx context.Context - ApiService *RolesAPIService - realm string - clientUuid string - roleName string + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string roleRepresentation *[]RoleRepresentation } @@ -407,28 +406,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteRequest /* AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDelete Remove roles from the role's composite - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param roleName role's name (not id!) - @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteRequest */ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDelete(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteRequest { return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - roleName: roleName, + roleName: roleName, } } // Execute executes the request func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesDelete") @@ -493,11 +492,11 @@ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameComposit } type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RolesAPIService - realm string + realm string clientUuid string - roleName string + roleName string } func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -507,31 +506,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetRequest) E /* AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGet Get composites of the role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param roleName role's name (not id!) - @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetRequest */ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGet(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetRequest { return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - roleName: roleName, + roleName: roleName, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesGet") @@ -603,11 +601,11 @@ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameComposit } type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostRequest struct { - ctx context.Context - ApiService *RolesAPIService - realm string - clientUuid string - roleName string + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string roleRepresentation *[]RoleRepresentation } @@ -623,28 +621,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostRequest) /* AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPost Add a composite to the role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param roleName role's name (not id!) - @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostRequest */ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPost(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostRequest { return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - roleName: roleName, + roleName: roleName, } } // Execute executes the request func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesPost") @@ -709,11 +707,11 @@ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameComposit } type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RolesAPIService - realm string + realm string clientUuid string - roleName string + roleName string } func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -723,31 +721,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetReque /* AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGet Get realm-level roles of the role's composite - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param roleName role's name (not id!) - @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetRequest */ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGet(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetRequest { return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - roleName: roleName, + roleName: roleName, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameCompositesRealmGet") @@ -819,11 +816,11 @@ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameComposit } type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *RolesAPIService - realm string + realm string clientUuid string - roleName string + roleName string } func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameDeleteRequest) Execute() (*http.Response, error) { @@ -833,28 +830,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameDeleteRequest) Execute( /* AdminRealmsRealmClientsClientUuidRolesRoleNameDelete Delete a role by name - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param roleName role's name (not id!) - @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameDeleteRequest */ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameDelete(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameDeleteRequest { return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - roleName: roleName, + roleName: roleName, } } // Execute executes the request func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameDelete") @@ -917,11 +914,11 @@ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameDeleteEx } type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RolesAPIService - realm string + realm string clientUuid string - roleName string + roleName string } func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGetRequest) Execute() (*RoleRepresentation, *http.Response, error) { @@ -931,31 +928,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGetRequest) Execute() ( /* AdminRealmsRealmClientsClientUuidRolesRoleNameGet Get a role by name - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param roleName role's name (not id!) - @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGetRequest */ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameGet(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGetRequest { return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - roleName: roleName, + roleName: roleName, } } // Execute executes the request -// -// @return RoleRepresentation +// @return RoleRepresentation func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameGetExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGetRequest) (*RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameGet") @@ -1027,14 +1023,14 @@ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameGetExecu } type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest struct { - ctx context.Context - ApiService *RolesAPIService - realm string - clientUuid string - roleName string + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string briefRepresentation *bool - first *int32 - max *int32 + first *int32 + max *int32 } // if false, return a full representation of the {@code GroupRepresentation} objects. @@ -1062,31 +1058,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest) Execu /* AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGet Returns a stream of groups that have the specified role name - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param roleName the role name. - @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName the role name. + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest */ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGet(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest { return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - roleName: roleName, + roleName: roleName, } } // Execute executes the request -// -// @return []GroupRepresentation +// @return []GroupRepresentation func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGetRequest) ([]GroupRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []GroupRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []GroupRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGet") @@ -1170,11 +1165,11 @@ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameGroupsGe } type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RolesAPIService - realm string + realm string clientUuid string - roleName string + roleName string } func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGetRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { @@ -1184,31 +1179,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGe /* AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGet Return object stating whether role Authorization permissions have been initialized or not and a reference - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param roleName - @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGetRequest */ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGet(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGetRequest { return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - roleName: roleName, + roleName: roleName, } } // Execute executes the request -// -// @return ManagementPermissionReference +// @return ManagementPermissionReference func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGetExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGetRequest) (*ManagementPermissionReference, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ManagementPermissionReference + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsGet") @@ -1280,11 +1274,11 @@ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameManageme } type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutRequest struct { - ctx context.Context - ApiService *RolesAPIService - realm string - clientUuid string - roleName string + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string managementPermissionReference *ManagementPermissionReference } @@ -1300,31 +1294,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPu /* AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPut Return object stating whether role Authorization permissions have been initialized or not and a reference - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param roleName - @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutRequest */ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPut(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutRequest { return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - roleName: roleName, + roleName: roleName, } } // Execute executes the request -// -// @return ManagementPermissionReference +// @return ManagementPermissionReference func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPutRequest) (*ManagementPermissionReference, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ManagementPermissionReference + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameManagementPermissionsPut") @@ -1398,11 +1391,11 @@ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameManageme } type ApiAdminRealmsRealmClientsClientUuidRolesRoleNamePutRequest struct { - ctx context.Context - ApiService *RolesAPIService - realm string - clientUuid string - roleName string + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string roleRepresentation *RoleRepresentation } @@ -1418,28 +1411,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNamePutRequest) Execute() ( /* AdminRealmsRealmClientsClientUuidRolesRoleNamePut Update a role by name - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param roleName role's name (not id!) - @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNamePutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNamePutRequest */ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNamePut(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNamePutRequest { return ApiAdminRealmsRealmClientsClientUuidRolesRoleNamePutRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - roleName: roleName, + roleName: roleName, } } // Execute executes the request func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNamePutExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNamePutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNamePut") @@ -1504,14 +1497,14 @@ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNamePutExecu } type ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest struct { - ctx context.Context - ApiService *RolesAPIService - realm string - clientUuid string - roleName string + ctx context.Context + ApiService *RolesAPIService + realm string + clientUuid string + roleName string briefRepresentation *bool - first *int32 - max *int32 + first *int32 + max *int32 } // Boolean which defines whether brief representations are returned (default: false) @@ -1539,31 +1532,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest) Execut /* AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet Returns a stream of users that have the specified role name. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param roleName the role name. - @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param roleName the role name. + @return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest */ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest { return ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - roleName: roleName, + roleName: roleName, } } // Execute executes the request -// -// @return []UserRepresentation +// @return []UserRepresentation func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetExecute(r ApiAdminRealmsRealmClientsClientUuidRolesRoleNameUsersGetRequest) ([]UserRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []UserRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []UserRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet") @@ -1644,13 +1636,13 @@ func (a *RolesAPIService) AdminRealmsRealmClientsClientUuidRolesRoleNameUsersGet } type ApiAdminRealmsRealmRolesGetRequest struct { - ctx context.Context - ApiService *RolesAPIService - realm string + ctx context.Context + ApiService *RolesAPIService + realm string briefRepresentation *bool - first *int32 - max *int32 - search *string + first *int32 + max *int32 + search *string } func (r ApiAdminRealmsRealmRolesGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmRolesGetRequest { @@ -1680,27 +1672,26 @@ func (r ApiAdminRealmsRealmRolesGetRequest) Execute() ([]RoleRepresentation, *ht /* AdminRealmsRealmRolesGet Get all roles for the realm or client - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmRolesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmRolesGetRequest */ func (a *RolesAPIService) AdminRealmsRealmRolesGet(ctx context.Context, realm string) ApiAdminRealmsRealmRolesGetRequest { return ApiAdminRealmsRealmRolesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *RolesAPIService) AdminRealmsRealmRolesGetExecute(r ApiAdminRealmsRealmRolesGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesGet") @@ -1788,9 +1779,9 @@ func (a *RolesAPIService) AdminRealmsRealmRolesGetExecute(r ApiAdminRealmsRealmR } type ApiAdminRealmsRealmRolesPostRequest struct { - ctx context.Context - ApiService *RolesAPIService - realm string + ctx context.Context + ApiService *RolesAPIService + realm string roleRepresentation *RoleRepresentation } @@ -1806,24 +1797,24 @@ func (r ApiAdminRealmsRealmRolesPostRequest) Execute() (*http.Response, error) { /* AdminRealmsRealmRolesPost Create a new role for the realm or client - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @return ApiAdminRealmsRealmRolesPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @return ApiAdminRealmsRealmRolesPostRequest */ func (a *RolesAPIService) AdminRealmsRealmRolesPost(ctx context.Context, realm string) ApiAdminRealmsRealmRolesPostRequest { return ApiAdminRealmsRealmRolesPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, } } // Execute executes the request func (a *RolesAPIService) AdminRealmsRealmRolesPostExecute(r ApiAdminRealmsRealmRolesPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesPost") @@ -1886,11 +1877,11 @@ func (a *RolesAPIService) AdminRealmsRealmRolesPostExecute(r ApiAdminRealmsRealm } type ApiAdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RolesAPIService - realm string + realm string clientUuid string - roleName string + roleName string } func (r ApiAdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -1900,31 +1891,30 @@ func (r ApiAdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetRequest) E /* AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGet Get client-level roles for the client that are in the role's composite - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid - @param roleName role's name (not id!) - @return ApiAdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetRequest */ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGet(ctx context.Context, realm string, clientUuid string, roleName string) ApiAdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetRequest { return ApiAdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - roleName: roleName, + roleName: roleName, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetExecute(r ApiAdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameCompositesClientsClientUuidGet") @@ -1996,10 +1986,10 @@ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesClientsClientUu } type ApiAdminRealmsRealmRolesRoleNameCompositesDeleteRequest struct { - ctx context.Context - ApiService *RolesAPIService - realm string - roleName string + ctx context.Context + ApiService *RolesAPIService + realm string + roleName string roleRepresentation *[]RoleRepresentation } @@ -2015,26 +2005,26 @@ func (r ApiAdminRealmsRealmRolesRoleNameCompositesDeleteRequest) Execute() (*htt /* AdminRealmsRealmRolesRoleNameCompositesDelete Remove roles from the role's composite - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleName role's name (not id!) - @return ApiAdminRealmsRealmRolesRoleNameCompositesDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmRolesRoleNameCompositesDeleteRequest */ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesDelete(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameCompositesDeleteRequest { return ApiAdminRealmsRealmRolesRoleNameCompositesDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleName: roleName, + ctx: ctx, + realm: realm, + roleName: roleName, } } // Execute executes the request func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesDeleteExecute(r ApiAdminRealmsRealmRolesRoleNameCompositesDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameCompositesDelete") @@ -2098,10 +2088,10 @@ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesDeleteExecute(r } type ApiAdminRealmsRealmRolesRoleNameCompositesGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RolesAPIService - realm string - roleName string + realm string + roleName string } func (r ApiAdminRealmsRealmRolesRoleNameCompositesGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -2111,29 +2101,28 @@ func (r ApiAdminRealmsRealmRolesRoleNameCompositesGetRequest) Execute() ([]RoleR /* AdminRealmsRealmRolesRoleNameCompositesGet Get composites of the role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleName role's name (not id!) - @return ApiAdminRealmsRealmRolesRoleNameCompositesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmRolesRoleNameCompositesGetRequest */ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesGet(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameCompositesGetRequest { return ApiAdminRealmsRealmRolesRoleNameCompositesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleName: roleName, + ctx: ctx, + realm: realm, + roleName: roleName, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesGetExecute(r ApiAdminRealmsRealmRolesRoleNameCompositesGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameCompositesGet") @@ -2204,10 +2193,10 @@ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesGetExecute(r Ap } type ApiAdminRealmsRealmRolesRoleNameCompositesPostRequest struct { - ctx context.Context - ApiService *RolesAPIService - realm string - roleName string + ctx context.Context + ApiService *RolesAPIService + realm string + roleName string roleRepresentation *[]RoleRepresentation } @@ -2223,26 +2212,26 @@ func (r ApiAdminRealmsRealmRolesRoleNameCompositesPostRequest) Execute() (*http. /* AdminRealmsRealmRolesRoleNameCompositesPost Add a composite to the role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleName role's name (not id!) - @return ApiAdminRealmsRealmRolesRoleNameCompositesPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmRolesRoleNameCompositesPostRequest */ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesPost(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameCompositesPostRequest { return ApiAdminRealmsRealmRolesRoleNameCompositesPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleName: roleName, + ctx: ctx, + realm: realm, + roleName: roleName, } } // Execute executes the request func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesPostExecute(r ApiAdminRealmsRealmRolesRoleNameCompositesPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameCompositesPost") @@ -2306,10 +2295,10 @@ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesPostExecute(r A } type ApiAdminRealmsRealmRolesRoleNameCompositesRealmGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RolesAPIService - realm string - roleName string + realm string + roleName string } func (r ApiAdminRealmsRealmRolesRoleNameCompositesRealmGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -2319,29 +2308,28 @@ func (r ApiAdminRealmsRealmRolesRoleNameCompositesRealmGetRequest) Execute() ([] /* AdminRealmsRealmRolesRoleNameCompositesRealmGet Get realm-level roles of the role's composite - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleName role's name (not id!) - @return ApiAdminRealmsRealmRolesRoleNameCompositesRealmGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmRolesRoleNameCompositesRealmGetRequest */ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesRealmGet(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameCompositesRealmGetRequest { return ApiAdminRealmsRealmRolesRoleNameCompositesRealmGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleName: roleName, + ctx: ctx, + realm: realm, + roleName: roleName, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesRealmGetExecute(r ApiAdminRealmsRealmRolesRoleNameCompositesRealmGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameCompositesRealmGet") @@ -2412,10 +2400,10 @@ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameCompositesRealmGetExecute } type ApiAdminRealmsRealmRolesRoleNameDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *RolesAPIService - realm string - roleName string + realm string + roleName string } func (r ApiAdminRealmsRealmRolesRoleNameDeleteRequest) Execute() (*http.Response, error) { @@ -2425,26 +2413,26 @@ func (r ApiAdminRealmsRealmRolesRoleNameDeleteRequest) Execute() (*http.Response /* AdminRealmsRealmRolesRoleNameDelete Delete a role by name - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleName role's name (not id!) - @return ApiAdminRealmsRealmRolesRoleNameDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmRolesRoleNameDeleteRequest */ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameDelete(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameDeleteRequest { return ApiAdminRealmsRealmRolesRoleNameDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleName: roleName, + ctx: ctx, + realm: realm, + roleName: roleName, } } // Execute executes the request func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameDeleteExecute(r ApiAdminRealmsRealmRolesRoleNameDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameDelete") @@ -2506,10 +2494,10 @@ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameDeleteExecute(r ApiAdminR } type ApiAdminRealmsRealmRolesRoleNameGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RolesAPIService - realm string - roleName string + realm string + roleName string } func (r ApiAdminRealmsRealmRolesRoleNameGetRequest) Execute() (*RoleRepresentation, *http.Response, error) { @@ -2519,29 +2507,28 @@ func (r ApiAdminRealmsRealmRolesRoleNameGetRequest) Execute() (*RoleRepresentati /* AdminRealmsRealmRolesRoleNameGet Get a role by name - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleName role's name (not id!) - @return ApiAdminRealmsRealmRolesRoleNameGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmRolesRoleNameGetRequest */ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameGet(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameGetRequest { return ApiAdminRealmsRealmRolesRoleNameGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleName: roleName, + ctx: ctx, + realm: realm, + roleName: roleName, } } // Execute executes the request -// -// @return RoleRepresentation +// @return RoleRepresentation func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameGetExecute(r ApiAdminRealmsRealmRolesRoleNameGetRequest) (*RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameGet") @@ -2612,13 +2599,13 @@ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameGetExecute(r ApiAdminReal } type ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest struct { - ctx context.Context - ApiService *RolesAPIService - realm string - roleName string + ctx context.Context + ApiService *RolesAPIService + realm string + roleName string briefRepresentation *bool - first *int32 - max *int32 + first *int32 + max *int32 } // if false, return a full representation of the {@code GroupRepresentation} objects. @@ -2646,29 +2633,28 @@ func (r ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest) Execute() ([]GroupRepr /* AdminRealmsRealmRolesRoleNameGroupsGet Returns a stream of groups that have the specified role name - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleName the role name. - @return ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName the role name. + @return ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest */ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameGroupsGet(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest { return ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleName: roleName, + ctx: ctx, + realm: realm, + roleName: roleName, } } // Execute executes the request -// -// @return []GroupRepresentation +// @return []GroupRepresentation func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameGroupsGetExecute(r ApiAdminRealmsRealmRolesRoleNameGroupsGetRequest) ([]GroupRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []GroupRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []GroupRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameGroupsGet") @@ -2751,10 +2737,10 @@ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameGroupsGetExecute(r ApiAdm } type ApiAdminRealmsRealmRolesRoleNameManagementPermissionsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RolesAPIService - realm string - roleName string + realm string + roleName string } func (r ApiAdminRealmsRealmRolesRoleNameManagementPermissionsGetRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { @@ -2764,29 +2750,28 @@ func (r ApiAdminRealmsRealmRolesRoleNameManagementPermissionsGetRequest) Execute /* AdminRealmsRealmRolesRoleNameManagementPermissionsGet Return object stating whether role Authorization permissions have been initialized or not and a reference - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleName - @return ApiAdminRealmsRealmRolesRoleNameManagementPermissionsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName + @return ApiAdminRealmsRealmRolesRoleNameManagementPermissionsGetRequest */ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameManagementPermissionsGet(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameManagementPermissionsGetRequest { return ApiAdminRealmsRealmRolesRoleNameManagementPermissionsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleName: roleName, + ctx: ctx, + realm: realm, + roleName: roleName, } } // Execute executes the request -// -// @return ManagementPermissionReference +// @return ManagementPermissionReference func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameManagementPermissionsGetExecute(r ApiAdminRealmsRealmRolesRoleNameManagementPermissionsGetRequest) (*ManagementPermissionReference, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ManagementPermissionReference + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameManagementPermissionsGet") @@ -2857,10 +2842,10 @@ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameManagementPermissionsGetE } type ApiAdminRealmsRealmRolesRoleNameManagementPermissionsPutRequest struct { - ctx context.Context - ApiService *RolesAPIService - realm string - roleName string + ctx context.Context + ApiService *RolesAPIService + realm string + roleName string managementPermissionReference *ManagementPermissionReference } @@ -2876,29 +2861,28 @@ func (r ApiAdminRealmsRealmRolesRoleNameManagementPermissionsPutRequest) Execute /* AdminRealmsRealmRolesRoleNameManagementPermissionsPut Return object stating whether role Authorization permissions have been initialized or not and a reference - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleName - @return ApiAdminRealmsRealmRolesRoleNameManagementPermissionsPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName + @return ApiAdminRealmsRealmRolesRoleNameManagementPermissionsPutRequest */ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameManagementPermissionsPut(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameManagementPermissionsPutRequest { return ApiAdminRealmsRealmRolesRoleNameManagementPermissionsPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleName: roleName, + ctx: ctx, + realm: realm, + roleName: roleName, } } // Execute executes the request -// -// @return ManagementPermissionReference +// @return ManagementPermissionReference func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameManagementPermissionsPutExecute(r ApiAdminRealmsRealmRolesRoleNameManagementPermissionsPutRequest) (*ManagementPermissionReference, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ManagementPermissionReference + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameManagementPermissionsPut") @@ -2971,10 +2955,10 @@ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameManagementPermissionsPutE } type ApiAdminRealmsRealmRolesRoleNamePutRequest struct { - ctx context.Context - ApiService *RolesAPIService - realm string - roleName string + ctx context.Context + ApiService *RolesAPIService + realm string + roleName string roleRepresentation *RoleRepresentation } @@ -2990,26 +2974,26 @@ func (r ApiAdminRealmsRealmRolesRoleNamePutRequest) Execute() (*http.Response, e /* AdminRealmsRealmRolesRoleNamePut Update a role by name - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleName role's name (not id!) - @return ApiAdminRealmsRealmRolesRoleNamePutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName role's name (not id!) + @return ApiAdminRealmsRealmRolesRoleNamePutRequest */ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNamePut(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNamePutRequest { return ApiAdminRealmsRealmRolesRoleNamePutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleName: roleName, + ctx: ctx, + realm: realm, + roleName: roleName, } } // Execute executes the request func (a *RolesAPIService) AdminRealmsRealmRolesRoleNamePutExecute(r ApiAdminRealmsRealmRolesRoleNamePutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNamePut") @@ -3073,13 +3057,13 @@ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNamePutExecute(r ApiAdminReal } type ApiAdminRealmsRealmRolesRoleNameUsersGetRequest struct { - ctx context.Context - ApiService *RolesAPIService - realm string - roleName string + ctx context.Context + ApiService *RolesAPIService + realm string + roleName string briefRepresentation *bool - first *int32 - max *int32 + first *int32 + max *int32 } // Boolean which defines whether brief representations are returned (default: false) @@ -3107,29 +3091,28 @@ func (r ApiAdminRealmsRealmRolesRoleNameUsersGetRequest) Execute() ([]UserRepres /* AdminRealmsRealmRolesRoleNameUsersGet Returns a stream of users that have the specified role name. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleName the role name. - @return ApiAdminRealmsRealmRolesRoleNameUsersGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleName the role name. + @return ApiAdminRealmsRealmRolesRoleNameUsersGetRequest */ func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameUsersGet(ctx context.Context, realm string, roleName string) ApiAdminRealmsRealmRolesRoleNameUsersGetRequest { return ApiAdminRealmsRealmRolesRoleNameUsersGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleName: roleName, + ctx: ctx, + realm: realm, + roleName: roleName, } } // Execute executes the request -// -// @return []UserRepresentation +// @return []UserRepresentation func (a *RolesAPIService) AdminRealmsRealmRolesRoleNameUsersGetExecute(r ApiAdminRealmsRealmRolesRoleNameUsersGetRequest) ([]UserRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []UserRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []UserRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.AdminRealmsRealmRolesRoleNameUsersGet") diff --git a/api_roles_by_id.go b/api_roles_by_id.go index 3c8f498..0f30d79 100644 --- a/api_roles_by_id.go +++ b/api_roles_by_id.go @@ -19,15 +19,16 @@ import ( "strings" ) + // RolesByIDAPIService RolesByIDAPI service type RolesByIDAPIService service type ApiAdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RolesByIDAPIService - realm string + realm string clientUuid string - roleId string + roleId string } func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -37,31 +38,30 @@ func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest) /* AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGet Get client-level roles for the client that are in the role's composite - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid - @param roleId - @return ApiAdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid + @param roleId + @return ApiAdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest */ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGet(ctx context.Context, realm string, clientUuid string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest { return ApiAdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - roleId: roleId, + roleId: roleId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetExecute(r ApiAdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdCompositesClientsClientUuidGet") @@ -133,10 +133,10 @@ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesClientsCl } type ApiAdminRealmsRealmRolesByIdRoleIdCompositesDeleteRequest struct { - ctx context.Context - ApiService *RolesByIDAPIService - realm string - roleId string + ctx context.Context + ApiService *RolesByIDAPIService + realm string + roleId string roleRepresentation *[]RoleRepresentation } @@ -152,26 +152,26 @@ func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesDeleteRequest) Execute() (*h /* AdminRealmsRealmRolesByIdRoleIdCompositesDelete Remove a set of roles from the role's composite - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleId Role id - @return ApiAdminRealmsRealmRolesByIdRoleIdCompositesDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId Role id + @return ApiAdminRealmsRealmRolesByIdRoleIdCompositesDeleteRequest */ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesDelete(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdCompositesDeleteRequest { return ApiAdminRealmsRealmRolesByIdRoleIdCompositesDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleId: roleId, + ctx: ctx, + realm: realm, + roleId: roleId, } } // Execute executes the request func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesDeleteExecute(r ApiAdminRealmsRealmRolesByIdRoleIdCompositesDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdCompositesDelete") @@ -235,13 +235,13 @@ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesDeleteExe } type ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RolesByIDAPIService - realm string - roleId string - first *int32 - max *int32 - search *string + realm string + roleId string + first *int32 + max *int32 + search *string } func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest) First(first int32) ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest { @@ -266,29 +266,28 @@ func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest) Execute() ([]Rol /* AdminRealmsRealmRolesByIdRoleIdCompositesGet Get role's children Returns a set of role's children provided the role is a composite. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleId - @return ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId + @return ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest */ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesGet(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest { return ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleId: roleId, + ctx: ctx, + realm: realm, + roleId: roleId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesGetExecute(r ApiAdminRealmsRealmRolesByIdRoleIdCompositesGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdCompositesGet") @@ -368,10 +367,10 @@ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesGetExecut } type ApiAdminRealmsRealmRolesByIdRoleIdCompositesPostRequest struct { - ctx context.Context - ApiService *RolesByIDAPIService - realm string - roleId string + ctx context.Context + ApiService *RolesByIDAPIService + realm string + roleId string roleRepresentation *[]RoleRepresentation } @@ -387,26 +386,26 @@ func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesPostRequest) Execute() (*htt /* AdminRealmsRealmRolesByIdRoleIdCompositesPost Make the role a composite role by associating some child roles - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleId - @return ApiAdminRealmsRealmRolesByIdRoleIdCompositesPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId + @return ApiAdminRealmsRealmRolesByIdRoleIdCompositesPostRequest */ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesPost(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdCompositesPostRequest { return ApiAdminRealmsRealmRolesByIdRoleIdCompositesPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleId: roleId, + ctx: ctx, + realm: realm, + roleId: roleId, } } // Execute executes the request func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesPostExecute(r ApiAdminRealmsRealmRolesByIdRoleIdCompositesPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdCompositesPost") @@ -470,10 +469,10 @@ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesPostExecu } type ApiAdminRealmsRealmRolesByIdRoleIdCompositesRealmGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RolesByIDAPIService - realm string - roleId string + realm string + roleId string } func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesRealmGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -483,29 +482,28 @@ func (r ApiAdminRealmsRealmRolesByIdRoleIdCompositesRealmGetRequest) Execute() ( /* AdminRealmsRealmRolesByIdRoleIdCompositesRealmGet Get realm-level roles that are in the role's composite - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleId - @return ApiAdminRealmsRealmRolesByIdRoleIdCompositesRealmGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId + @return ApiAdminRealmsRealmRolesByIdRoleIdCompositesRealmGetRequest */ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesRealmGet(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdCompositesRealmGetRequest { return ApiAdminRealmsRealmRolesByIdRoleIdCompositesRealmGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleId: roleId, + ctx: ctx, + realm: realm, + roleId: roleId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesRealmGetExecute(r ApiAdminRealmsRealmRolesByIdRoleIdCompositesRealmGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdCompositesRealmGet") @@ -576,10 +574,10 @@ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdCompositesRealmGetE } type ApiAdminRealmsRealmRolesByIdRoleIdDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService *RolesByIDAPIService - realm string - roleId string + realm string + roleId string } func (r ApiAdminRealmsRealmRolesByIdRoleIdDeleteRequest) Execute() (*http.Response, error) { @@ -589,26 +587,26 @@ func (r ApiAdminRealmsRealmRolesByIdRoleIdDeleteRequest) Execute() (*http.Respon /* AdminRealmsRealmRolesByIdRoleIdDelete Delete the role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleId id of role - @return ApiAdminRealmsRealmRolesByIdRoleIdDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId id of role + @return ApiAdminRealmsRealmRolesByIdRoleIdDeleteRequest */ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdDelete(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdDeleteRequest { return ApiAdminRealmsRealmRolesByIdRoleIdDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleId: roleId, + ctx: ctx, + realm: realm, + roleId: roleId, } } // Execute executes the request func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdDeleteExecute(r ApiAdminRealmsRealmRolesByIdRoleIdDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdDelete") @@ -670,10 +668,10 @@ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdDeleteExecute(r Api } type ApiAdminRealmsRealmRolesByIdRoleIdGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RolesByIDAPIService - realm string - roleId string + realm string + roleId string } func (r ApiAdminRealmsRealmRolesByIdRoleIdGetRequest) Execute() (*RoleRepresentation, *http.Response, error) { @@ -683,29 +681,28 @@ func (r ApiAdminRealmsRealmRolesByIdRoleIdGetRequest) Execute() (*RoleRepresenta /* AdminRealmsRealmRolesByIdRoleIdGet Get a specific role's representation - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleId id of role - @return ApiAdminRealmsRealmRolesByIdRoleIdGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId id of role + @return ApiAdminRealmsRealmRolesByIdRoleIdGetRequest */ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdGet(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdGetRequest { return ApiAdminRealmsRealmRolesByIdRoleIdGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleId: roleId, + ctx: ctx, + realm: realm, + roleId: roleId, } } // Execute executes the request -// -// @return RoleRepresentation +// @return RoleRepresentation func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdGetExecute(r ApiAdminRealmsRealmRolesByIdRoleIdGetRequest) (*RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdGet") @@ -776,10 +773,10 @@ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdGetExecute(r ApiAdm } type ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *RolesByIDAPIService - realm string - roleId string + realm string + roleId string } func (r ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetRequest) Execute() (*ManagementPermissionReference, *http.Response, error) { @@ -789,29 +786,28 @@ func (r ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetRequest) Execu /* AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGet Return object stating whether role Authorization permissions have been initialized or not and a reference - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleId - @return ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId + @return ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetRequest */ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGet(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetRequest { return ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleId: roleId, + ctx: ctx, + realm: realm, + roleId: roleId, } } // Execute executes the request -// -// @return ManagementPermissionReference +// @return ManagementPermissionReference func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetExecute(r ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsGetRequest) (*ManagementPermissionReference, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ManagementPermissionReference + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdManagementPermissionsGet") @@ -882,10 +878,10 @@ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdManagementPermissio } type ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutRequest struct { - ctx context.Context - ApiService *RolesByIDAPIService - realm string - roleId string + ctx context.Context + ApiService *RolesByIDAPIService + realm string + roleId string managementPermissionReference *ManagementPermissionReference } @@ -901,29 +897,28 @@ func (r ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutRequest) Execu /* AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPut Return object stating whether role Authorization permissions have been initialized or not and a reference - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleId - @return ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId + @return ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutRequest */ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPut(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutRequest { return ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleId: roleId, + ctx: ctx, + realm: realm, + roleId: roleId, } } // Execute executes the request -// -// @return ManagementPermissionReference +// @return ManagementPermissionReference func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutExecute(r ApiAdminRealmsRealmRolesByIdRoleIdManagementPermissionsPutRequest) (*ManagementPermissionReference, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ManagementPermissionReference + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ManagementPermissionReference ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdManagementPermissionsPut") @@ -996,10 +991,10 @@ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdManagementPermissio } type ApiAdminRealmsRealmRolesByIdRoleIdPutRequest struct { - ctx context.Context - ApiService *RolesByIDAPIService - realm string - roleId string + ctx context.Context + ApiService *RolesByIDAPIService + realm string + roleId string roleRepresentation *RoleRepresentation } @@ -1015,26 +1010,26 @@ func (r ApiAdminRealmsRealmRolesByIdRoleIdPutRequest) Execute() (*http.Response, /* AdminRealmsRealmRolesByIdRoleIdPut Update the role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param roleId id of role - @return ApiAdminRealmsRealmRolesByIdRoleIdPutRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param roleId id of role + @return ApiAdminRealmsRealmRolesByIdRoleIdPutRequest */ func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdPut(ctx context.Context, realm string, roleId string) ApiAdminRealmsRealmRolesByIdRoleIdPutRequest { return ApiAdminRealmsRealmRolesByIdRoleIdPutRequest{ ApiService: a, - ctx: ctx, - realm: realm, - roleId: roleId, + ctx: ctx, + realm: realm, + roleId: roleId, } } // Execute executes the request func (a *RolesByIDAPIService) AdminRealmsRealmRolesByIdRoleIdPutExecute(r ApiAdminRealmsRealmRolesByIdRoleIdPutRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesByIDAPIService.AdminRealmsRealmRolesByIdRoleIdPut") diff --git a/api_scope_mappings.go b/api_scope_mappings.go index 0e8756f..e2d4611 100644 --- a/api_scope_mappings.go +++ b/api_scope_mappings.go @@ -19,15 +19,16 @@ import ( "strings" ) + // ScopeMappingsAPIService ScopeMappingsAPI service type ScopeMappingsAPIService service type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGetRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string clientScopeId string - client string + client string } func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -37,31 +38,30 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAv /* AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGet The available client-level roles Returns the roles for the client that can be associated with the client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param client - @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGet(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGetRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - client: client, + client: client, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientAvailableGet") @@ -133,11 +133,11 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScope } type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientScopeId string - client string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + client string briefRepresentation *bool } @@ -154,31 +154,30 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCo /* AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGet Get effective client roles Returns the roles for the client that are associated with the client's scope. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param client - @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGet(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - client: client, + client: client, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientCompositeGet") @@ -256,11 +255,11 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScope } type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientScopeId string - client string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + client string roleRepresentation *[]RoleRepresentation } @@ -276,28 +275,28 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDe /* AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDelete Remove client-level roles from the client's scope. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param client - @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDelete(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - client: client, + client: client, } } // Execute executes the request func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientDelete") @@ -362,11 +361,11 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScope } type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGetRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string clientScopeId string - client string + client string } func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -376,31 +375,30 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGe /* AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGet Get the roles associated with a client's scope Returns roles for the client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param client - @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGet(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGetRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - client: client, + client: client, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientGet") @@ -472,11 +470,11 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScope } type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientScopeId string - client string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + client string roleRepresentation *[]RoleRepresentation } @@ -492,28 +490,28 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPo /* AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPost Add client-level roles to the client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param client - @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPost(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - client: client, + client: client, } } // Execute executes the request func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsClientsClientPost") @@ -578,9 +576,9 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScope } type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsGetRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string clientScopeId string } @@ -591,33 +589,31 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsGetRequest) Exe /* AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGet Get all scope mappings for the client - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsGetRequest Deprecated */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsGetRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } // Execute executes the request -// -// @return MappingsRepresentation -// +// @return MappingsRepresentation // Deprecated func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsGetRequest) (*MappingsRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *MappingsRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MappingsRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsGet") @@ -688,9 +684,9 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScope } type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGetRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string clientScopeId string } @@ -701,29 +697,28 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableG /* AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGet Get realm-level roles that are available to attach to this client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGetRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmAvailableGet") @@ -794,10 +789,10 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScope } type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientScopeId string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string briefRepresentation *bool } @@ -816,29 +811,28 @@ AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGet Get effe The method is really to show a comprehensive total view of realm-level roles associated with the client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmCompositeGet") @@ -915,10 +909,10 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScope } type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientScopeId string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string roleRepresentation *[]RoleRepresentation } @@ -934,16 +928,16 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteRequ /* AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDelete Remove a set of realm-level roles from the client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDelete(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } @@ -951,9 +945,9 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScope // Execute executes the request func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmDelete") @@ -1017,9 +1011,9 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScope } type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGetRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string clientScopeId string } @@ -1030,29 +1024,28 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGetRequest /* AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGet Get realm-level roles associated with the client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGetRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGetExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmGet") @@ -1123,10 +1116,10 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScope } type ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientScopeId string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string roleRepresentation *[]RoleRepresentation } @@ -1142,16 +1135,16 @@ func (r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostReques /* AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPost Add a set of realm-level roles to the client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPost(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostRequest { return ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } @@ -1159,9 +1152,9 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScope // Execute executes the request func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostExecute(r ApiAdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientScopesClientScopeIdScopeMappingsRealmPost") @@ -1225,11 +1218,11 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientScopesClientScopeIdScope } type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGetRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string clientScopeId string - client string + client string } func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -1239,31 +1232,30 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClien /* AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGet The available client-level roles Returns the roles for the client that can be associated with the client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param client - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGet(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGetRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - client: client, + client: client, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientAvailableGet") @@ -1335,11 +1327,11 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdSc } type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientScopeId string - client string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + client string briefRepresentation *bool } @@ -1356,31 +1348,30 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClien /* AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGet Get effective client roles Returns the roles for the client that are associated with the client's scope. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param client - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGet(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - client: client, + client: client, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientCompositeGet") @@ -1458,11 +1449,11 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdSc } type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientScopeId string - client string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + client string roleRepresentation *[]RoleRepresentation } @@ -1478,28 +1469,28 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClien /* AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDelete Remove client-level roles from the client's scope. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param client - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDelete(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - client: client, + client: client, } } // Execute executes the request func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientDelete") @@ -1564,11 +1555,11 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdSc } type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGetRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string clientScopeId string - client string + client string } func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -1578,31 +1569,30 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClien /* AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGet Get the roles associated with a client's scope Returns roles for the client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param client - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGet(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGetRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - client: client, + client: client, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientGet") @@ -1674,11 +1664,11 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdSc } type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientScopeId string - client string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string + client string roleRepresentation *[]RoleRepresentation } @@ -1694,28 +1684,28 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClien /* AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPost Add client-level roles to the client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @param client - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @param client + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPost(ctx context.Context, realm string, clientScopeId string, client string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, - client: client, + client: client, } } // Execute executes the request func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsClientsClientPost") @@ -1780,9 +1770,9 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdSc } type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGetRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string clientScopeId string } @@ -1793,33 +1783,31 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGetRequest) /* AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGet Get all scope mappings for the client - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGetRequest Deprecated */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGetRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } // Execute executes the request -// -// @return MappingsRepresentation -// +// @return MappingsRepresentation // Deprecated func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGetRequest) (*MappingsRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *MappingsRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MappingsRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsGet") @@ -1890,9 +1878,9 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdSc } type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGetRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string clientScopeId string } @@ -1903,29 +1891,28 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailab /* AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGet Get realm-level roles that are available to attach to this client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGetRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmAvailableGet") @@ -1996,10 +1983,10 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdSc } type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientScopeId string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string briefRepresentation *bool } @@ -2018,29 +2005,28 @@ AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGet Get e The method is really to show a comprehensive total view of realm-level roles associated with the client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmCompositeGet") @@ -2117,10 +2103,10 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdSc } type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientScopeId string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string roleRepresentation *[]RoleRepresentation } @@ -2136,16 +2122,16 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteR /* AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDelete Remove a set of realm-level roles from the client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDelete(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } @@ -2153,9 +2139,9 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdSc // Execute executes the request func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmDelete") @@ -2219,9 +2205,9 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdSc } type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGetRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string clientScopeId string } @@ -2232,29 +2218,28 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGetRequ /* AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGet Get realm-level roles associated with the client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGet(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGetRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGetRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGetExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmGet") @@ -2325,10 +2310,10 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdSc } type ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientScopeId string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientScopeId string roleRepresentation *[]RoleRepresentation } @@ -2344,16 +2329,16 @@ func (r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostReq /* AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPost Add a set of realm-level roles to the client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientScopeId - @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientScopeId + @return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPost(ctx context.Context, realm string, clientScopeId string) ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostRequest { return ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostRequest{ - ApiService: a, - ctx: ctx, - realm: realm, + ApiService: a, + ctx: ctx, + realm: realm, clientScopeId: clientScopeId, } } @@ -2361,9 +2346,9 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdSc // Execute executes the request func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostExecute(r ApiAdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientTemplatesClientScopeIdScopeMappingsRealmPost") @@ -2427,11 +2412,11 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientTemplatesClientScopeIdSc } type ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ScopeMappingsAPIService - realm string + realm string clientUuid string - client string + client string } func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -2441,31 +2426,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableG /* AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGet The available client-level roles Returns the roles for the client that can be associated with the client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param client - @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param client + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGet(ctx context.Context, realm string, clientUuid string, client string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGetRequest { return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - client: client, + client: client, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGetExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientAvailableGet") @@ -2537,11 +2521,11 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappings } type ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientUuid string - client string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientUuid string + client string briefRepresentation *bool } @@ -2558,31 +2542,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeG /* AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGet Get effective client roles Returns the roles for the client that are associated with the client's scope. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param client - @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param client + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGet(ctx context.Context, realm string, clientUuid string, client string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetRequest { return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - client: client, + client: client, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientCompositeGet") @@ -2660,11 +2643,11 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappings } type ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientUuid string - client string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientUuid string + client string roleRepresentation *[]RoleRepresentation } @@ -2680,28 +2663,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteRequ /* AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDelete Remove client-level roles from the client's scope. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param client - @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param client + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDelete(ctx context.Context, realm string, clientUuid string, client string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteRequest { return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - client: client, + client: client, } } // Execute executes the request func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientDelete") @@ -2766,11 +2749,11 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappings } type ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ScopeMappingsAPIService - realm string + realm string clientUuid string - client string + client string } func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetRequest) Execute() ([]RoleRepresentation, *http.Response, error) { @@ -2780,31 +2763,30 @@ func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetRequest /* AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGet Get the roles associated with a client's scope Returns roles for the client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param client - @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param client + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGet(ctx context.Context, realm string, clientUuid string, client string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetRequest { return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - client: client, + client: client, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientGet") @@ -2876,11 +2858,11 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappings } type ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientUuid string - client string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientUuid string + client string roleRepresentation *[]RoleRepresentation } @@ -2896,28 +2878,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostReques /* AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPost Add client-level roles to the client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @param client - @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @param client + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPost(ctx context.Context, realm string, clientUuid string, client string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostRequest { return ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, - client: client, + client: client, } } // Execute executes the request func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsClientsClientPost") @@ -2982,9 +2964,9 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappings } type ApiAdminRealmsRealmClientsClientUuidScopeMappingsGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ScopeMappingsAPIService - realm string + realm string clientUuid string } @@ -2995,33 +2977,31 @@ func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsGetRequest) Execute() ( /* AdminRealmsRealmClientsClientUuidScopeMappingsGet Get all scope mappings for the client - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsGetRequest Deprecated */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsGetRequest { return ApiAdminRealmsRealmClientsClientUuidScopeMappingsGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return MappingsRepresentation -// +// @return MappingsRepresentation // Deprecated func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsGetExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsGetRequest) (*MappingsRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *MappingsRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MappingsRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsGet") @@ -3092,9 +3072,9 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappings } type ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ScopeMappingsAPIService - realm string + realm string clientUuid string } @@ -3105,29 +3085,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGetReques /* AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGet Get realm-level roles that are available to attach to this client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGetRequest { return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGetExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsRealmAvailableGet") @@ -3198,10 +3177,10 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappings } type ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientUuid string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientUuid string briefRepresentation *bool } @@ -3220,29 +3199,28 @@ AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGet Get effective re The method is really to show a comprehensive total view of realm-level roles associated with the client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetRequest { return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsRealmCompositeGet") @@ -3319,10 +3297,10 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappings } type ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientUuid string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientUuid string roleRepresentation *[]RoleRepresentation } @@ -3338,16 +3316,16 @@ func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteRequest) Exe /* AdminRealmsRealmClientsClientUuidScopeMappingsRealmDelete Remove a set of realm-level roles from the client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmDelete(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteRequest { return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } @@ -3355,9 +3333,9 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappings // Execute executes the request func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsRealmDelete") @@ -3421,9 +3399,9 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappings } type ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmGetRequest struct { - ctx context.Context + ctx context.Context ApiService *ScopeMappingsAPIService - realm string + realm string clientUuid string } @@ -3434,29 +3412,28 @@ func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmGetRequest) Execut /* AdminRealmsRealmClientsClientUuidScopeMappingsRealmGet Get realm-level roles associated with the client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmGetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmGetRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmGet(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmGetRequest { return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmGetRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } // Execute executes the request -// -// @return []RoleRepresentation +// @return []RoleRepresentation func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmGetExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmGetRequest) ([]RoleRepresentation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RoleRepresentation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RoleRepresentation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsRealmGet") @@ -3527,10 +3504,10 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappings } type ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmPostRequest struct { - ctx context.Context - ApiService *ScopeMappingsAPIService - realm string - clientUuid string + ctx context.Context + ApiService *ScopeMappingsAPIService + realm string + clientUuid string roleRepresentation *[]RoleRepresentation } @@ -3546,16 +3523,16 @@ func (r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmPostRequest) Execu /* AdminRealmsRealmClientsClientUuidScopeMappingsRealmPost Add a set of realm-level roles to the client's scope - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param realm realm name (not id!) - @param clientUuid id of client (not client-id!) - @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param realm realm name (not id!) + @param clientUuid id of client (not client-id!) + @return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmPostRequest */ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmPost(ctx context.Context, realm string, clientUuid string) ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmPostRequest { return ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmPostRequest{ ApiService: a, - ctx: ctx, - realm: realm, + ctx: ctx, + realm: realm, clientUuid: clientUuid, } } @@ -3563,9 +3540,9 @@ func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappings // Execute executes the request func (a *ScopeMappingsAPIService) AdminRealmsRealmClientsClientUuidScopeMappingsRealmPostExecute(r ApiAdminRealmsRealmClientsClientUuidScopeMappingsRealmPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScopeMappingsAPIService.AdminRealmsRealmClientsClientUuidScopeMappingsRealmPost") diff --git a/api_users.go b/api_users.go index ddcfce9..161b704 100644 --- a/api_users.go +++ b/api_users.go @@ -19,21 +19,22 @@ import ( "strings" ) + // UsersAPIService UsersAPI service type UsersAPIService service type ApiAdminRealmsRealmUsersCountGetRequest struct { - ctx context.Context - ApiService *UsersAPIService - realm string - email *string + ctx context.Context + ApiService *UsersAPIService + realm string + email *string emailVerified *bool - enabled *bool - firstName *string - lastName *string - q *string - search *string - username *string + enabled *bool + firstName *string + lastName *string + q *string + search *string + username *string } // email filter @@ -91,27 +92,26 @@ AdminRealmsRealmUsersCountGet Returns the number of users that match the given c It can be called in three different ways. 1. Don’t specify any criteria and pass {@code null}. The number of all users within that realm will be returned.
2. If {@code search} is specified other criteria such as {@code last} will be ignored even though you set them. The {@code search} string will be matched against the first and last name, the username and the email of a user.
3. If {@code search} is unspecified but any of {@code last}, {@code first}, {@code email} or {@code username} those criteria are matched against their respective fields on a user entity. Combined with a logical and.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @return ApiAdminRealmsRealmUsersCountGetRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @return ApiAdminRealmsRealmUsersCountGetRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersCountGet(ctx context.Context, realm string) ApiAdminRealmsRealmUsersCountGetRequest {
return ApiAdminRealmsRealmUsersCountGetRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
+ ctx: ctx,
+ realm: realm,
}
}
// Execute executes the request
-//
-// @return int32
+// @return int32
func (a *UsersAPIService) AdminRealmsRealmUsersCountGetExecute(r ApiAdminRealmsRealmUsersCountGetRequest) (int32, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue int32
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue int32
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersCountGet")
@@ -205,23 +205,23 @@ func (a *UsersAPIService) AdminRealmsRealmUsersCountGetExecute(r ApiAdminRealmsR
}
type ApiAdminRealmsRealmUsersGetRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- realm string
+ ctx context.Context
+ ApiService *UsersAPIService
+ realm string
briefRepresentation *bool
- email *string
- emailVerified *bool
- enabled *bool
- exact *bool
- first *int32
- firstName *string
- idpAlias *string
- idpUserId *string
- lastName *string
- max *int32
- q *string
- search *string
- username *string
+ email *string
+ emailVerified *bool
+ enabled *bool
+ exact *bool
+ first *int32
+ firstName *string
+ idpAlias *string
+ idpUserId *string
+ lastName *string
+ max *int32
+ q *string
+ search *string
+ username *string
}
// Boolean which defines whether brief representations are returned (default: false)
@@ -315,27 +315,26 @@ func (r ApiAdminRealmsRealmUsersGetRequest) Execute() ([]UserRepresentation, *ht
/*
AdminRealmsRealmUsersGet Get users Returns a stream of users, filtered according to query parameters.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @return ApiAdminRealmsRealmUsersGetRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @return ApiAdminRealmsRealmUsersGetRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersGet(ctx context.Context, realm string) ApiAdminRealmsRealmUsersGetRequest {
return ApiAdminRealmsRealmUsersGetRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
+ ctx: ctx,
+ realm: realm,
}
}
// Execute executes the request
-//
-// @return []UserRepresentation
+// @return []UserRepresentation
func (a *UsersAPIService) AdminRealmsRealmUsersGetExecute(r ApiAdminRealmsRealmUsersGetRequest) ([]UserRepresentation, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []UserRepresentation
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []UserRepresentation
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersGet")
@@ -447,9 +446,9 @@ func (a *UsersAPIService) AdminRealmsRealmUsersGetExecute(r ApiAdminRealmsRealmU
}
type ApiAdminRealmsRealmUsersPostRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- realm string
+ ctx context.Context
+ ApiService *UsersAPIService
+ realm string
userRepresentation *UserRepresentation
}
@@ -465,24 +464,24 @@ func (r ApiAdminRealmsRealmUsersPostRequest) Execute() (*http.Response, error) {
/*
AdminRealmsRealmUsersPost Create a new user Username must be unique.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @return ApiAdminRealmsRealmUsersPostRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @return ApiAdminRealmsRealmUsersPostRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersPost(ctx context.Context, realm string) ApiAdminRealmsRealmUsersPostRequest {
return ApiAdminRealmsRealmUsersPostRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
+ ctx: ctx,
+ realm: realm,
}
}
// Execute executes the request
func (a *UsersAPIService) AdminRealmsRealmUsersPostExecute(r ApiAdminRealmsRealmUsersPostRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersPost")
@@ -545,9 +544,9 @@ func (a *UsersAPIService) AdminRealmsRealmUsersPostExecute(r ApiAdminRealmsRealm
}
type ApiAdminRealmsRealmUsersProfileGetRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
+ realm string
}
func (r ApiAdminRealmsRealmUsersProfileGetRequest) Execute() (*UPConfig, *http.Response, error) {
@@ -559,27 +558,26 @@ AdminRealmsRealmUsersProfileGet Method for AdminRealmsRealmUsersProfileGet
Get the configuration for the user profile
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @return ApiAdminRealmsRealmUsersProfileGetRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @return ApiAdminRealmsRealmUsersProfileGetRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersProfileGet(ctx context.Context, realm string) ApiAdminRealmsRealmUsersProfileGetRequest {
return ApiAdminRealmsRealmUsersProfileGetRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
+ ctx: ctx,
+ realm: realm,
}
}
// Execute executes the request
-//
-// @return UPConfig
+// @return UPConfig
func (a *UsersAPIService) AdminRealmsRealmUsersProfileGetExecute(r ApiAdminRealmsRealmUsersProfileGetRequest) (*UPConfig, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *UPConfig
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *UPConfig
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersProfileGet")
@@ -649,9 +647,9 @@ func (a *UsersAPIService) AdminRealmsRealmUsersProfileGetExecute(r ApiAdminRealm
}
type ApiAdminRealmsRealmUsersProfileMetadataGetRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
+ realm string
}
func (r ApiAdminRealmsRealmUsersProfileMetadataGetRequest) Execute() (*UserProfileMetadata, *http.Response, error) {
@@ -663,27 +661,26 @@ AdminRealmsRealmUsersProfileMetadataGet Method for AdminRealmsRealmUsersProfileM
Get the UserProfileMetadata from the configuration
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @return ApiAdminRealmsRealmUsersProfileMetadataGetRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @return ApiAdminRealmsRealmUsersProfileMetadataGetRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersProfileMetadataGet(ctx context.Context, realm string) ApiAdminRealmsRealmUsersProfileMetadataGetRequest {
return ApiAdminRealmsRealmUsersProfileMetadataGetRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
+ ctx: ctx,
+ realm: realm,
}
}
// Execute executes the request
-//
-// @return UserProfileMetadata
+// @return UserProfileMetadata
func (a *UsersAPIService) AdminRealmsRealmUsersProfileMetadataGetExecute(r ApiAdminRealmsRealmUsersProfileMetadataGetRequest) (*UserProfileMetadata, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *UserProfileMetadata
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *UserProfileMetadata
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersProfileMetadataGet")
@@ -753,10 +750,10 @@ func (a *UsersAPIService) AdminRealmsRealmUsersProfileMetadataGetExecute(r ApiAd
}
type ApiAdminRealmsRealmUsersProfilePutRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
- uPConfig *UPConfig
+ realm string
+ uPConfig *UPConfig
}
func (r ApiAdminRealmsRealmUsersProfilePutRequest) UPConfig(uPConfig UPConfig) ApiAdminRealmsRealmUsersProfilePutRequest {
@@ -773,27 +770,26 @@ AdminRealmsRealmUsersProfilePut Method for AdminRealmsRealmUsersProfilePut
Set the configuration for the user profile
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @return ApiAdminRealmsRealmUsersProfilePutRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @return ApiAdminRealmsRealmUsersProfilePutRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersProfilePut(ctx context.Context, realm string) ApiAdminRealmsRealmUsersProfilePutRequest {
return ApiAdminRealmsRealmUsersProfilePutRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
+ ctx: ctx,
+ realm: realm,
}
}
// Execute executes the request
-//
-// @return UPConfig
+// @return UPConfig
func (a *UsersAPIService) AdminRealmsRealmUsersProfilePutExecute(r ApiAdminRealmsRealmUsersProfilePutRequest) (*UPConfig, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *UPConfig
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *UPConfig
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersProfilePut")
@@ -865,10 +861,10 @@ func (a *UsersAPIService) AdminRealmsRealmUsersProfilePutExecute(r ApiAdminRealm
}
type ApiAdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGetRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
- userId string
+ realm string
+ userId string
}
func (r ApiAdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGetRequest) Execute() ([]string, *http.Response, error) {
@@ -880,29 +876,28 @@ AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGet Return creden
Returned values can contain for example "password", "otp" etc. This will always return empty list for "local" users, which are not backed by any user storage
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGetRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGetRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGetRequest {
return ApiAdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGetRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
// Execute executes the request
-//
-// @return []string
+// @return []string
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGetExecute(r ApiAdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGetRequest) ([]string, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []string
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []string
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdConfiguredUserStorageCredentialTypesGet")
@@ -973,11 +968,11 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdConfiguredUserStorageCreden
}
type ApiAdminRealmsRealmUsersUserIdConsentsClientDeleteRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
- userId string
- client string
+ realm string
+ userId string
+ client string
}
func (r ApiAdminRealmsRealmUsersUserIdConsentsClientDeleteRequest) Execute() (*http.Response, error) {
@@ -987,28 +982,28 @@ func (r ApiAdminRealmsRealmUsersUserIdConsentsClientDeleteRequest) Execute() (*h
/*
AdminRealmsRealmUsersUserIdConsentsClientDelete Revoke consent and offline tokens for particular client from user
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @param client Client id
- @return ApiAdminRealmsRealmUsersUserIdConsentsClientDeleteRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @param client Client id
+ @return ApiAdminRealmsRealmUsersUserIdConsentsClientDeleteRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdConsentsClientDelete(ctx context.Context, realm string, userId string, client string) ApiAdminRealmsRealmUsersUserIdConsentsClientDeleteRequest {
return ApiAdminRealmsRealmUsersUserIdConsentsClientDeleteRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
- client: client,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
+ client: client,
}
}
// Execute executes the request
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdConsentsClientDeleteExecute(r ApiAdminRealmsRealmUsersUserIdConsentsClientDeleteRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdConsentsClientDelete")
@@ -1071,10 +1066,10 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdConsentsClientDeleteExecute
}
type ApiAdminRealmsRealmUsersUserIdConsentsGetRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
- userId string
+ realm string
+ userId string
}
func (r ApiAdminRealmsRealmUsersUserIdConsentsGetRequest) Execute() ([]map[string]interface{}, *http.Response, error) {
@@ -1084,29 +1079,28 @@ func (r ApiAdminRealmsRealmUsersUserIdConsentsGetRequest) Execute() ([]map[strin
/*
AdminRealmsRealmUsersUserIdConsentsGet Get consents granted by the user
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdConsentsGetRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdConsentsGetRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdConsentsGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdConsentsGetRequest {
return ApiAdminRealmsRealmUsersUserIdConsentsGetRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
// Execute executes the request
-//
-// @return []map[string]interface{}
+// @return []map[string]interface{}
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdConsentsGetExecute(r ApiAdminRealmsRealmUsersUserIdConsentsGetRequest) ([]map[string]interface{}, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []map[string]interface{}
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []map[string]interface{}
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdConsentsGet")
@@ -1177,10 +1171,10 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdConsentsGetExecute(r ApiAdm
}
type ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdDeleteRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- realm string
- userId string
+ ctx context.Context
+ ApiService *UsersAPIService
+ realm string
+ userId string
credentialId string
}
@@ -1191,18 +1185,18 @@ func (r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdDeleteRequest) Exec
/*
AdminRealmsRealmUsersUserIdCredentialsCredentialIdDelete Remove a credential for a user
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @param credentialId
- @return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdDeleteRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @param credentialId
+ @return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdDeleteRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdDelete(ctx context.Context, realm string, userId string, credentialId string) ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdDeleteRequest {
return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdDeleteRequest{
- ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ApiService: a,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
credentialId: credentialId,
}
}
@@ -1210,9 +1204,9 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdDele
// Execute executes the request
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdDeleteExecute(r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdDeleteRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdCredentialsCredentialIdDelete")
@@ -1275,11 +1269,11 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdDele
}
type ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPostRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- realm string
- userId string
- credentialId string
+ ctx context.Context
+ ApiService *UsersAPIService
+ realm string
+ userId string
+ credentialId string
newPreviousCredentialId string
}
@@ -1290,20 +1284,20 @@ func (r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviou
/*
AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost Move a credential to a position behind another credential
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @param credentialId The credential to move
- @param newPreviousCredentialId The credential that will be the previous element in the list. If set to null, the moved credential will be the first element in the list.
- @return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPostRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @param credentialId The credential to move
+ @param newPreviousCredentialId The credential that will be the previous element in the list. If set to null, the moved credential will be the first element in the list.
+ @return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPostRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost(ctx context.Context, realm string, userId string, credentialId string, newPreviousCredentialId string) ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPostRequest {
return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPostRequest{
- ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
- credentialId: credentialId,
+ ApiService: a,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
+ credentialId: credentialId,
newPreviousCredentialId: newPreviousCredentialId,
}
}
@@ -1311,9 +1305,9 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdMove
// Execute executes the request
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPostExecute(r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPostRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost")
@@ -1377,10 +1371,10 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdMove
}
type ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPostRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- realm string
- userId string
+ ctx context.Context
+ ApiService *UsersAPIService
+ realm string
+ userId string
credentialId string
}
@@ -1391,18 +1385,18 @@ func (r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPostRequ
/*
AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPost Move a credential to a first position in the credentials list of the user
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @param credentialId The credential to move
- @return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPostRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @param credentialId The credential to move
+ @return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPostRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPost(ctx context.Context, realm string, userId string, credentialId string) ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPostRequest {
return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPostRequest{
- ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ApiService: a,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
credentialId: credentialId,
}
}
@@ -1410,9 +1404,9 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdMove
// Execute executes the request
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPostExecute(r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPostRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdCredentialsCredentialIdMoveToFirstPost")
@@ -1475,12 +1469,12 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdMove
}
type ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- realm string
- userId string
+ ctx context.Context
+ ApiService *UsersAPIService
+ realm string
+ userId string
credentialId string
- body *string
+ body *string
}
func (r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest) Body(body string) ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest {
@@ -1495,18 +1489,18 @@ func (r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest
/*
AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPut Update a credential label for a user
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @param credentialId
- @return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @param credentialId
+ @return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPut(ctx context.Context, realm string, userId string, credentialId string) ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest {
return ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest{
- ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ApiService: a,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
credentialId: credentialId,
}
}
@@ -1514,9 +1508,9 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdUser
// Execute executes the request
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutExecute(r ApiAdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPutRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdCredentialsCredentialIdUserLabelPut")
@@ -1581,10 +1575,10 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsCredentialIdUser
}
type ApiAdminRealmsRealmUsersUserIdCredentialsGetRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
- userId string
+ realm string
+ userId string
}
func (r ApiAdminRealmsRealmUsersUserIdCredentialsGetRequest) Execute() ([]CredentialRepresentation, *http.Response, error) {
@@ -1594,29 +1588,28 @@ func (r ApiAdminRealmsRealmUsersUserIdCredentialsGetRequest) Execute() ([]Creden
/*
AdminRealmsRealmUsersUserIdCredentialsGet Method for AdminRealmsRealmUsersUserIdCredentialsGet
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdCredentialsGetRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdCredentialsGetRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdCredentialsGetRequest {
return ApiAdminRealmsRealmUsersUserIdCredentialsGetRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
// Execute executes the request
-//
-// @return []CredentialRepresentation
+// @return []CredentialRepresentation
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsGetExecute(r ApiAdminRealmsRealmUsersUserIdCredentialsGetRequest) ([]CredentialRepresentation, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CredentialRepresentation
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []CredentialRepresentation
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdCredentialsGet")
@@ -1687,10 +1680,10 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdCredentialsGetExecute(r Api
}
type ApiAdminRealmsRealmUsersUserIdDeleteRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
- userId string
+ realm string
+ userId string
}
func (r ApiAdminRealmsRealmUsersUserIdDeleteRequest) Execute() (*http.Response, error) {
@@ -1700,26 +1693,26 @@ func (r ApiAdminRealmsRealmUsersUserIdDeleteRequest) Execute() (*http.Response,
/*
AdminRealmsRealmUsersUserIdDelete Delete the user
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdDeleteRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdDeleteRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdDelete(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdDeleteRequest {
return ApiAdminRealmsRealmUsersUserIdDeleteRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
// Execute executes the request
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdDeleteExecute(r ApiAdminRealmsRealmUsersUserIdDeleteRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdDelete")
@@ -1781,10 +1774,10 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdDeleteExecute(r ApiAdminRea
}
type ApiAdminRealmsRealmUsersUserIdDisableCredentialTypesPutRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- realm string
- userId string
+ ctx context.Context
+ ApiService *UsersAPIService
+ realm string
+ userId string
requestBody *[]string
}
@@ -1800,26 +1793,26 @@ func (r ApiAdminRealmsRealmUsersUserIdDisableCredentialTypesPutRequest) Execute(
/*
AdminRealmsRealmUsersUserIdDisableCredentialTypesPut Disable all credentials for a user of a specific type
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdDisableCredentialTypesPutRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdDisableCredentialTypesPutRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdDisableCredentialTypesPut(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdDisableCredentialTypesPutRequest {
return ApiAdminRealmsRealmUsersUserIdDisableCredentialTypesPutRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
// Execute executes the request
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdDisableCredentialTypesPutExecute(r ApiAdminRealmsRealmUsersUserIdDisableCredentialTypesPutRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdDisableCredentialTypesPut")
@@ -1883,12 +1876,12 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdDisableCredentialTypesPutEx
}
type ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- realm string
- userId string
- clientId *string
- lifespan *int32
+ ctx context.Context
+ ApiService *UsersAPIService
+ realm string
+ userId string
+ clientId *string
+ lifespan *int32
redirectUri *string
requestBody *[]string
}
@@ -1925,26 +1918,26 @@ AdminRealmsRealmUsersUserIdExecuteActionsEmailPut Send an email to the user with
An email contains a link the user can click to perform a set of required actions. The redirectUri and clientId parameters are optional. If no redirect is given, then there will be no link back to click after actions have completed. Redirect uri must be a valid uri for the particular clientId.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdExecuteActionsEmailPut(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest {
return ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
// Execute executes the request
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdExecuteActionsEmailPutExecute(r ApiAdminRealmsRealmUsersUserIdExecuteActionsEmailPutRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdExecuteActionsEmailPut")
@@ -2017,10 +2010,10 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdExecuteActionsEmailPutExecu
}
type ApiAdminRealmsRealmUsersUserIdFederatedIdentityGetRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
- userId string
+ realm string
+ userId string
}
func (r ApiAdminRealmsRealmUsersUserIdFederatedIdentityGetRequest) Execute() ([]FederatedIdentityRepresentation, *http.Response, error) {
@@ -2030,29 +2023,28 @@ func (r ApiAdminRealmsRealmUsersUserIdFederatedIdentityGetRequest) Execute() ([]
/*
AdminRealmsRealmUsersUserIdFederatedIdentityGet Get social logins associated with the user
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdFederatedIdentityGetRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdFederatedIdentityGetRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdFederatedIdentityGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdFederatedIdentityGetRequest {
return ApiAdminRealmsRealmUsersUserIdFederatedIdentityGetRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
// Execute executes the request
-//
-// @return []FederatedIdentityRepresentation
+// @return []FederatedIdentityRepresentation
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdFederatedIdentityGetExecute(r ApiAdminRealmsRealmUsersUserIdFederatedIdentityGetRequest) ([]FederatedIdentityRepresentation, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []FederatedIdentityRepresentation
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []FederatedIdentityRepresentation
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdFederatedIdentityGet")
@@ -2123,11 +2115,11 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdFederatedIdentityGetExecute
}
type ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
- userId string
- provider string
+ realm string
+ userId string
+ provider string
}
func (r ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteRequest) Execute() (*http.Response, error) {
@@ -2137,28 +2129,28 @@ func (r ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteRequest) Ex
/*
AdminRealmsRealmUsersUserIdFederatedIdentityProviderDelete Remove a social login provider from user
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @param provider Social login provider id
- @return ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @param provider Social login provider id
+ @return ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdFederatedIdentityProviderDelete(ctx context.Context, realm string, userId string, provider string) ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteRequest {
return ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
- provider: provider,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
+ provider: provider,
}
}
// Execute executes the request
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteExecute(r ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderDeleteRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdFederatedIdentityProviderDelete")
@@ -2221,11 +2213,11 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdFederatedIdentityProviderDe
}
type ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderPostRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
- userId string
- provider string
+ realm string
+ userId string
+ provider string
}
func (r ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderPostRequest) Execute() (*http.Response, error) {
@@ -2235,28 +2227,28 @@ func (r ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderPostRequest) Exec
/*
AdminRealmsRealmUsersUserIdFederatedIdentityProviderPost Add a social login provider to the user
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @param provider Social login provider id
- @return ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderPostRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @param provider Social login provider id
+ @return ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderPostRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdFederatedIdentityProviderPost(ctx context.Context, realm string, userId string, provider string) ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderPostRequest {
return ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderPostRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
- provider: provider,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
+ provider: provider,
}
}
// Execute executes the request
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdFederatedIdentityProviderPostExecute(r ApiAdminRealmsRealmUsersUserIdFederatedIdentityProviderPostRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdFederatedIdentityProviderPost")
@@ -2319,10 +2311,10 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdFederatedIdentityProviderPo
}
type ApiAdminRealmsRealmUsersUserIdGetRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- realm string
- userId string
+ ctx context.Context
+ ApiService *UsersAPIService
+ realm string
+ userId string
userProfileMetadata *bool
}
@@ -2339,29 +2331,28 @@ func (r ApiAdminRealmsRealmUsersUserIdGetRequest) Execute() (*UserRepresentation
/*
AdminRealmsRealmUsersUserIdGet Get representation of the user
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdGetRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdGetRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdGetRequest {
return ApiAdminRealmsRealmUsersUserIdGetRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
// Execute executes the request
-//
-// @return UserRepresentation
+// @return UserRepresentation
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGetExecute(r ApiAdminRealmsRealmUsersUserIdGetRequest) (*UserRepresentation, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *UserRepresentation
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *UserRepresentation
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdGet")
@@ -2435,11 +2426,11 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGetExecute(r ApiAdminRealms
}
type ApiAdminRealmsRealmUsersUserIdGroupsCountGetRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
- userId string
- search *string
+ realm string
+ userId string
+ search *string
}
func (r ApiAdminRealmsRealmUsersUserIdGroupsCountGetRequest) Search(search string) ApiAdminRealmsRealmUsersUserIdGroupsCountGetRequest {
@@ -2454,29 +2445,28 @@ func (r ApiAdminRealmsRealmUsersUserIdGroupsCountGetRequest) Execute() (map[stri
/*
AdminRealmsRealmUsersUserIdGroupsCountGet Method for AdminRealmsRealmUsersUserIdGroupsCountGet
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdGroupsCountGetRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdGroupsCountGetRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsCountGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdGroupsCountGetRequest {
return ApiAdminRealmsRealmUsersUserIdGroupsCountGetRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
// Execute executes the request
-//
-// @return map[string]int64
+// @return map[string]int64
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsCountGetExecute(r ApiAdminRealmsRealmUsersUserIdGroupsCountGetRequest) (map[string]int64, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue map[string]int64
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue map[string]int64
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdGroupsCountGet")
@@ -2550,14 +2540,14 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsCountGetExecute(r Api
}
type ApiAdminRealmsRealmUsersUserIdGroupsGetRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- realm string
- userId string
+ ctx context.Context
+ ApiService *UsersAPIService
+ realm string
+ userId string
briefRepresentation *bool
- first *int32
- max *int32
- search *string
+ first *int32
+ max *int32
+ search *string
}
func (r ApiAdminRealmsRealmUsersUserIdGroupsGetRequest) BriefRepresentation(briefRepresentation bool) ApiAdminRealmsRealmUsersUserIdGroupsGetRequest {
@@ -2587,29 +2577,28 @@ func (r ApiAdminRealmsRealmUsersUserIdGroupsGetRequest) Execute() ([]GroupRepres
/*
AdminRealmsRealmUsersUserIdGroupsGet Method for AdminRealmsRealmUsersUserIdGroupsGet
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdGroupsGetRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdGroupsGetRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdGroupsGetRequest {
return ApiAdminRealmsRealmUsersUserIdGroupsGetRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
// Execute executes the request
-//
-// @return []GroupRepresentation
+// @return []GroupRepresentation
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsGetExecute(r ApiAdminRealmsRealmUsersUserIdGroupsGetRequest) ([]GroupRepresentation, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []GroupRepresentation
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []GroupRepresentation
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdGroupsGet")
@@ -2695,11 +2684,11 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsGetExecute(r ApiAdmin
}
type ApiAdminRealmsRealmUsersUserIdGroupsGroupIdDeleteRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
- userId string
- groupId string
+ realm string
+ userId string
+ groupId string
}
func (r ApiAdminRealmsRealmUsersUserIdGroupsGroupIdDeleteRequest) Execute() (*http.Response, error) {
@@ -2709,28 +2698,28 @@ func (r ApiAdminRealmsRealmUsersUserIdGroupsGroupIdDeleteRequest) Execute() (*ht
/*
AdminRealmsRealmUsersUserIdGroupsGroupIdDelete Method for AdminRealmsRealmUsersUserIdGroupsGroupIdDelete
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @param groupId
- @return ApiAdminRealmsRealmUsersUserIdGroupsGroupIdDeleteRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @param groupId
+ @return ApiAdminRealmsRealmUsersUserIdGroupsGroupIdDeleteRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsGroupIdDelete(ctx context.Context, realm string, userId string, groupId string) ApiAdminRealmsRealmUsersUserIdGroupsGroupIdDeleteRequest {
return ApiAdminRealmsRealmUsersUserIdGroupsGroupIdDeleteRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
- groupId: groupId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
+ groupId: groupId,
}
}
// Execute executes the request
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsGroupIdDeleteExecute(r ApiAdminRealmsRealmUsersUserIdGroupsGroupIdDeleteRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdGroupsGroupIdDelete")
@@ -2793,11 +2782,11 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsGroupIdDeleteExecute(
}
type ApiAdminRealmsRealmUsersUserIdGroupsGroupIdPutRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
- userId string
- groupId string
+ realm string
+ userId string
+ groupId string
}
func (r ApiAdminRealmsRealmUsersUserIdGroupsGroupIdPutRequest) Execute() (*http.Response, error) {
@@ -2807,28 +2796,28 @@ func (r ApiAdminRealmsRealmUsersUserIdGroupsGroupIdPutRequest) Execute() (*http.
/*
AdminRealmsRealmUsersUserIdGroupsGroupIdPut Method for AdminRealmsRealmUsersUserIdGroupsGroupIdPut
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @param groupId
- @return ApiAdminRealmsRealmUsersUserIdGroupsGroupIdPutRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @param groupId
+ @return ApiAdminRealmsRealmUsersUserIdGroupsGroupIdPutRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsGroupIdPut(ctx context.Context, realm string, userId string, groupId string) ApiAdminRealmsRealmUsersUserIdGroupsGroupIdPutRequest {
return ApiAdminRealmsRealmUsersUserIdGroupsGroupIdPutRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
- groupId: groupId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
+ groupId: groupId,
}
}
// Execute executes the request
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsGroupIdPutExecute(r ApiAdminRealmsRealmUsersUserIdGroupsGroupIdPutRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdGroupsGroupIdPut")
@@ -2891,10 +2880,10 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdGroupsGroupIdPutExecute(r A
}
type ApiAdminRealmsRealmUsersUserIdImpersonationPostRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
- userId string
+ realm string
+ userId string
}
func (r ApiAdminRealmsRealmUsersUserIdImpersonationPostRequest) Execute() (map[string]interface{}, *http.Response, error) {
@@ -2904,29 +2893,28 @@ func (r ApiAdminRealmsRealmUsersUserIdImpersonationPostRequest) Execute() (map[s
/*
AdminRealmsRealmUsersUserIdImpersonationPost Impersonate the user
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdImpersonationPostRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdImpersonationPostRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdImpersonationPost(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdImpersonationPostRequest {
return ApiAdminRealmsRealmUsersUserIdImpersonationPostRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
// Execute executes the request
-//
-// @return map[string]interface{}
+// @return map[string]interface{}
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdImpersonationPostExecute(r ApiAdminRealmsRealmUsersUserIdImpersonationPostRequest) (map[string]interface{}, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue map[string]interface{}
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue map[string]interface{}
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdImpersonationPost")
@@ -2997,10 +2985,10 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdImpersonationPostExecute(r
}
type ApiAdminRealmsRealmUsersUserIdLogoutPostRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
- userId string
+ realm string
+ userId string
}
func (r ApiAdminRealmsRealmUsersUserIdLogoutPostRequest) Execute() (*http.Response, error) {
@@ -3010,26 +2998,26 @@ func (r ApiAdminRealmsRealmUsersUserIdLogoutPostRequest) Execute() (*http.Respon
/*
AdminRealmsRealmUsersUserIdLogoutPost Remove all user sessions associated with the user Also send notification to all clients that have an admin URL to invalidate the sessions for the particular user.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdLogoutPostRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdLogoutPostRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdLogoutPost(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdLogoutPostRequest {
return ApiAdminRealmsRealmUsersUserIdLogoutPostRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
// Execute executes the request
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdLogoutPostExecute(r ApiAdminRealmsRealmUsersUserIdLogoutPostRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdLogoutPost")
@@ -3091,10 +3079,10 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdLogoutPostExecute(r ApiAdmi
}
type ApiAdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGetRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
- userId string
+ realm string
+ userId string
clientUuid string
}
@@ -3105,31 +3093,30 @@ func (r ApiAdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGetRequest) Execu
/*
AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGet Get offline sessions associated with the user and client
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @param clientUuid
- @return ApiAdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGetRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @param clientUuid
+ @return ApiAdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGetRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGet(ctx context.Context, realm string, userId string, clientUuid string) ApiAdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGetRequest {
return ApiAdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGetRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
clientUuid: clientUuid,
}
}
// Execute executes the request
-//
-// @return []UserSessionRepresentation
+// @return []UserSessionRepresentation
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGetExecute(r ApiAdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGetRequest) ([]UserSessionRepresentation, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []UserSessionRepresentation
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []UserSessionRepresentation
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGet")
@@ -3201,10 +3188,10 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdOfflineSessionsClientUuidGe
}
type ApiAdminRealmsRealmUsersUserIdPutRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- realm string
- userId string
+ ctx context.Context
+ ApiService *UsersAPIService
+ realm string
+ userId string
userRepresentation *UserRepresentation
}
@@ -3220,26 +3207,26 @@ func (r ApiAdminRealmsRealmUsersUserIdPutRequest) Execute() (*http.Response, err
/*
AdminRealmsRealmUsersUserIdPut Update the user
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdPutRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdPutRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdPut(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdPutRequest {
return ApiAdminRealmsRealmUsersUserIdPutRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
// Execute executes the request
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdPutExecute(r ApiAdminRealmsRealmUsersUserIdPutRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdPut")
@@ -3303,11 +3290,11 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdPutExecute(r ApiAdminRealms
}
type ApiAdminRealmsRealmUsersUserIdResetPasswordEmailPutRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- realm string
- userId string
- clientId *string
+ ctx context.Context
+ ApiService *UsersAPIService
+ realm string
+ userId string
+ clientId *string
redirectUri *string
}
@@ -3332,19 +3319,19 @@ AdminRealmsRealmUsersUserIdResetPasswordEmailPut Send an email to the user with
The redirectUri and clientId parameters are optional. The default for the redirect is the account client. This endpoint has been deprecated. Please use the execute-actions-email passing a list with UPDATE_PASSWORD within it.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdResetPasswordEmailPutRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdResetPasswordEmailPutRequest
Deprecated
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdResetPasswordEmailPut(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdResetPasswordEmailPutRequest {
return ApiAdminRealmsRealmUsersUserIdResetPasswordEmailPutRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
@@ -3352,9 +3339,9 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdResetPasswordEmailPut(ctx c
// Deprecated
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdResetPasswordEmailPutExecute(r ApiAdminRealmsRealmUsersUserIdResetPasswordEmailPutRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdResetPasswordEmailPut")
@@ -3422,10 +3409,10 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdResetPasswordEmailPutExecut
}
type ApiAdminRealmsRealmUsersUserIdResetPasswordPutRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- realm string
- userId string
+ ctx context.Context
+ ApiService *UsersAPIService
+ realm string
+ userId string
credentialRepresentation *CredentialRepresentation
}
@@ -3441,26 +3428,26 @@ func (r ApiAdminRealmsRealmUsersUserIdResetPasswordPutRequest) Execute() (*http.
/*
AdminRealmsRealmUsersUserIdResetPasswordPut Set up a new password for the user.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdResetPasswordPutRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdResetPasswordPutRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdResetPasswordPut(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdResetPasswordPutRequest {
return ApiAdminRealmsRealmUsersUserIdResetPasswordPutRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
// Execute executes the request
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdResetPasswordPutExecute(r ApiAdminRealmsRealmUsersUserIdResetPasswordPutRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdResetPasswordPut")
@@ -3524,12 +3511,12 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdResetPasswordPutExecute(r A
}
type ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- realm string
- userId string
- clientId *string
- lifespan *int32
+ ctx context.Context
+ ApiService *UsersAPIService
+ realm string
+ userId string
+ clientId *string
+ lifespan *int32
redirectUri *string
}
@@ -3560,26 +3547,26 @@ AdminRealmsRealmUsersUserIdSendVerifyEmailPut Send an email-verification email t
The redirectUri, clientId and lifespan parameters are optional. The default for the redirect is the account client. The default for the lifespan is 12 hours
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdSendVerifyEmailPut(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest {
return ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
// Execute executes the request
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdSendVerifyEmailPutExecute(r ApiAdminRealmsRealmUsersUserIdSendVerifyEmailPutRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdSendVerifyEmailPut")
@@ -3650,10 +3637,10 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdSendVerifyEmailPutExecute(r
}
type ApiAdminRealmsRealmUsersUserIdSessionsGetRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
- userId string
+ realm string
+ userId string
}
func (r ApiAdminRealmsRealmUsersUserIdSessionsGetRequest) Execute() ([]UserSessionRepresentation, *http.Response, error) {
@@ -3663,29 +3650,28 @@ func (r ApiAdminRealmsRealmUsersUserIdSessionsGetRequest) Execute() ([]UserSessi
/*
AdminRealmsRealmUsersUserIdSessionsGet Get sessions associated with the user
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdSessionsGetRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdSessionsGetRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdSessionsGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdSessionsGetRequest {
return ApiAdminRealmsRealmUsersUserIdSessionsGetRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
// Execute executes the request
-//
-// @return []UserSessionRepresentation
+// @return []UserSessionRepresentation
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdSessionsGetExecute(r ApiAdminRealmsRealmUsersUserIdSessionsGetRequest) ([]UserSessionRepresentation, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []UserSessionRepresentation
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []UserSessionRepresentation
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdSessionsGet")
@@ -3756,10 +3742,10 @@ func (a *UsersAPIService) AdminRealmsRealmUsersUserIdSessionsGetExecute(r ApiAdm
}
type ApiAdminRealmsRealmUsersUserIdUnmanagedAttributesGetRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService *UsersAPIService
- realm string
- userId string
+ realm string
+ userId string
}
func (r ApiAdminRealmsRealmUsersUserIdUnmanagedAttributesGetRequest) Execute() (*map[string][]string, *http.Response, error) {
@@ -3769,29 +3755,28 @@ func (r ApiAdminRealmsRealmUsersUserIdUnmanagedAttributesGetRequest) Execute() (
/*
AdminRealmsRealmUsersUserIdUnmanagedAttributesGet Method for AdminRealmsRealmUsersUserIdUnmanagedAttributesGet
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param realm realm name (not id!)
- @param userId
- @return ApiAdminRealmsRealmUsersUserIdUnmanagedAttributesGetRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param realm realm name (not id!)
+ @param userId
+ @return ApiAdminRealmsRealmUsersUserIdUnmanagedAttributesGetRequest
*/
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdUnmanagedAttributesGet(ctx context.Context, realm string, userId string) ApiAdminRealmsRealmUsersUserIdUnmanagedAttributesGetRequest {
return ApiAdminRealmsRealmUsersUserIdUnmanagedAttributesGetRequest{
ApiService: a,
- ctx: ctx,
- realm: realm,
- userId: userId,
+ ctx: ctx,
+ realm: realm,
+ userId: userId,
}
}
// Execute executes the request
-//
-// @return map[string][]string
+// @return map[string][]string
func (a *UsersAPIService) AdminRealmsRealmUsersUserIdUnmanagedAttributesGetExecute(r ApiAdminRealmsRealmUsersUserIdUnmanagedAttributesGetRequest) (*map[string][]string, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *map[string][]string
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *map[string][]string
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.AdminRealmsRealmUsersUserIdUnmanagedAttributesGet")
diff --git a/client.go b/client.go
index 0934759..022e076 100644
--- a/client.go
+++ b/client.go
@@ -31,13 +31,14 @@ import (
"strings"
"time"
"unicode/utf8"
+
)
var (
JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`)
- queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]")
+ queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" )
)
// APIClient manages communication with the Keycloak Admin REST API API v1.0
@@ -184,15 +185,15 @@ func typeCheckParameter(obj interface{}, expected string, name string) error {
return nil
}
-func parameterValueToString(obj interface{}, key string) string {
+func parameterValueToString( obj interface{}, key string ) string {
if reflect.TypeOf(obj).Kind() != reflect.Ptr {
return fmt.Sprintf("%v", obj)
}
- var param, ok = obj.(MappedNullable)
+ var param,ok = obj.(MappedNullable)
if !ok {
return ""
}
- dataMap, err := param.ToMap()
+ dataMap,err := param.ToMap()
if err != nil {
return ""
}
@@ -208,85 +209,85 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri
value = "null"
} else {
switch v.Kind() {
- case reflect.Invalid:
- value = "invalid"
+ case reflect.Invalid:
+ value = "invalid"
- case reflect.Struct:
- if t, ok := obj.(MappedNullable); ok {
- dataMap, err := t.ToMap()
- if err != nil {
+ case reflect.Struct:
+ if t,ok := obj.(MappedNullable); ok {
+ dataMap,err := t.ToMap()
+ if err != nil {
+ return
+ }
+ parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType)
return
}
- parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType)
- return
- }
- if t, ok := obj.(time.Time); ok {
- parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType)
- return
- }
- value = v.Type().String() + " value"
- case reflect.Slice:
- var indValue = reflect.ValueOf(obj)
- if indValue == reflect.ValueOf(nil) {
- return
- }
- var lenIndValue = indValue.Len()
- for i := 0; i < lenIndValue; i++ {
- var arrayValue = indValue.Index(i)
- var keyPrefixForCollectionType = keyPrefix
- if style == "deepObject" {
- keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]"
+ if t, ok := obj.(time.Time); ok {
+ parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType)
+ return
}
- parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, collectionType)
- }
- return
+ value = v.Type().String() + " value"
+ case reflect.Slice:
+ var indValue = reflect.ValueOf(obj)
+ if indValue == reflect.ValueOf(nil) {
+ return
+ }
+ var lenIndValue = indValue.Len()
+ for i:=0;i