# coding: utf-8

"""
    Canva Connect API

    API for building integrations with Canva via a REST api

    The version of the OpenAPI document: latest
    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 Mp4ExportQuality(str, Enum):
    """
    The orientation and resolution of the exported video. Orientation is either `horizontal` or `vertical`, and resolution is one of `480p`, `720p`, `1080p` or `4k`.
    """

    """
    allowed enum values
    """
    HORIZONTAL_480P = 'horizontal_480p'
    HORIZONTAL_720P = 'horizontal_720p'
    HORIZONTAL_1080P = 'horizontal_1080p'
    HORIZONTAL_4K = 'horizontal_4k'
    VERTICAL_480P = 'vertical_480p'
    VERTICAL_720P = 'vertical_720p'
    VERTICAL_1080P = 'vertical_1080p'
    VERTICAL_4K = 'vertical_4k'

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


