# Path: scalrctl/settings.py
# API_KEY_ID = None
# API_SECRET_KEY = None
# API_VERSION = "v1beta0"
# API_SCHEME = 'https'
# API_HOST = 'my.scalr.com'
# SIGNATURE_VERSION = 'V1-HMAC-SHA256'
# SSL_VERIFY_PEER = True
# GLOBAL_SCOPE_API_KEY_ID = None
# GLOBAL_SCOPE_API_SECRET_KEY = None


import json
import yaml
import six
import prettytable
import re
from scalrctl import settings
                row.append('')
        if row:
            rows.append(row)

    pagination = response_json.get("pagination", None)
    pagenum_last, current_pagenum = 1, 1
    if pagination:
        url_last = pagination.get('last', None)
        if url_last:
            number = re.search("pageNum=(\d*)", url_last)
            pagenum_last = number.group(1) if number else 1

        url_next = pagination.get('next', None)
        if url_next:
            num = re.search("pageNum=(\d*)", url_next)
            pagenum_next = num.group(1) if num else 1
            current_pagenum = int(pagenum_next) - 1
    return rows, current_pagenum, pagenum_last

def prepare_table():
    table = prettytable.PrettyTable()
    table.align = "l"
    table.right_padding_width = 4
    table.left_padding_width = 1
    table.set_style(prettytable.PLAIN_COLUMNS)
    return table

def build_vertical_table(field_names, rows, pre=None, post=None):
    table = prepare_table()


# Path: scalrctl/settings.py
# API_KEY_ID = None
# API_SECRET_KEY = None
# API_VERSION = "v1beta0"
# API_SCHEME = 'https'
# API_HOST = 'my.scalr.com'
# SIGNATURE_VERSION = 'V1-HMAC-SHA256'
# SSL_VERIFY_PEER = True
# GLOBAL_SCOPE_API_KEY_ID = None
# GLOBAL_SCOPE_API_SECRET_KEY = None


# Path: scalrctl/view.py
import json
import yaml
import six
import prettytable
import re
from scalrctl import settings

                row.append('')
        if row:
            rows.append(row)

    pagination = response_json.get("pagination", None)
    pagenum_last, current_pagenum = 1, 1
    if pagination:
        url_last = pagination.get('last', None)
        if url_last:
            number = re.search("pageNum=(\d*)", url_last)
            pagenum_last = number.group(1) if number else 1

        url_next = pagination.get('next', None)
        if url_next:
            num = re.search("pageNum=(\d*)", url_next)
            pagenum_next = num.group(1) if num else 1
            current_pagenum = int(pagenum_next) - 1
    return rows, current_pagenum, pagenum_last

def prepare_table():
    table = prettytable.PrettyTable()
    table.align = "l"
    table.right_padding_width = 4
    table.left_padding_width = 1
    table.set_style(prettytable.PLAIN_COLUMNS)
    return table

def build_vertical_table(field_names, rows, pre=None, post=None):
    table = prepare_table()


    template = '\x1b[1m%s\x1b[0m' if settings.colored_output else "%s"