Skip to content

Instantly share code, notes, and snippets.

@zancas
Last active May 2, 2016 22:34
Show Gist options
  • Save zancas/d564f838c97777a10742b09bdb0ec157 to your computer and use it in GitHub Desktop.
Save zancas/d564f838c97777a10742b09bdb0ec157 to your computer and use it in GitHub Desktop.
#! /usr/bin/env python
class Transactions(Collection):
"""BIG-IP® LTM pool collection"""
def __init__(self, bigip):
super(Transactions, self).__init__(bigip)
self._meta_data['allowed_lazy_attributes'] = [Transaction]
self._meta_data['attribute_registry'] =\
{u'tm:transactionstate': Transaction}
class Transaction(Resource):
"""BIG-IP® LTM pool resource"""
def __init__(self, transactions):
super(Transactions, self).__init__(transactions)
self._meta_data['required_json_kind'] = 'tm:transactionstate'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment