<filename>project/properties/extensions/active_properties.py
"""
Active properties configuration.
"""
from project.models.property_model import PropertyModel
from project.models.header_model import HeaderModel
from project.enums import property_types_enum as prop_type
from project.enums import string_types_enum as str_type
from typing import Union


# Properties
active_properties: list[Union[PropertyModel, HeaderModel]] = [
    HeaderModel(
        title='Active'
    ),
    PropertyModel(
        label='Active?',
        name='active',
        property_type=prop_type.BOOL,
        description='Set to True to active the resource.',
        default=str_type.TRUE,
        required=True,
    ),
]
