#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Author: Jialiang Shi
from sonarqube.utils.rest_client import RestClient
from sonarqube.utils.config import API_LANGUAGES_LIST_ENDPOINT
from sonarqube.utils.common import GET


class SonarQubeLanguages(RestClient):
    """
    SonarQube languages Operations
    """

    @GET(API_LANGUAGES_LIST_ENDPOINT)
    def get_supported_programming_languages(self, q=None):
        """
        SINCE 5.1
        List supported programming languages

        :param q: A pattern to match language keys/names against
        :return:
        """
