def __init__(self, transaction, validate_only=False):
        """Initialize a new Transaction context

        Args:
            validate_only (bool): Will not commit the transaction, but only
                validate that it will succeed or not.

        Attributes:
            transaction (Transaction): The transaction object that was sent
                to the context manager
            validate_only (bool): Specifies whether the transaction should
                commit itself upon `__exit__` or whether the commands in the
                transaction should just be checked to make sure they don't
                raise an error.
            bigip (dict): A reference to the dictionary containing the BIG-IP
                mgmt_root
            icr (iControlRESTSession): A reference to the dictionary
                containing the iControl REST session
            original_headers (dict): A deep copy of all the headers that were
                originally part of the iControl REST session. A copy is needed
                so that we can revert back to them after the transaction has
                been committed, since the only way to commit the transaction
                is to set the X-F5-REST-Coordination-Id to the value of the
                transaction ID of the transaction.
        """
        self.transaction = transaction
        self.validate_only = validate_only
        self.bigip = transaction._meta_data['bigip']
        self.icr = self.bigip._meta_data['icr_session']
        self.original_headers = copy.deepcopy(self.icr.session.headers)
def __init__ ( self , transaction , validate_only = False ) : self . transaction = transaction self . validate_only = validate_only self . bigip = transaction . _meta_data [ 'bigip' ] self . icr = self . bigip . _meta_data [ 'icr_session' ] self . original_headers = copy . deepcopy ( self . icr . session . headers )
Initialize a new Transaction context

        Args:
            validate_only (bool): Will not commit the transaction, but only
                validate that it will succeed or not.

        Attributes:
            transaction (Transaction): The transaction object that was sent
                to the context manager
            validate_only (bool): Specifies whether the transaction should
                commit itself upon `__exit__` or whether the commands in the
                transaction should just be checked to make sure they don't
                raise an error.
            bigip (dict): A reference to the dictionary containing the BIG-IP
                mgmt_root
            icr (iControlRESTSession): A reference to the dictionary
                containing the iControl REST session
            original_headers (dict): A deep copy of all the headers that were
                originally part of the iControl REST session. A copy is needed
                so that we can revert back to them after the transaction has
                been committed, since the only way to commit the transaction
                is to set the X-F5-REST-Coordination-Id to the value of the
                transaction ID of the transaction.