# 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 UpdateMaskFieldType(str, Enum):
    """
    The field types supported by the update mask
    """

    """
    allowed enum values
    """
    AD_LINK = 'ad_link'
    ADULT = 'adult'
    AGE_GROUP = 'age_group'
    AVAILABILITY = 'availability'
    AVERAGE_REVIEW_RATING = 'average_review_rating'
    BRAND = 'brand'
    CHECKOUT_ENABLED = 'checkout_enabled'
    COLOR = 'color'
    CONDITION = 'condition'
    CUSTOM_LABEL_0 = 'custom_label_0'
    CUSTOM_LABEL_1 = 'custom_label_1'
    CUSTOM_LABEL_2 = 'custom_label_2'
    CUSTOM_LABEL_3 = 'custom_label_3'
    CUSTOM_LABEL_4 = 'custom_label_4'
    CUSTOM_NUMBER_0 = 'custom_number_0'
    CUSTOM_NUMBER_1 = 'custom_number_1'
    CUSTOM_NUMBER_2 = 'custom_number_2'
    CUSTOM_NUMBER_3 = 'custom_number_3'
    CUSTOM_NUMBER_4 = 'custom_number_4'
    DESCRIPTION = 'description'
    FREE_SHIPPING_LABEL = 'free_shipping_label'
    FREE_SHIPPING_LIMIT = 'free_shipping_limit'
    GENDER = 'gender'
    GOOGLE_PRODUCT_CATEGORY = 'google_product_category'
    GTIN = 'gtin'
    ITEM_GROUP_ID = 'item_group_id'
    LAST_UPDATED_TIME = 'last_updated_time'
    LINK = 'link'
    MATERIAL = 'material'
    MIN_AD_PRICE = 'min_ad_price'
    MPN = 'mpn'
    NUMBER_OF_RATINGS = 'number_of_ratings'
    NUMBER_OF_REVIEWS = 'number_of_reviews'
    PATTERN = 'pattern'
    PRICE = 'price'
    PRODUCT_TYPE = 'product_type'
    SALE_PRICE = 'sale_price'
    SHIPPING = 'shipping'
    SHIPPING_HEIGHT = 'shipping_height'
    SHIPPING_WEIGHT = 'shipping_weight'
    SHIPPING_WIDTH = 'shipping_width'
    SIZE = 'size'
    SIZE_SYSTEM = 'size_system'
    SIZE_TYPE = 'size_type'
    TAX = 'tax'
    TITLE = 'title'
    VARIANT_NAMES = 'variant_names'
    VARIANT_VALUES = 'variant_values'
    PROMOTION_ID = 'promotion_id'

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


