diff --git a/client_test.go b/client_test.go index 9a39059a..9f0740e2 100644 --- a/client_test.go +++ b/client_test.go @@ -7027,9 +7027,9 @@ func Test_GetComponentsWithParams(t *testing.T) { token.AccessToken, cfg.GoCloak.Realm, gocloak.GetComponentsParams{ - Name: component.Name, - ProviderType: component.ProviderType, - ParentID: component.ParentID, + Name: component.Name, + Type: component.ProviderType, + ParentID: component.ParentID, }, ) require.NoError(t, err, "GetComponentsWithParams failed") @@ -7078,9 +7078,9 @@ func Test_UpdateComponent(t *testing.T) { token.AccessToken, cfg.GoCloak.Realm, gocloak.GetComponentsParams{ - Name: component.Name, - ProviderType: component.ProviderType, - ParentID: component.ParentID, + Name: component.Name, + Type: component.ProviderType, + ParentID: component.ParentID, }, ) require.NoError(t, err, "GetComponentWithParams after UpdateComponent failed") diff --git a/models.go b/models.go index 4d526aeb..b770cd05 100644 --- a/models.go +++ b/models.go @@ -304,9 +304,9 @@ type GetUsersParams struct { // GetComponentsParams represents the optional parameters for getting components type GetComponentsParams struct { - Name *string `json:"name,omitempty"` - ProviderType *string `json:"provider,omitempty"` - ParentID *string `json:"parent,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` + ParentID *string `json:"parent,omitempty"` } // ExecuteActionsEmail represents parameters for executing action emails