feat(provider): add repositories data-source
This commit is contained in:
parent
2063f5ffef
commit
f04d7b341d
10 changed files with 1171 additions and 173 deletions
27
internal/provider/permissions.go
Normal file
27
internal/provider/permissions.go
Normal file
|
@ -0,0 +1,27 @@
|
|||
package provider
|
||||
|
||||
import (
|
||||
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
|
||||
"github.com/hashicorp/terraform-plugin-framework/types"
|
||||
)
|
||||
|
||||
type PermissionDataSourceModel struct {
|
||||
Admin types.Bool `tfsdk:"admin"`
|
||||
Pull types.Bool `tfsdk:"pull"`
|
||||
Push types.Bool `tfsdk:"push"`
|
||||
}
|
||||
|
||||
var permissionSchemaAttributes = map[string]schema.Attribute{
|
||||
"admin": schema.BoolAttribute{
|
||||
Computed: true,
|
||||
MarkdownDescription: "Admin permission.",
|
||||
},
|
||||
"pull": schema.BoolAttribute{
|
||||
Computed: true,
|
||||
MarkdownDescription: "Pull permission.",
|
||||
},
|
||||
"push": schema.BoolAttribute{
|
||||
Computed: true,
|
||||
MarkdownDescription: "Push permission.",
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue