(self, **kwargs)
[MS-PSRP] 2.2.3.11 Pipeline
        https://msdn.microsoft.com/en-us/library/dd358182.aspx

        :param is_nested: Whether the pipeline is a nested pipeline
        :param commands: List of commands to run
        :param history: The history string to add to the pipeline
        :param redirect_err_to_out: Whether to redirect the global
            error output pipe to the commands error output pipe.
[MS-PSRP] 2.2.3.11 Pipeline
        https://msdn.microsoft.com/en-us/library/dd358182.aspx
[ MS - PSRP ] 2 . 2 . 3 . 11 Pipeline https : // msdn . microsoft . com / en - us / library / dd358182 . aspx
def __init__(self, **kwargs):
        """
        [MS-PSRP] 2.2.3.11 Pipeline
        https://msdn.microsoft.com/en-us/library/dd358182.aspx

        :param is_nested: Whether the pipeline is a nested pipeline
        :param commands: List of commands to run
        :param history: The history string to add to the pipeline
        :param redirect_err_to_out: Whether to redirect the global
            error output pipe to the commands error output pipe.
        """
        super(Pipeline, self).__init__()
        cmd_types = [
            "System.Collections.Generic.List`1[["
            "System.Management.Automation.PSObject, "
            "System.Management.Automation, "
            "Version=1.0.0.0, Culture=neutral, "
            "PublicKeyToken=31bf3856ad364e35]]",
            "System.Object",
        ]

        self._extended_properties = (
            ('is_nested', ObjectMeta("B", name="IsNested")),
            # ExtraCmds isn't in spec but is value and used to send multiple
            # statements
            ('_extra_cmds', ListMeta(
                name="ExtraCmds",
                list_value_meta=ObjectMeta("Obj", object=self._ExtraCmds),
                list_types=cmd_types
            )),
            ('_cmds', ListMeta(
                name="Cmds", list_value_meta=ObjectMeta("Obj", object=Command),
                list_types=cmd_types
            )),
            ('history', ObjectMeta("S", name="History")),
            ('redirect_err_to_out',
             ObjectMeta("B", name="RedirectShellErrorOutputPipe")),
        )
        self.is_nested = kwargs.get('is_nested')
        self.commands = kwargs.get('cmds')
        self.history = kwargs.get('history')
        self.redirect_err_to_out = kwargs.get('redirect_err_to_out')
def __init__ ( self , * * kwargs ) : super ( Pipeline , self ) . __init__ ( ) cmd_types = [ "System.Collections.Generic.List`1[[" "System.Management.Automation.PSObject, " "System.Management.Automation, " "Version=1.0.0.0, Culture=neutral, " "PublicKeyToken=31bf3856ad364e35]]" , "System.Object" , ] self . _extended_properties = ( ( 'is_nested' , ObjectMeta ( "B" , name = "IsNested" ) ) , # ExtraCmds isn't in spec but is value and used to send multiple # statements ( '_extra_cmds' , ListMeta ( name = "ExtraCmds" , list_value_meta = ObjectMeta ( "Obj" , object = self . _ExtraCmds ) , list_types = cmd_types ) ) , ( '_cmds' , ListMeta ( name = "Cmds" , list_value_meta = ObjectMeta ( "Obj" , object = Command ) , list_types = cmd_types ) ) , ( 'history' , ObjectMeta ( "S" , name = "History" ) ) , ( 'redirect_err_to_out' , ObjectMeta ( "B" , name = "RedirectShellErrorOutputPipe" ) ) , ) self . is_nested = kwargs . get ( 'is_nested' ) self . commands = kwargs . get ( 'cmds' ) self . history = kwargs . get ( 'history' ) self . redirect_err_to_out = kwargs . get ( 'redirect_err_to_out' )