Skip to content

Latest commit

 

History

History
1550 lines (1009 loc) · 53.2 KB

ProtocolMappersAPI.md

File metadata and controls

1550 lines (1009 loc) · 53.2 KB

\ProtocolMappersAPI

All URIs are relative to http://localhost

Method HTTP request Description
AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost Post /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/add-models Create multiple mappers
AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet Get /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models Get mappers
AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete Delete /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id} Delete the mapper
AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet Get /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id} Get mapper by id
AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut Put /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id} Update the mapper
AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost Post /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models Create a mapper
AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet Get /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/protocol/{protocol} Get mappers by name for a specific protocol
AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost Post /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/add-models Create multiple mappers
AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet Get /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models Get mappers
AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete Delete /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models/{id} Delete the mapper
AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet Get /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models/{id} Get mapper by id
AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut Put /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models/{id} Update the mapper
AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost Post /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/models Create a mapper
AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet Get /admin/realms/{realm}/client-templates/{client-scope-id}/protocol-mappers/protocol/{protocol} Get mappers by name for a specific protocol
AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost Post /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/add-models Create multiple mappers
AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet Get /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models Get mappers
AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete Delete /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models/{id} Delete the mapper
AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet Get /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models/{id} Get mapper by id
AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut Put /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models/{id} Update the mapper
AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost Post /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/models Create a mapper
AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet Get /admin/realms/{realm}/clients/{client-uuid}/protocol-mappers/protocol/{protocol} Get mappers by name for a specific protocol

AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost

AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost(ctx, realm, clientScopeId).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()

Create multiple mappers

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientScopeId := "clientScopeId_example" // string | 
	protocolMapperRepresentation := []openapiclient.ProtocolMapperRepresentation{*openapiclient.NewProtocolMapperRepresentation()} // []ProtocolMapperRepresentation |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost(context.Background(), realm, clientScopeId).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientScopeId string

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPostRequest struct via the builder pattern

Name Type Description Notes

protocolMapperRepresentation | []ProtocolMapperRepresentation | |

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet

[]ProtocolMapperRepresentation AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet(ctx, realm, clientScopeId).Execute()

Get mappers

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientScopeId := "clientScopeId_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet(context.Background(), realm, clientScopeId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet`: []ProtocolMapperRepresentation
	fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientScopeId string

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGetRequest struct via the builder pattern

Name Type Description Notes

Return type

[]ProtocolMapperRepresentation

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete

AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete(ctx, realm, clientScopeId, id).Execute()

Delete the mapper

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientScopeId := "clientScopeId_example" // string | 
	id := "id_example" // string | Mapper id

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete(context.Background(), realm, clientScopeId, id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientScopeId string
id string Mapper id

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDeleteRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet

ProtocolMapperRepresentation AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet(ctx, realm, clientScopeId, id).Execute()

Get mapper by id

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientScopeId := "clientScopeId_example" // string | 
	id := "id_example" // string | Mapper id

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet(context.Background(), realm, clientScopeId, id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet`: ProtocolMapperRepresentation
	fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientScopeId string
id string Mapper id

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdGetRequest struct via the builder pattern

Name Type Description Notes

Return type

ProtocolMapperRepresentation

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut

AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut(ctx, realm, clientScopeId, id).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()

Update the mapper

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientScopeId := "clientScopeId_example" // string | 
	id := "id_example" // string | Mapper id
	protocolMapperRepresentation := *openapiclient.NewProtocolMapperRepresentation() // ProtocolMapperRepresentation |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut(context.Background(), realm, clientScopeId, id).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPut``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientScopeId string
id string Mapper id

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdPutRequest struct via the builder pattern

Name Type Description Notes

protocolMapperRepresentation | ProtocolMapperRepresentation | |

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost

AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost(ctx, realm, clientScopeId).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()

Create a mapper

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientScopeId := "clientScopeId_example" // string | 
	protocolMapperRepresentation := *openapiclient.NewProtocolMapperRepresentation() // ProtocolMapperRepresentation |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost(context.Background(), realm, clientScopeId).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPost``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientScopeId string

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsPostRequest struct via the builder pattern

Name Type Description Notes

protocolMapperRepresentation | ProtocolMapperRepresentation | |

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet

[]ProtocolMapperRepresentation AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet(ctx, realm, clientScopeId, protocol).Execute()

Get mappers by name for a specific protocol

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientScopeId := "clientScopeId_example" // string | 
	protocol := "protocol_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet(context.Background(), realm, clientScopeId, protocol).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet`: []ProtocolMapperRepresentation
	fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientScopeId string
protocol string

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientScopesClientScopeIdProtocolMappersProtocolProtocolGetRequest struct via the builder pattern

Name Type Description Notes

Return type

[]ProtocolMapperRepresentation

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost

AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost(ctx, realm, clientScopeId).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()

Create multiple mappers

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientScopeId := "clientScopeId_example" // string | 
	protocolMapperRepresentation := []openapiclient.ProtocolMapperRepresentation{*openapiclient.NewProtocolMapperRepresentation()} // []ProtocolMapperRepresentation |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost(context.Background(), realm, clientScopeId).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPost``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientScopeId string

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersAddModelsPostRequest struct via the builder pattern

Name Type Description Notes

protocolMapperRepresentation | []ProtocolMapperRepresentation | |

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet

[]ProtocolMapperRepresentation AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet(ctx, realm, clientScopeId).Execute()

Get mappers

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientScopeId := "clientScopeId_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet(context.Background(), realm, clientScopeId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet`: []ProtocolMapperRepresentation
	fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientScopeId string

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsGetRequest struct via the builder pattern

Name Type Description Notes

Return type

[]ProtocolMapperRepresentation

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete

AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete(ctx, realm, clientScopeId, id).Execute()

Delete the mapper

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientScopeId := "clientScopeId_example" // string | 
	id := "id_example" // string | Mapper id

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete(context.Background(), realm, clientScopeId, id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDelete``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientScopeId string
id string Mapper id

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdDeleteRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet

ProtocolMapperRepresentation AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet(ctx, realm, clientScopeId, id).Execute()

Get mapper by id

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientScopeId := "clientScopeId_example" // string | 
	id := "id_example" // string | Mapper id

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet(context.Background(), realm, clientScopeId, id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet`: ProtocolMapperRepresentation
	fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientScopeId string
id string Mapper id

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdGetRequest struct via the builder pattern

Name Type Description Notes

Return type

ProtocolMapperRepresentation

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut

AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut(ctx, realm, clientScopeId, id).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()

Update the mapper

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientScopeId := "clientScopeId_example" // string | 
	id := "id_example" // string | Mapper id
	protocolMapperRepresentation := *openapiclient.NewProtocolMapperRepresentation() // ProtocolMapperRepresentation |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut(context.Background(), realm, clientScopeId, id).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPut``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientScopeId string
id string Mapper id

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsIdPutRequest struct via the builder pattern

Name Type Description Notes

protocolMapperRepresentation | ProtocolMapperRepresentation | |

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost

AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost(ctx, realm, clientScopeId).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()

Create a mapper

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientScopeId := "clientScopeId_example" // string | 
	protocolMapperRepresentation := *openapiclient.NewProtocolMapperRepresentation() // ProtocolMapperRepresentation |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost(context.Background(), realm, clientScopeId).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPost``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientScopeId string

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersModelsPostRequest struct via the builder pattern

Name Type Description Notes

protocolMapperRepresentation | ProtocolMapperRepresentation | |

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet

[]ProtocolMapperRepresentation AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet(ctx, realm, clientScopeId, protocol).Execute()

Get mappers by name for a specific protocol

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientScopeId := "clientScopeId_example" // string | 
	protocol := "protocol_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet(context.Background(), realm, clientScopeId, protocol).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet`: []ProtocolMapperRepresentation
	fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientScopeId string
protocol string

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientTemplatesClientScopeIdProtocolMappersProtocolProtocolGetRequest struct via the builder pattern

Name Type Description Notes

Return type

[]ProtocolMapperRepresentation

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost

AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost(ctx, realm, clientUuid).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()

Create multiple mappers

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientUuid := "clientUuid_example" // string | id of client (not client-id!)
	protocolMapperRepresentation := []openapiclient.ProtocolMapperRepresentation{*openapiclient.NewProtocolMapperRepresentation()} // []ProtocolMapperRepresentation |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost(context.Background(), realm, clientUuid).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPost``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientUuid string id of client (not client-id!)

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidProtocolMappersAddModelsPostRequest struct via the builder pattern

Name Type Description Notes

protocolMapperRepresentation | []ProtocolMapperRepresentation | |

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet

[]ProtocolMapperRepresentation AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet(ctx, realm, clientUuid).Execute()

Get mappers

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientUuid := "clientUuid_example" // string | id of client (not client-id!)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet(context.Background(), realm, clientUuid).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet`: []ProtocolMapperRepresentation
	fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientUuid string id of client (not client-id!)

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidProtocolMappersModelsGetRequest struct via the builder pattern

Name Type Description Notes

Return type

[]ProtocolMapperRepresentation

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete

AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete(ctx, realm, clientUuid, id).Execute()

Delete the mapper

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientUuid := "clientUuid_example" // string | id of client (not client-id!)
	id := "id_example" // string | Mapper id

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete(context.Background(), realm, clientUuid, id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDelete``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientUuid string id of client (not client-id!)
id string Mapper id

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdDeleteRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet

ProtocolMapperRepresentation AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet(ctx, realm, clientUuid, id).Execute()

Get mapper by id

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientUuid := "clientUuid_example" // string | id of client (not client-id!)
	id := "id_example" // string | Mapper id

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet(context.Background(), realm, clientUuid, id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet`: ProtocolMapperRepresentation
	fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientUuid string id of client (not client-id!)
id string Mapper id

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdGetRequest struct via the builder pattern

Name Type Description Notes

Return type

ProtocolMapperRepresentation

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut

AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut(ctx, realm, clientUuid, id).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()

Update the mapper

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientUuid := "clientUuid_example" // string | id of client (not client-id!)
	id := "id_example" // string | Mapper id
	protocolMapperRepresentation := *openapiclient.NewProtocolMapperRepresentation() // ProtocolMapperRepresentation |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut(context.Background(), realm, clientUuid, id).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPut``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientUuid string id of client (not client-id!)
id string Mapper id

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidProtocolMappersModelsIdPutRequest struct via the builder pattern

Name Type Description Notes

protocolMapperRepresentation | ProtocolMapperRepresentation | |

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost

AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost(ctx, realm, clientUuid).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()

Create a mapper

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientUuid := "clientUuid_example" // string | id of client (not client-id!)
	protocolMapperRepresentation := *openapiclient.NewProtocolMapperRepresentation() // ProtocolMapperRepresentation |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost(context.Background(), realm, clientUuid).ProtocolMapperRepresentation(protocolMapperRepresentation).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersModelsPost``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientUuid string id of client (not client-id!)

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidProtocolMappersModelsPostRequest struct via the builder pattern

Name Type Description Notes

protocolMapperRepresentation | ProtocolMapperRepresentation | |

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet

[]ProtocolMapperRepresentation AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet(ctx, realm, clientUuid, protocol).Execute()

Get mappers by name for a specific protocol

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/daytonaio/daytona-ee-draft/pkg/keycloak-admin-client"
)

func main() {
	realm := "realm_example" // string | realm name (not id!)
	clientUuid := "clientUuid_example" // string | id of client (not client-id!)
	protocol := "protocol_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet(context.Background(), realm, clientUuid, protocol).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet`: []ProtocolMapperRepresentation
	fmt.Fprintf(os.Stdout, "Response from `ProtocolMappersAPI.AdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
realm string realm name (not id!)
clientUuid string id of client (not client-id!)
protocol string

Other Parameters

Other parameters are passed through a pointer to a apiAdminRealmsRealmClientsClientUuidProtocolMappersProtocolProtocolGetRequest struct via the builder pattern

Name Type Description Notes

Return type

[]ProtocolMapperRepresentation

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]