feat(tf): to alias for terraform alias model

This commit is contained in:
Denis Gukov 2024-12-15 15:45:47 +05:00
parent ecacb5f1af
commit b24871cbbc
No known key found for this signature in database
GPG Key ID: 044381366A5D4731

View File

@ -15,3 +15,11 @@ var TerraformInventoryAliasProps = ObjectProps{
Type: reflect.TypeOf(TerraformInventoryAlias{}),
PrimaryColumnName: "id",
}
func (alias TerraformInventoryAlias) ToAlias() Alias {
return Alias{
ID: alias.ID,
Alias: alias.Alias,
ProjectID: alias.ProjectID,
}
}