# coding: utf-8

"""
    Equinix Fabric API v4
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self


class PortSearchFieldName(str, Enum):
    """
    Possible field names to use on filters
    """

    """
    allowed enum values
    """
    SLASH_DEVICE_SLASH_NAME = '/device/name'
    SLASH_PHYSICAL_PORTS_SLASH_TETHER_SLASH_CROSS_CONNECT_ID = '/physicalPorts/tether/crossConnectId'
    SLASH_PHYSICAL_PORTS_SLASH_INTERFACE_SLASH_NAME = '/physicalPorts/interface/name'
    SLASH_STATE = '/state'
    SLASH_PROJECT_SLASH_PROJECT_ID = '/project/projectId'
    SLASH_UUID = '/uuid'
    SLASH_NAME = '/name'
    SLASH_ACCOUNT_SLASH_ORG_ID = '/account/orgId'
    SLASH_ACCOUNT_SLASH_ACCOUNT_NUMBER = '/account/accountNumber'
    SLASH_LOCATION_SLASH_METRO_CODE = '/location/metroCode'

    @classmethod
    def from_json(cls, json_str: str) -> Self:
        """Create an instance of PortSearchFieldName from a JSON string"""
        return cls(json.loads(json_str))


