func (o *AuditReport) ToSparse(fields ...string) elemental.SparseIdentifiable {

	if len(fields) == 0 {
		// nolint: goimports
		return &SparseAuditReport{
			AUID:                    &o.AUID,
			CWD:                     &o.CWD,
			EGID:                    &o.EGID,
			EUID:                    &o.EUID,
			EXE:                     &o.EXE,
			FSGID:                   &o.FSGID,
			FSUID:                   &o.FSUID,
			FilePath:                &o.FilePath,
			GID:                     &o.GID,
			ID:                      &o.ID,
			PER:                     &o.PER,
			PID:                     &o.PID,
			PPID:                    &o.PPID,
			SGID:                    &o.SGID,
			SUID:                    &o.SUID,
			UID:                     &o.UID,
			A0:                      &o.A0,
			A1:                      &o.A1,
			A2:                      &o.A2,
			A3:                      &o.A3,
			Arch:                    &o.Arch,
			Arguments:               &o.Arguments,
			AuditProfileID:          &o.AuditProfileID,
			AuditProfileNamespace:   &o.AuditProfileNamespace,
			Command:                 &o.Command,
			EnforcerID:              &o.EnforcerID,
			EnforcerNamespace:       &o.EnforcerNamespace,
			Exit:                    &o.Exit,
			MigrationsLog:           &o.MigrationsLog,
			ProcessingUnitID:        &o.ProcessingUnitID,
			ProcessingUnitNamespace: &o.ProcessingUnitNamespace,
			RecordType:              &o.RecordType,
			Sequence:                &o.Sequence,
			Success:                 &o.Success,
			Syscall:                 &o.Syscall,
			Timestamp:               &o.Timestamp,
			ZHash:                   &o.ZHash,
			Zone:                    &o.Zone,
		}
	}

	sp := &SparseAuditReport{}
	for _, f := range fields {
		switch f {
		case "AUID":
			sp.AUID = &(o.AUID)
		case "CWD":
			sp.CWD = &(o.CWD)
		case "EGID":
			sp.EGID = &(o.EGID)
		case "EUID":
			sp.EUID = &(o.EUID)
		case "EXE":
			sp.EXE = &(o.EXE)
		case "FSGID":
			sp.FSGID = &(o.FSGID)
		case "FSUID":
			sp.FSUID = &(o.FSUID)
		case "FilePath":
			sp.FilePath = &(o.FilePath)
		case "GID":
			sp.GID = &(o.GID)
		case "ID":
			sp.ID = &(o.ID)
		case "PER":
			sp.PER = &(o.PER)
		case "PID":
			sp.PID = &(o.PID)
		case "PPID":
			sp.PPID = &(o.PPID)
		case "SGID":
			sp.SGID = &(o.SGID)
		case "SUID":
			sp.SUID = &(o.SUID)
		case "UID":
			sp.UID = &(o.UID)
		case "a0":
			sp.A0 = &(o.A0)
		case "a1":
			sp.A1 = &(o.A1)
		case "a2":
			sp.A2 = &(o.A2)
		case "a3":
			sp.A3 = &(o.A3)
		case "arch":
			sp.Arch = &(o.Arch)
		case "arguments":
			sp.Arguments = &(o.Arguments)
		case "auditProfileID":
			sp.AuditProfileID = &(o.AuditProfileID)
		case "auditProfileNamespace":
			sp.AuditProfileNamespace = &(o.AuditProfileNamespace)
		case "command":
			sp.Command = &(o.Command)
		case "enforcerID":
			sp.EnforcerID = &(o.EnforcerID)
		case "enforcerNamespace":
			sp.EnforcerNamespace = &(o.EnforcerNamespace)
		case "exit":
			sp.Exit = &(o.Exit)
		case "migrationsLog":
			sp.MigrationsLog = &(o.MigrationsLog)
		case "processingUnitID":
			sp.ProcessingUnitID = &(o.ProcessingUnitID)
		case "processingUnitNamespace":
			sp.ProcessingUnitNamespace = &(o.ProcessingUnitNamespace)
		case "recordType":
			sp.RecordType = &(o.RecordType)
		case "sequence":
			sp.Sequence = &(o.Sequence)
		case "success":
			sp.Success = &(o.Success)
		case "syscall":
			sp.Syscall = &(o.Syscall)
		case "timestamp":
			sp.Timestamp = &(o.Timestamp)
		case "zHash":
			sp.ZHash = &(o.ZHash)
		case "zone":
			sp.Zone = &(o.Zone)
		}
	}

	return sp
}
// ToSparse returns the sparse version of the model.
// The returned object will only contain the given fields. No field means entire field set.
ToSparse returns the sparse version of the model.
The returned object will only contain the given fields. No field means entire field set.
// ToSparse returns the sparse version of the model . // The returned object will only contain the given fields . No field means entire field set .
func (o *AuditReport) ToSparse(fields ...string) elemental.SparseIdentifiable {
	if len(fields) == 0 {
		return &SparseAuditReport{
			AUID:                    &o.AUID,
			CWD:                     &o.CWD,
			EGID:                    &o.EGID,
			EUID:                    &o.EUID,
			EXE:                     &o.EXE,
			FSGID:                   &o.FSGID,
			FSUID:                   &o.FSUID,
			FilePath:                &o.FilePath,
			GID:                     &o.GID,
			ID:                      &o.ID,
			PER:                     &o.PER,
			PID:                     &o.PID,
			PPID:                    &o.PPID,
			SGID:                    &o.SGID,
			SUID:                    &o.SUID,
			UID:                     &o.UID,
			A0:                      &o.A0,
			A1:                      &o.A1,
			A2:                      &o.A2,
			A3:                      &o.A3,
			Arch:                    &o.Arch,
			Arguments:               &o.Arguments,
			AuditProfileID:          &o.AuditProfileID,
			AuditProfileNamespace:   &o.AuditProfileNamespace,
			Command:                 &o.Command,
			EnforcerID:              &o.EnforcerID,
			EnforcerNamespace:       &o.EnforcerNamespace,
			Exit:                    &o.Exit,
			MigrationsLog:           &o.MigrationsLog,
			ProcessingUnitID:        &o.ProcessingUnitID,
			ProcessingUnitNamespace: &o.ProcessingUnitNamespace,
			RecordType:              &o.RecordType,
			Sequence:                &o.Sequence,
			Success:                 &o.Success,
			Syscall:                 &o.Syscall,
			Timestamp:               &o.Timestamp,
			ZHash:                   &o.ZHash,
			Zone:                    &o.Zone,
		}
	}
	sp := &SparseAuditReport{}
	for _, f := range fields {
		switch f {
		case "AUID":
			sp.AUID = &(o.AUID)
		case "CWD":
			sp.CWD = &(o.CWD)
		case "EGID":
			sp.EGID = &(o.EGID)
		case "EUID":
			sp.EUID = &(o.EUID)
		case "EXE":
			sp.EXE = &(o.EXE)
		case "FSGID":
			sp.FSGID = &(o.FSGID)
		case "FSUID":
			sp.FSUID = &(o.FSUID)
		case "FilePath":
			sp.FilePath = &(o.FilePath)
		case "GID":
			sp.GID = &(o.GID)
		case "ID":
			sp.ID = &(o.ID)
		case "PER":
			sp.PER = &(o.PER)
		case "PID":
			sp.PID = &(o.PID)
		case "PPID":
			sp.PPID = &(o.PPID)
		case "SGID":
			sp.SGID = &(o.SGID)
		case "SUID":
			sp.SUID = &(o.SUID)
		case "UID":
			sp.UID = &(o.UID)
		case "a0":
			sp.A0 = &(o.A0)
		case "a1":
			sp.A1 = &(o.A1)
		case "a2":
			sp.A2 = &(o.A2)
		case "a3":
			sp.A3 = &(o.A3)
		case "arch":
			sp.Arch = &(o.Arch)
		case "arguments":
			sp.Arguments = &(o.Arguments)
		case "auditProfileID":
			sp.AuditProfileID = &(o.AuditProfileID)
		case "auditProfileNamespace":
			sp.AuditProfileNamespace = &(o.AuditProfileNamespace)
		case "command":
			sp.Command = &(o.Command)
		case "enforcerID":
			sp.EnforcerID = &(o.EnforcerID)
		case "enforcerNamespace":
			sp.EnforcerNamespace = &(o.EnforcerNamespace)
		case "exit":
			sp.Exit = &(o.Exit)
		case "migrationsLog":
			sp.MigrationsLog = &(o.MigrationsLog)
		case "processingUnitID":
			sp.ProcessingUnitID = &(o.ProcessingUnitID)
		case "processingUnitNamespace":
			sp.ProcessingUnitNamespace = &(o.ProcessingUnitNamespace)
		case "recordType":
			sp.RecordType = &(o.RecordType)
		case "sequence":
			sp.Sequence = &(o.Sequence)
		case "success":
			sp.Success = &(o.Success)
		case "syscall":
			sp.Syscall = &(o.Syscall)
		case "timestamp":
			sp.Timestamp = &(o.Timestamp)
		case "zHash":
			sp.ZHash = &(o.ZHash)
		case "zone":
			sp.Zone = &(o.Zone)
		}
	}
	return sp
}
func ( o * AuditReport ) ToSparse ( fields ... string ) elemental . SparseIdentifiable { if len ( fields ) == 0 { return & SparseAuditReport { AUID : & o . AUID , CWD : & o . CWD , EGID : & o . EGID , EUID : & o . EUID , EXE : & o . EXE , FSGID : & o . FSGID , FSUID : & o . FSUID , FilePath : & o . FilePath , GID : & o . GID , ID : & o . ID , PER : & o . PER , PID : & o . PID , PPID : & o . PPID , SGID : & o . SGID , SUID : & o . SUID , UID : & o . UID , A0 : & o . A0 , A1 : & o . A1 , A2 : & o . A2 , A3 : & o . A3 , Arch : & o . Arch , Arguments : & o . Arguments , AuditProfileID : & o . AuditProfileID , AuditProfileNamespace : & o . AuditProfileNamespace , Command : & o . Command , EnforcerID : & o . EnforcerID , EnforcerNamespace : & o . EnforcerNamespace , Exit : & o . Exit , MigrationsLog : & o . MigrationsLog , ProcessingUnitID : & o . ProcessingUnitID , ProcessingUnitNamespace : & o . ProcessingUnitNamespace , RecordType : & o . RecordType , Sequence : & o . Sequence , Success : & o . Success , Syscall : & o . Syscall , Timestamp : & o . Timestamp , ZHash : & o . ZHash , Zone : & o . Zone , } } sp := & SparseAuditReport { } for _ , f := range fields { switch f { case " " : sp . AUID = & ( o . AUID ) case " " : sp . CWD = & ( o . CWD ) case " " : sp . EGID = & ( o . EGID ) case " " : sp . EUID = & ( o . EUID ) case " " : sp . EXE = & ( o . EXE ) case " " : sp . FSGID = & ( o . FSGID ) case " " : sp . FSUID = & ( o . FSUID ) case " " : sp . FilePath = & ( o . FilePath ) case " " : sp . GID = & ( o . GID ) case " " : sp . ID = & ( o . ID ) case " " : sp . PER = & ( o . PER ) case " " : sp . PID = & ( o . PID ) case " " : sp . PPID = & ( o . PPID ) case " " : sp . SGID = & ( o . SGID ) case " " : sp . SUID = & ( o . SUID ) case " " : sp . UID = & ( o . UID ) case " " : sp . A0 = & ( o . A0 ) case " " : sp . A1 = & ( o . A1 ) case " " : sp . A2 = & ( o . A2 ) case " " : sp . A3 = & ( o . A3 ) case " " : sp . Arch = & ( o . Arch ) case " " : sp . Arguments = & ( o . Arguments ) case " " : sp . AuditProfileID = & ( o . AuditProfileID ) case " " : sp . AuditProfileNamespace = & ( o . AuditProfileNamespace ) case " " : sp . Command = & ( o . Command ) case " " : sp . EnforcerID = & ( o . EnforcerID ) case " " : sp . EnforcerNamespace = & ( o . EnforcerNamespace ) case " " : sp . Exit = & ( o . Exit ) case " " : sp . MigrationsLog = & ( o . MigrationsLog ) case " " : sp . ProcessingUnitID = & ( o . ProcessingUnitID ) case " " : sp . ProcessingUnitNamespace = & ( o . ProcessingUnitNamespace ) case " " : sp . RecordType = & ( o . RecordType ) case " " : sp . Sequence = & ( o . Sequence ) case " " : sp . Success = & ( o . Success ) case " " : sp . Syscall = & ( o . Syscall ) case " " : sp . Timestamp = & ( o . Timestamp ) case " " : sp . ZHash = & ( o . ZHash ) case " " : sp . Zone = & ( o . Zone ) } } return sp }
ToSparse returns the sparse version of the model.
ToSparse returns the sparse version of the model .
// nolint: goimports