ucscsdk/ucschandle.py
def add_mo(self, mo, modify_present=False, tag=None):
        """
        Adds a managed object to the UcscHandle commit buffer.
        This method does not trigger a commit by itself.
        This needs to be followed by a handle.commit() either immediately or
        after more operations to ensure successful addition of object on server

        Args:
            mo (managedobject): ManagedObject to be added.
            modify_present (bool): True/False,
                                    overwrite existing object if True

        Returns:
            None

        Example:
            obj = handle.add_mo(mo)\n
            handle.commit()\n
        """

        tag = self._auto_set_tag_context(tag)

        if modify_present in ucscgenutils.AFFIRMATIVE_LIST:
            mo.status = "created,modified"
        else:
            mo.status = "created"

        self._update_commit_buf(mo, tag)

        Adds a managed object to the UcscHandle commit buffer.
        This method does not trigger a commit by itself.
        This needs to be followed by a handle.commit() either immediately or
        after more operations to ensure successful addition of object on server

        Args:
            mo (managedobject): ManagedObject to be added.
            modify_present (bool): True/False,
                                    overwrite existing object if True

        Returns:
            None

        Example:
            obj = handle.add_mo(mo)\n
            handle.commit()\n
        
Adds a managed object to the UcscHandle commit buffer.
This method does not trigger a commit by itself.
This needs to be followed by a handle.commit() either immediately or
after more operations to ensure successful addition of object on server
Adds a managed object to the UcscHandle commit buffer . This method does not trigger a commit by itself . This needs to be followed by a handle . commit () either immediately or after more operations to ensure successful addition of object on server
def add_mo(self, mo, modify_present=False, tag=None):
        tag = self._auto_set_tag_context(tag)
        if modify_present in ucscgenutils.AFFIRMATIVE_LIST:
            mo.status = "created,modified"
        else:
            mo.status = "created"
        self._update_commit_buf(mo, tag)
def add_mo ( self , mo , modify_present = False , tag = None ) : tag = self . _auto_set_tag_context ( tag ) if modify_present in ucscgenutils . AFFIRMATIVE_LIST : mo . status = "created,modified" else : mo . status = "created" self . _update_commit_buf ( mo , tag )
Adds a managed object to the UcscHandle commit buffer.
Adds a managed object to the UcscHandle commit buffer .
"""
        Adds a managed object to the UcscHandle commit buffer.
        This method does not trigger a commit by itself.
        This needs to be followed by a handle.commit() either immediately or
        after more operations to ensure successful addition of object on server

        Args:
            mo (managedobject): ManagedObject to be added.
            modify_present (bool): True/False,
                                    overwrite existing object if True

        Returns:
            None

        Example:
            obj = handle.add_mo(mo)\n
            handle.commit()\n
        """
None
self
mo
ManagedObject to be added.
ManagedObject to be added .
modify_present
True/False,
overwrite existing object if True
True / False overwrite existing object if True
tag
examples
obj = handle.add_mo(mo)\n
handle.commit()\n
obj = handle . add_mo ( mo ) \ n handle . commit () \ n