Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanIdentifier ¶ added in v1.9.0
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"`
}
Click to show internal directories.
Click to hide internal directories.