group

package
v0.3.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareGroupPermissions

func CompareGroupPermissions(
	group1, group2 GroupPermission,
) bool

func ConvertGroupPermissionModelToData

func ConvertGroupPermissionModelToData(
	requiredAllPermissions []GroupPermission,
	groupID int,
	accountID int,
) []dbt_cloud.GroupPermission

func GroupDataSource

func GroupDataSource() datasource.DataSource

func GroupResource

func GroupResource() resource.Resource

Types

type GroupDataSourceModel added in v0.3.10

type GroupDataSourceModel struct {
	ID               types.Int64       `tfsdk:"id"`
	GroupID          types.Int64       `tfsdk:"group_id"`
	Name             types.String      `tfsdk:"name"`
	AssignByDefault  types.Bool        `tfsdk:"assign_by_default"`
	SSOMappingGroups types.Set         `tfsdk:"sso_mapping_groups"`
	GroupPermissions []GroupPermission `tfsdk:"group_permissions"`
}

we need a different one just because historically the data source uses `group_id` instead of `id`

type GroupPermission

type GroupPermission struct {
	PermissionSet                 types.String `tfsdk:"permission_set"`
	ProjectID                     types.Int64  `tfsdk:"project_id"`
	AllProjects                   types.Bool   `tfsdk:"all_projects"`
	WritableEnvironmentCategories types.Set    `tfsdk:"writable_environment_categories"`
}

func ConvertGroupPermissionDataToModel

func ConvertGroupPermissionDataToModel(
	allPermissions []dbt_cloud.GroupPermission,
) []GroupPermission

type GroupResourceModel

type GroupResourceModel struct {
	ID               types.Int64       `tfsdk:"id"`
	Name             types.String      `tfsdk:"name"`
	AssignByDefault  types.Bool        `tfsdk:"assign_by_default"`
	SSOMappingGroups types.Set         `tfsdk:"sso_mapping_groups"`
	GroupPermissions []GroupPermission `tfsdk:"group_permissions"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL