# Path: barbicanclient/v1/cas.py
# LOG = logging.getLogger(__name__)
# def lazy(func):
#     def wrapper(self, *args):
#     def _get_formatted_data(self):
#     def __init__(self, api, meta=None, expiration=None,
#                  plugin_name=None, plugin_ca_id=None,
#                  ca_ref=None, created=None, updated=None,
#                  status=None, creator_id=None):
#     def ca_ref(self):
#     def name(self):
#     def expiration(self):
#     def description(self):
#     def plugin_name(self):
#     def plugin_ca_id(self):
#     def created(self):
#     def updated(self):
#     def status(self):
#     def _fill_from_data(self, meta=None, expiration=None,
#                         plugin_name=None, plugin_ca_id=None, created=None,
#                         updated=None, status=None, creator_id=None):
#     def _fill_lazy_properties(self):
#     def __repr__(self):
#     def __init__(self, api):
#     def get(self, ca_ref):
#     def list(self, limit=10, offset=0, name=None):
# class CAFormatter(formatter.EntityFormatter):
# class CA(CAFormatter):
# class CAManager(base.BaseEntityManager):


from cliff import lister
from cliff import show
from barbicanclient.v1 import cas
    def get_parser(self, prog_name):
        parser = super(GetCA, self).get_parser(prog_name)
        parser.add_argument('URI', help='The URI reference for the CA.')
        return parser

    def take_action(self, args):
        entity = self.app.client_manager.key_manager.cas.get(ca_ref=args.URI)
        return entity._get_formatted_entity()


class ListCA(lister.Lister):
    """List CAs."""

    def get_parser(self, prog_name):
        parser = super(ListCA, self).get_parser(prog_name)
        parser.add_argument('--limit', '-l', default=10,
                            help='specify the limit to the number of items '
                                 'to list per page (default: %(default)s; '
                                 'maximum: 100)',
                            type=int)
        parser.add_argument('--offset', '-o', default=0,
                            help='specify the page offset '
                                 '(default: %(default)s)',
                            type=int)
        parser.add_argument('--name', '-n', default=None,
                            help='specify the ca name '
                                 '(default: %(default)s)')
        return parser

    def take_action(self, args):

# Path: barbicanclient/v1/cas.py
# LOG = logging.getLogger(__name__)
# def lazy(func):
#     def wrapper(self, *args):
#     def _get_formatted_data(self):
#     def __init__(self, api, meta=None, expiration=None,
#                  plugin_name=None, plugin_ca_id=None,
#                  ca_ref=None, created=None, updated=None,
#                  status=None, creator_id=None):
#     def ca_ref(self):
#     def name(self):
#     def expiration(self):
#     def description(self):
#     def plugin_name(self):
#     def plugin_ca_id(self):
#     def created(self):
#     def updated(self):
#     def status(self):
#     def _fill_from_data(self, meta=None, expiration=None,
#                         plugin_name=None, plugin_ca_id=None, created=None,
#                         updated=None, status=None, creator_id=None):
#     def _fill_lazy_properties(self):
#     def __repr__(self):
#     def __init__(self, api):
#     def get(self, ca_ref):
#     def list(self, limit=10, offset=0, name=None):
# class CAFormatter(formatter.EntityFormatter):
# class CA(CAFormatter):
# class CAManager(base.BaseEntityManager):


# Path: barbicanclient/barbican_cli/v1/cas.py
from cliff import lister
from cliff import show
from barbicanclient.v1 import cas

    def get_parser(self, prog_name):
        parser = super(GetCA, self).get_parser(prog_name)
        parser.add_argument('URI', help='The URI reference for the CA.')
        return parser

    def take_action(self, args):
        entity = self.app.client_manager.key_manager.cas.get(ca_ref=args.URI)
        return entity._get_formatted_entity()


class ListCA(lister.Lister):
    """List CAs."""

    def get_parser(self, prog_name):
        parser = super(ListCA, self).get_parser(prog_name)
        parser.add_argument('--limit', '-l', default=10,
                            help='specify the limit to the number of items '
                                 'to list per page (default: %(default)s; '
                                 'maximum: 100)',
                            type=int)
        parser.add_argument('--offset', '-o', default=0,
                            help='specify the page offset '
                                 '(default: %(default)s)',
                            type=int)
        parser.add_argument('--name', '-n', default=None,
                            help='specify the ca name '
                                 '(default: %(default)s)')
        return parser

    def take_action(self, args):

        obj_list = self.app.client_manager.key_manager.cas.list(