func (o *AuditReport) GetBSON() (interface{}, error) {

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesAuditReport{}

	s.AUID = o.AUID
	s.CWD = o.CWD
	s.EGID = o.EGID
	s.EUID = o.EUID
	s.EXE = o.EXE
	s.FSGID = o.FSGID
	s.FSUID = o.FSUID
	s.FilePath = o.FilePath
	s.GID = o.GID
	if o.ID != "" {
		s.ID = bson.ObjectIdHex(o.ID)
	}
	s.PER = o.PER
	s.PID = o.PID
	s.PPID = o.PPID
	s.SGID = o.SGID
	s.SUID = o.SUID
	s.UID = o.UID
	s.A0 = o.A0
	s.A1 = o.A1
	s.A2 = o.A2
	s.A3 = o.A3
	s.Arch = o.Arch
	s.Arguments = o.Arguments
	s.AuditProfileID = o.AuditProfileID
	s.AuditProfileNamespace = o.AuditProfileNamespace
	s.Command = o.Command
	s.EnforcerID = o.EnforcerID
	s.EnforcerNamespace = o.EnforcerNamespace
	s.Exit = o.Exit
	s.MigrationsLog = o.MigrationsLog
	s.ProcessingUnitID = o.ProcessingUnitID
	s.ProcessingUnitNamespace = o.ProcessingUnitNamespace
	s.RecordType = o.RecordType
	s.Sequence = o.Sequence
	s.Success = o.Success
	s.Syscall = o.Syscall
	s.Timestamp = o.Timestamp
	s.ZHash = o.ZHash
	s.Zone = o.Zone

	return s, nil
}
// GetBSON implements the bson marshaling interface.
// This is used to transparently convert ID to MongoDBID as ObectID.
GetBSON implements the bson marshaling interface.
This is used to transparently convert ID to MongoDBID as ObectID.
// GetBSON implements the bson marshaling interface . // This is used to transparently convert ID to MongoDBID as ObectID .
func (o *AuditReport) GetBSON() (interface{}, error) {
	if o == nil {
		return nil, nil
	}
	s := &mongoAttributesAuditReport{}
	s.AUID = o.AUID
	s.CWD = o.CWD
	s.EGID = o.EGID
	s.EUID = o.EUID
	s.EXE = o.EXE
	s.FSGID = o.FSGID
	s.FSUID = o.FSUID
	s.FilePath = o.FilePath
	s.GID = o.GID
	if o.ID != "" {
		s.ID = bson.ObjectIdHex(o.ID)
	}
	s.PER = o.PER
	s.PID = o.PID
	s.PPID = o.PPID
	s.SGID = o.SGID
	s.SUID = o.SUID
	s.UID = o.UID
	s.A0 = o.A0
	s.A1 = o.A1
	s.A2 = o.A2
	s.A3 = o.A3
	s.Arch = o.Arch
	s.Arguments = o.Arguments
	s.AuditProfileID = o.AuditProfileID
	s.AuditProfileNamespace = o.AuditProfileNamespace
	s.Command = o.Command
	s.EnforcerID = o.EnforcerID
	s.EnforcerNamespace = o.EnforcerNamespace
	s.Exit = o.Exit
	s.MigrationsLog = o.MigrationsLog
	s.ProcessingUnitID = o.ProcessingUnitID
	s.ProcessingUnitNamespace = o.ProcessingUnitNamespace
	s.RecordType = o.RecordType
	s.Sequence = o.Sequence
	s.Success = o.Success
	s.Syscall = o.Syscall
	s.Timestamp = o.Timestamp
	s.ZHash = o.ZHash
	s.Zone = o.Zone
	return s, nil
}
func ( o * AuditReport ) GetBSON ( ) ( interface { } , error ) { if o == nil { return nil , nil } s := & mongoAttributesAuditReport { } s . AUID = o . AUID s . CWD = o . CWD s . EGID = o . EGID s . EUID = o . EUID s . EXE = o . EXE s . FSGID = o . FSGID s . FSUID = o . FSUID s . FilePath = o . FilePath s . GID = o . GID if o . ID != " " { s . ID = bson . ObjectIdHex ( o . ID ) } s . PER = o . PER s . PID = o . PID s . PPID = o . PPID s . SGID = o . SGID s . SUID = o . SUID s . UID = o . UID s . A0 = o . A0 s . A1 = o . A1 s . A2 = o . A2 s . A3 = o . A3 s . Arch = o . Arch s . Arguments = o . Arguments s . AuditProfileID = o . AuditProfileID s . AuditProfileNamespace = o . AuditProfileNamespace s . Command = o . Command s . EnforcerID = o . EnforcerID s . EnforcerNamespace = o . EnforcerNamespace s . Exit = o . Exit s . MigrationsLog = o . MigrationsLog s . ProcessingUnitID = o . ProcessingUnitID s . ProcessingUnitNamespace = o . ProcessingUnitNamespace s . RecordType = o . RecordType s . Sequence = o . Sequence s . Success = o . Success s . Syscall = o . Syscall s . Timestamp = o . Timestamp s . ZHash = o . ZHash s . Zone = o . Zone return s , nil }
GetBSON implements the bson marshaling interface.
GetBSON implements the bson marshaling interface .