feat: Introduce muxing for new elements

This commit is contained in:
xvlcwk
2024-02-05 00:19:08 +01:00
committed by chris
parent 81c08dd5a7
commit ce6854b8b6
84 changed files with 912 additions and 790 deletions

View File

@@ -3,7 +3,8 @@ package bitbucket
import (
"encoding/json"
"fmt"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
bitbucketTypes "github.com/xvlcwk-terraform/terraform-provider-bitbucketserver/bitbucket/util/types"
"net/url"
)
@@ -65,7 +66,7 @@ func dataSourceGroupsRead(d *schema.ResourceData, m interface{}) error {
}
func readGroups(m interface{}, filter string) ([]string, error) {
client := m.(*BitbucketServerProvider).BitbucketClient
client := m.(*bitbucketTypes.BitbucketServerProvider).BitbucketClient
resourceURL := "/rest/api/1.0/admin/groups"
if filter != "" {