# coding: utf-8

"""
    Pinterest REST API

    Pinterest's REST API

    The version of the OpenAPI document: 5.23.0
    Contact: blah+oapicf@cliffano.com
    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 BusinessAccessRole(str, Enum):
    """
    Permission role for business access.
    """

    """
    allowed enum values
    """
    OWNER = 'OWNER'
    ADMIN = 'ADMIN'
    ANALYST = 'ANALYST'
    SOS_READER = 'SOS_READER'
    FINANCE_MANAGER = 'FINANCE_MANAGER'
    FINANCE_VIEW = 'FINANCE_VIEW'
    FINANCE_EDIT = 'FINANCE_EDIT'
    AUDIENCE_MANAGER = 'AUDIENCE_MANAGER'
    CAMPAIGN_MANAGER = 'CAMPAIGN_MANAGER'
    CATALOGS_MANAGER = 'CATALOGS_MANAGER'
    RESTRICTED_OWNER = 'RESTRICTED_OWNER'
    PROFILE_MANAGER = 'PROFILE_MANAGER'
    PROFILE_PUBLISHER = 'PROFILE_PUBLISHER'
    RESOURCE_PINNER_LIST_OWNER = 'RESOURCE_PINNER_LIST_OWNER'
    RESOURCE_PINNER_LIST_READER = 'RESOURCE_PINNER_LIST_READER'
    BIZ_PINNER_LIST_SHARER = 'BIZ_PINNER_LIST_SHARER'
    RESOURCE_CONVERSION_TAGS_READER = 'RESOURCE_CONVERSION_TAGS_READER'

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


