# 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 SearchProviderField(str, Enum):
    """
    Possible Provider field names to use on filters
    """

    """
    allowed enum values
    """
    SLASH_PROVIDERS_SLASH_TYPE = '/providers/type'
    SLASH_PROVIDERS_SLASH_OIDC_CREDENTIALS_SLASH_ROLE_ARN = '/providers/oidcCredentials/roleArn'
    SLASH_PROVIDERS_SLASH_OIDC_CREDENTIALS_SLASH_REGION = '/providers/oidcCredentials/region'
    SLASH_PROVIDERS_SLASH_RESOURCES_SLASH_TYPE = '/providers/resources/type'
    SLASH_PROVIDERS_SLASH_OIDC_CREDENTIALS_SLASH_PROJECT_ID = '/providers/oidcCredentials/projectId'
    SLASH_PROVIDERS_SLASH_OIDC_CREDENTIALS_SLASH_PROVIDER_ID = '/providers/oidcCredentials/providerId'
    SLASH_PROVIDERS_SLASH_OIDC_CREDENTIALS_SLASH_POOL_ID = '/providers/oidcCredentials/poolId'
    SLASH_PROJECT_SLASH_PROJECT_ID = '/project/projectId'
    STAR = '*'

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


