(self, **kwargs)
[MS-PSRP] 2.2.3.15 ErrorRecord
        https://msdn.microsoft.com/en-us/library/dd340106.aspx
[MS-PSRP] 2.2.3.15 ErrorRecord
        https://msdn.microsoft.com/en-us/library/dd340106.aspx
[ MS - PSRP ] 2 . 2 . 3 . 15 ErrorRecord https : // msdn . microsoft . com / en - us / library / dd340106 . aspx
def __init__(self, **kwargs):
        """
        [MS-PSRP] 2.2.3.15 ErrorRecord
        https://msdn.microsoft.com/en-us/library/dd340106.aspx
        """
        super(ErrorRecord, self).__init__()
        self._types = [
            "System.Management.Automation.ErrorRecord",
            "System.Object"
        ]
        self._extended_properties = (
            ('exception', ObjectMeta(name="Exception", optional=True)),
            ('target_object', ObjectMeta(name="TargetObject", optional=True)),
            ('invocation', ObjectMeta("B", name="SerializeExtendedInfo")),
            ('invocation_info', ObjectMeta("ObjDynamic", name="InvocationInfo",
                                           object=GenericComplexObject,
                                           optional=True)),
            ('fq_error', ObjectMeta("S", name="FullyQualifiedErrorId")),
            ('category', ObjectMeta("I32", name="ErrorCategory_Category")),
            ('activity', ObjectMeta("S", name="ErrorCategory_Activity",
                                    optional=True)),
            ('reason', ObjectMeta("S", name="ErrorCategory_Reason",
                                  optional=True)),
            ('target_name', ObjectMeta("S", name="ErrorCategory_TargetName",
                                       optional=True)),
            ('target_type', ObjectMeta("S", name="ErrorCategory_TargetType",
                                       optional=True)),
            ('message', ObjectMeta("S", name="ErrorCategory_Message",
                                   optional=True)),
            ('details_message', ObjectMeta("S", name="ErrorDetails_Message",
                                           optional=True)),
            ('action', ObjectMeta("S", name="ErrorDetails_RecommendedAction",
                                  optional=True)),
            ('script_stacktrace', ObjectMeta(
                "S",
                name="ErrorDetails_ScriptStackTrace",
                optional=True
            )),
            ('extended_info_present', ObjectMeta(
                "B", name="SerializeExtendedInfo"
            )),
            ('invocation_name', ObjectMeta(
                "S",
                optional=True,
                name="InvocationInfo_InvocationName"
            )),
            ('invocation_bound_parameters', DictionaryMeta(
                name="InvocationInfo_BoundParameters",
                optional=True,
                dict_key_meta=ObjectMeta("S"),
                dict_types=[
                    "System.Management.Automation.PSBoundParametersDictionary",
                    "System.Collections.Generic.Dictionary`2[[System.String, "
                    "mscorlib, Version=4.0.0.0, Culture=neutral, "
                    "PublicKeyToken=b77a5c561934e089],"
                    "[System.Object, mscorlib, Version=4.0.0.0, "
                    "Culture=neutral, PublicKeyToken=b77a5c561934e089]]",
                    "System.Object"
                ]
            )),
            ('invocation_unbound_arguments', ListMeta(
                name="InvocationInfo_UnboundArguments",
                optional=True,
                list_types=[
                    "System.Collections.Generic.List`1[["
                    "System.Object, mscorlib, Version=4.0.0.0, "
                    "Culture=neutral, PublicKeyToken=b77a5c561934e089]]",
                    "System.Object"
                ]
            )),
            ('invocation_command_origin', ObjectMeta(
                "Obj",
                name="InvocationInfo_CommandOrigin",
                optional=True,
                object=CommandOrigin
            )),
            ('invocation_expecting_input', ObjectMeta(
                "B",
                name="InvocationInfo_ExpectingInput",
                optional=True
            )),
            ('invocation_line', ObjectMeta(
                "S",
                name="InvocationInfo_Line",
                optional=True
            )),
            ('invocation_offset_in_line', ObjectMeta(
                "I32",
                name="InvocationInfo_OffsetInLine",
                optional=True
            )),
            ('invocation_position_message', ObjectMeta(
                "S",
                name="InvocationInfo_PositionMessage",
                optional=True
            )),
            ('invocation_script_name', ObjectMeta(
                "S",
                name="InvocationInfo_ScriptName",
                optional=True
            )),
            ('invocation_script_line_number', ObjectMeta(
                "I32",
                name="InvocationInfo_ScriptLineNumber",
                optional=True
            )),
            ('invocation_history_id', ObjectMeta(
                "I64",
                name="InvocationInfo_HistoryId",
                optional=True
            )),
            ('invocation_pipeline_length', ObjectMeta(
                "I32",
                name="InvocationInfo_PipelineLength",
                optional=True
            )),
            ('invocation_pipeline_position', ObjectMeta(
                "I32",
                name="InvocationInfo_PipelinePosition",
                optional=True
            )),
            ('invocation_pipeline_iteration_info', ListMeta(
                name="InvocationInfo_PipelineIterationInfo",
                optional=True,
                list_value_meta=ObjectMeta("I32"),
                list_types=["System.In32[]", "System.Array", "System.Object"]
            )),
            ('command_type', ObjectMeta(
                "Obj",
                name="CommandInfo_CommandType",
                object=CommandType,
                optional=True,
            )),
            ('command_definition', ObjectMeta(
                "S",
                name="CommandInfo_Definition",
                optional=True,
            )),
            ('command_name', ObjectMeta(
                "S",
                name="CommandInfo_Name",
                optional=True
            )),
            ('command_visibility', ObjectMeta(
                "Obj",
                name="CommandInfo_Visibility",
                object=SessionStateEntryVisibility,
                optional=True
            )),
            ('pipeline_iteration_info', ListMeta(
                name="PipelineIterationInfo", optional=True,
                list_value_meta=ObjectMeta("I32"),
                list_types=[
                    "System.Collections.ObjectModel.ReadOnlyCollection`1[["
                    "System.Int32, mscorlib, Version=4.0.0.0, "
                    "Culture=neutral, PublicKeyToken=b77a5c561934e089]]",
                    "System.Object"
                ]
            )),
        )
        self.exception = kwargs.get('exception')
        self.target_info = kwargs.get('target_info')
        self.invocation = kwargs.get('invocation')
        self.fq_error = kwargs.get('fq_error')
        self.category = kwargs.get('category')
        self.activity = kwargs.get('activity')
        self.reason = kwargs.get('reason')
        self.target_name = kwargs.get('target_name')
        self.target_type = kwargs.get('target_type')
        self.message = kwargs.get('message')
        self.details_message = kwargs.get('details_message')
        self.action = kwargs.get('action')
        self.pipeline_iteration_info = kwargs.get('pipeline_iteration_info')
        self.invocation_name = kwargs.get('invocation_name')
        self.invocation_bound_parameters = \
            kwargs.get('invocation_bound_parameters')
        self.invocation_unbound_arguments = \
            kwargs.get('invocation_unbound_arguments')
        self.invocation_command_origin = \
            kwargs.get('invocation_command_origin')
        self.invocation_expecting_input = \
            kwargs.get('invocation_expecting_input')
        self.invocation_line = kwargs.get('invocation_line')
        self.invocation_offset_in_line = \
            kwargs.get('invocation_offset_in_line')
        self.invocation_position_message = \
            kwargs.get('invocation_position_message')
        self.invocation_script_name = kwargs.get('invocation_script_name')
        self.invocation_script_line_number = \
            kwargs.get('invocation_script_line_number')
        self.invocation_history_id = kwargs.get('invocation_history_id')
        self.invocation_pipeline_length = \
            kwargs.get('invocation_pipeline_length')
        self.invocation_pipeline_position = \
            kwargs.get('invocation_pipeline_position')
        self.invocation_pipeline_iteration_info = \
            kwargs.get('invocation_pipeline_iteration_info')
        self.command_type = kwargs.get('command_type')
        self.command_definition = kwargs.get('command_definition')
        self.command_name = kwargs.get('command_name')
        self.command_visibility = kwargs.get('command_visibility')
        self.extended_info_present = self.invocation is not None
def __init__ ( self , * * kwargs ) : super ( ErrorRecord , self ) . __init__ ( ) self . _types = [ "System.Management.Automation.ErrorRecord" , "System.Object" ] self . _extended_properties = ( ( 'exception' , ObjectMeta ( name = "Exception" , optional = True ) ) , ( 'target_object' , ObjectMeta ( name = "TargetObject" , optional = True ) ) , ( 'invocation' , ObjectMeta ( "B" , name = "SerializeExtendedInfo" ) ) , ( 'invocation_info' , ObjectMeta ( "ObjDynamic" , name = "InvocationInfo" , object = GenericComplexObject , optional = True ) ) , ( 'fq_error' , ObjectMeta ( "S" , name = "FullyQualifiedErrorId" ) ) , ( 'category' , ObjectMeta ( "I32" , name = "ErrorCategory_Category" ) ) , ( 'activity' , ObjectMeta ( "S" , name = "ErrorCategory_Activity" , optional = True ) ) , ( 'reason' , ObjectMeta ( "S" , name = "ErrorCategory_Reason" , optional = True ) ) , ( 'target_name' , ObjectMeta ( "S" , name = "ErrorCategory_TargetName" , optional = True ) ) , ( 'target_type' , ObjectMeta ( "S" , name = "ErrorCategory_TargetType" , optional = True ) ) , ( 'message' , ObjectMeta ( "S" , name = "ErrorCategory_Message" , optional = True ) ) , ( 'details_message' , ObjectMeta ( "S" , name = "ErrorDetails_Message" , optional = True ) ) , ( 'action' , ObjectMeta ( "S" , name = "ErrorDetails_RecommendedAction" , optional = True ) ) , ( 'script_stacktrace' , ObjectMeta ( "S" , name = "ErrorDetails_ScriptStackTrace" , optional = True ) ) , ( 'extended_info_present' , ObjectMeta ( "B" , name = "SerializeExtendedInfo" ) ) , ( 'invocation_name' , ObjectMeta ( "S" , optional = True , name = "InvocationInfo_InvocationName" ) ) , ( 'invocation_bound_parameters' , DictionaryMeta ( name = "InvocationInfo_BoundParameters" , optional = True , dict_key_meta = ObjectMeta ( "S" ) , dict_types = [ "System.Management.Automation.PSBoundParametersDictionary" , "System.Collections.Generic.Dictionary`2[[System.String, " "mscorlib, Version=4.0.0.0, Culture=neutral, " "PublicKeyToken=b77a5c561934e089]," "[System.Object, mscorlib, Version=4.0.0.0, " "Culture=neutral, PublicKeyToken=b77a5c561934e089]]" , "System.Object" ] ) ) , ( 'invocation_unbound_arguments' , ListMeta ( name = "InvocationInfo_UnboundArguments" , optional = True , list_types = [ "System.Collections.Generic.List`1[[" "System.Object, mscorlib, Version=4.0.0.0, " "Culture=neutral, PublicKeyToken=b77a5c561934e089]]" , "System.Object" ] ) ) , ( 'invocation_command_origin' , ObjectMeta ( "Obj" , name = "InvocationInfo_CommandOrigin" , optional = True , object = CommandOrigin ) ) , ( 'invocation_expecting_input' , ObjectMeta ( "B" , name = "InvocationInfo_ExpectingInput" , optional = True ) ) , ( 'invocation_line' , ObjectMeta ( "S" , name = "InvocationInfo_Line" , optional = True ) ) , ( 'invocation_offset_in_line' , ObjectMeta ( "I32" , name = "InvocationInfo_OffsetInLine" , optional = True ) ) , ( 'invocation_position_message' , ObjectMeta ( "S" , name = "InvocationInfo_PositionMessage" , optional = True ) ) , ( 'invocation_script_name' , ObjectMeta ( "S" , name = "InvocationInfo_ScriptName" , optional = True ) ) , ( 'invocation_script_line_number' , ObjectMeta ( "I32" , name = "InvocationInfo_ScriptLineNumber" , optional = True ) ) , ( 'invocation_history_id' , ObjectMeta ( "I64" , name = "InvocationInfo_HistoryId" , optional = True ) ) , ( 'invocation_pipeline_length' , ObjectMeta ( "I32" , name = "InvocationInfo_PipelineLength" , optional = True ) ) , ( 'invocation_pipeline_position' , ObjectMeta ( "I32" , name = "InvocationInfo_PipelinePosition" , optional = True ) ) , ( 'invocation_pipeline_iteration_info' , ListMeta ( name = "InvocationInfo_PipelineIterationInfo" , optional = True , list_value_meta = ObjectMeta ( "I32" ) , list_types = [ "System.In32[]" , "System.Array" , "System.Object" ] ) ) , ( 'command_type' , ObjectMeta ( "Obj" , name = "CommandInfo_CommandType" , object = CommandType , optional = True , ) ) , ( 'command_definition' , ObjectMeta ( "S" , name = "CommandInfo_Definition" , optional = True , ) ) , ( 'command_name' , ObjectMeta ( "S" , name = "CommandInfo_Name" , optional = True ) ) , ( 'command_visibility' , ObjectMeta ( "Obj" , name = "CommandInfo_Visibility" , object = SessionStateEntryVisibility , optional = True ) ) , ( 'pipeline_iteration_info' , ListMeta ( name = "PipelineIterationInfo" , optional = True , list_value_meta = ObjectMeta ( "I32" ) , list_types = [ "System.Collections.ObjectModel.ReadOnlyCollection`1[[" "System.Int32, mscorlib, Version=4.0.0.0, " "Culture=neutral, PublicKeyToken=b77a5c561934e089]]" , "System.Object" ] ) ) , ) self . exception = kwargs . get ( 'exception' ) self . target_info = kwargs . get ( 'target_info' ) self . invocation = kwargs . get ( 'invocation' ) self . fq_error = kwargs . get ( 'fq_error' ) self . category = kwargs . get ( 'category' ) self . activity = kwargs . get ( 'activity' ) self . reason = kwargs . get ( 'reason' ) self . target_name = kwargs . get ( 'target_name' ) self . target_type = kwargs . get ( 'target_type' ) self . message = kwargs . get ( 'message' ) self . details_message = kwargs . get ( 'details_message' ) self . action = kwargs . get ( 'action' ) self . pipeline_iteration_info = kwargs . get ( 'pipeline_iteration_info' ) self . invocation_name = kwargs . get ( 'invocation_name' ) self . invocation_bound_parameters = kwargs . get ( 'invocation_bound_parameters' ) self . invocation_unbound_arguments = kwargs . get ( 'invocation_unbound_arguments' ) self . invocation_command_origin = kwargs . get ( 'invocation_command_origin' ) self . invocation_expecting_input = kwargs . get ( 'invocation_expecting_input' ) self . invocation_line = kwargs . get ( 'invocation_line' ) self . invocation_offset_in_line = kwargs . get ( 'invocation_offset_in_line' ) self . invocation_position_message = kwargs . get ( 'invocation_position_message' ) self . invocation_script_name = kwargs . get ( 'invocation_script_name' ) self . invocation_script_line_number = kwargs . get ( 'invocation_script_line_number' ) self . invocation_history_id = kwargs . get ( 'invocation_history_id' ) self . invocation_pipeline_length = kwargs . get ( 'invocation_pipeline_length' ) self . invocation_pipeline_position = kwargs . get ( 'invocation_pipeline_position' ) self . invocation_pipeline_iteration_info = kwargs . get ( 'invocation_pipeline_iteration_info' ) self . command_type = kwargs . get ( 'command_type' ) self . command_definition = kwargs . get ( 'command_definition' ) self . command_name = kwargs . get ( 'command_name' ) self . command_visibility = kwargs . get ( 'command_visibility' ) self . extended_info_present = self . invocation is not None