namespace_permissions

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanIdentifier added in v1.9.0

func CleanIdentifier(s string) string

func UpdateStateAfterRead

func UpdateStateAfterRead(apiEntities []*namespacePermissions.NamespacePermission, state *ResourceModel)

Types

type MergedEntities

type MergedEntities struct {
	EntitiesToCreate []*namespace_permissions.NamespacePermission
	EntitiesToUpdate []*namespace_permissions.NamespacePermission
	EntitiesToDelete []*namespace_permissions.NamespacePermission
}

func Merge

func Merge(plan *ResourceModel, state *ResourceModel, converterType commons.ConverterType) *MergedEntities

type PermissionsModel

type PermissionsModel struct {
	UserEmail            types.String `tfsdk:"user_email"`
	ProgrammaticUserName types.String `tfsdk:"programmatic_username"`
	TeamId               types.String `tfsdk:"team_id"`
	Role                 types.String `tfsdk:"role"`
	CustomRoleId         types.String `tfsdk:"custom_role_id"`
}

func (*PermissionsModel) GetBlockIdentifier

func (e *PermissionsModel) GetBlockIdentifier() string

func (*PermissionsModel) Hash

func (e *PermissionsModel) Hash() string

type ResourceModel

type ResourceModel struct {
	ID          types.String        `tfsdk:"id"`
	NamespaceId types.String        `tfsdk:"namespace_id"`
	Permissions []*PermissionsModel `tfsdk:"permissions"`
}

Jump to

Keyboard shortcuts

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