
class Operations(object):
    RESOURCE_PATH = '/operations'

    def __init__(self, api_call):
        self.api_call = api_call

    @staticmethod
    def _endpoint_path(operation_name):
        return u"{0}/{1}".format(Operations.RESOURCE_PATH, operation_name)

    def perform(self, operation_name, query_params=None):
        query_params = query_params or {}
        return self.api_call.post(self._endpoint_path(operation_name), {}, query_params)


class Operations(object):
    RESOURCE_PATH = '/operations'

    def __init__(self, api_call):
        self.api_call = api_call

    @staticmethod
    def _endpoint_path(operation_name):
        return u"{0}/{1}".format(Operations.RESOURCE_PATH, operation_name)

    def perform(self, operation_name, query_params=None):
        query_params = query_params or {}
        return self.api_call.post(self._endpoint_path(operation_name), {}, query_params)
