# coding: utf-8

from __future__ import absolute_import
from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from tapi_server.models.base_model_ import Model
from tapi_server import util


class TapiTopologyProtectionType(Model):
    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

    Do not edit the class manually.
    """

    """
    allowed enum values
    """
    NO_PROTECTON = "NO_PROTECTON"
    ONE_PLUS_ONE_PROTECTION = "ONE_PLUS_ONE_PROTECTION"
    ONE_PLUS_ONE_PROTECTION_WITH_DYNAMIC_RESTORATION = "ONE_PLUS_ONE_PROTECTION_WITH_DYNAMIC_RESTORATION"
    PERMANENT_ONE_PLUS_ONE_PROTECTION = "PERMANENT_ONE_PLUS_ONE_PROTECTION"
    ONE_FOR_ONE_PROTECTION = "ONE_FOR_ONE_PROTECTION"
    DYNAMIC_RESTORATION = "DYNAMIC_RESTORATION"
    PRE_COMPUTED_RESTORATION = "PRE_COMPUTED_RESTORATION"

    def __init__(self):  # noqa: E501
        """TapiTopologyProtectionType - a model defined in OpenAPI

        """
        self.openapi_types = {
        }

        self.attribute_map = {
        }

    @classmethod
    def from_dict(cls, dikt) -> 'TapiTopologyProtectionType':
        """Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The tapi.topology.ProtectionType of this TapiTopologyProtectionType.  # noqa: E501
        :rtype: TapiTopologyProtectionType
        """
        return util.deserialize_model(dikt, cls)
