Last active
May 2, 2016 22:34
-
-
Save zancas/d564f838c97777a10742b09bdb0ec157 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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