Create Variant

        Create a new Variant
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.create_variant(variant, async=True)
        >>> result = thread.get()

        :param async bool
        :param Variant variant: Attributes of variant to create (required)
        :return: Variant
                 If the method is called asynchronously,
                 returns the request thread.

def create_variant(cls, variant, **kwargs):
        """Create Variant

        Create a new Variant
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.create_variant(variant, async=True)
        >>> result = thread.get()

        :param async bool
        :param Variant variant: Attributes of variant to create (required)
        :return: Variant
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async'):
            return cls._create_variant_with_http_info(variant, **kwargs)
        else:
            (data) = cls._create_variant_with_http_info(variant, **kwargs)
            return data