# Path: scar/providers/aws/response.py
# class OutputType(Enum):
#     PLAIN_TEXT = 1
#     JSON = 2
#     VERBOSE = 3
#     BINARY = 4


from typing import Dict, List
from tabulate import tabulate
from scar.providers.aws.response import OutputType
import scar.logger as logger
    text_message = f'Service \'{resources_info.get("name")}\' successfully deleted from cluster \'{resources_info.get("cluster_id")}\'.'
    _print_generic_response(resources_info, output_type, text_message, result)


def _parse_service_info(resources_info: Dict) -> Dict:
    return {'Name': resources_info.get('name', '-'),
            'Memory': resources_info.get('memory', '-'),
            'CPU': resources_info.get('cpu', '-'),
            'Image_id': resources_info.get('image', '-')}


def _get_table(services_info: List) -> str:
    headers = ['NAME', 'MEMORY', 'CPU', 'IMAGE_ID']
    table = []
    for function in services_info:
        table.append([function['Name'],
                      function['Memory'],
                      function['CPU'],
                      function['Image_id']])
    return tabulate(table, headers)


def _print_generic_response(resources_info: Dict, output_type: int, text_message: str, json_output: Dict) -> None:
    # Support 'PLAIN_TEXT', 'JSON' and 'VERBOSE' output types
    if output_type == OutputType.PLAIN_TEXT.value:
        output = text_message
        logger.info(output)
    else:
        if output_type == OutputType.JSON.value:
            output = json_output

# Path: scar/providers/aws/response.py
# class OutputType(Enum):
#     PLAIN_TEXT = 1
#     JSON = 2
#     VERBOSE = 3
#     BINARY = 4


# Path: scar/providers/oscar/response.py
from typing import Dict, List
from tabulate import tabulate
from scar.providers.aws.response import OutputType
import scar.logger as logger

    text_message = f'Service \'{resources_info.get("name")}\' successfully deleted from cluster \'{resources_info.get("cluster_id")}\'.'
    _print_generic_response(resources_info, output_type, text_message, result)


def _parse_service_info(resources_info: Dict) -> Dict:
    return {'Name': resources_info.get('name', '-'),
            'Memory': resources_info.get('memory', '-'),
            'CPU': resources_info.get('cpu', '-'),
            'Image_id': resources_info.get('image', '-')}


def _get_table(services_info: List) -> str:
    headers = ['NAME', 'MEMORY', 'CPU', 'IMAGE_ID']
    table = []
    for function in services_info:
        table.append([function['Name'],
                      function['Memory'],
                      function['CPU'],
                      function['Image_id']])
    return tabulate(table, headers)


def _print_generic_response(resources_info: Dict, output_type: int, text_message: str, json_output: Dict) -> None:
    # Support 'PLAIN_TEXT', 'JSON' and 'VERBOSE' output types
    if output_type == OutputType.PLAIN_TEXT.value:
        output = text_message
        logger.info(output)
    else:
        if output_type == OutputType.JSON.value:
            output = json_output

        elif output_type == OutputType.VERBOSE.value: