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

@@ -1,7 +1,7 @@
package bitbucket
import (
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
func dataSourcePlugin() *schema.Resource {
@@ -44,27 +44,13 @@ func dataSourcePlugin() *schema.Resource {
"vendor": {
Type: schema.TypeMap,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"name": {
Type: schema.TypeString,
Computed: true,
},
"link": {
Type: schema.TypeString,
Computed: true,
},
"marketplace_link": {
Type: schema.TypeString,
Computed: true,
},
},
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
"applied_license": {
Type: schema.TypeList,
Computed: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"valid": {