func (o *AuditReport) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}

	so := sparse.(*SparseAuditReport)
	if so.AUID != nil {
		o.AUID = *so.AUID
	}
	if so.CWD != nil {
		o.CWD = *so.CWD
	}
	if so.EGID != nil {
		o.EGID = *so.EGID
	}
	if so.EUID != nil {
		o.EUID = *so.EUID
	}
	if so.EXE != nil {
		o.EXE = *so.EXE
	}
	if so.FSGID != nil {
		o.FSGID = *so.FSGID
	}
	if so.FSUID != nil {
		o.FSUID = *so.FSUID
	}
	if so.FilePath != nil {
		o.FilePath = *so.FilePath
	}
	if so.GID != nil {
		o.GID = *so.GID
	}
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.PER != nil {
		o.PER = *so.PER
	}
	if so.PID != nil {
		o.PID = *so.PID
	}
	if so.PPID != nil {
		o.PPID = *so.PPID
	}
	if so.SGID != nil {
		o.SGID = *so.SGID
	}
	if so.SUID != nil {
		o.SUID = *so.SUID
	}
	if so.UID != nil {
		o.UID = *so.UID
	}
	if so.A0 != nil {
		o.A0 = *so.A0
	}
	if so.A1 != nil {
		o.A1 = *so.A1
	}
	if so.A2 != nil {
		o.A2 = *so.A2
	}
	if so.A3 != nil {
		o.A3 = *so.A3
	}
	if so.Arch != nil {
		o.Arch = *so.Arch
	}
	if so.Arguments != nil {
		o.Arguments = *so.Arguments
	}
	if so.AuditProfileID != nil {
		o.AuditProfileID = *so.AuditProfileID
	}
	if so.AuditProfileNamespace != nil {
		o.AuditProfileNamespace = *so.AuditProfileNamespace
	}
	if so.Command != nil {
		o.Command = *so.Command
	}
	if so.EnforcerID != nil {
		o.EnforcerID = *so.EnforcerID
	}
	if so.EnforcerNamespace != nil {
		o.EnforcerNamespace = *so.EnforcerNamespace
	}
	if so.Exit != nil {
		o.Exit = *so.Exit
	}
	if so.MigrationsLog != nil {
		o.MigrationsLog = *so.MigrationsLog
	}
	if so.ProcessingUnitID != nil {
		o.ProcessingUnitID = *so.ProcessingUnitID
	}
	if so.ProcessingUnitNamespace != nil {
		o.ProcessingUnitNamespace = *so.ProcessingUnitNamespace
	}
	if so.RecordType != nil {
		o.RecordType = *so.RecordType
	}
	if so.Sequence != nil {
		o.Sequence = *so.Sequence
	}
	if so.Success != nil {
		o.Success = *so.Success
	}
	if so.Syscall != nil {
		o.Syscall = *so.Syscall
	}
	if so.Timestamp != nil {
		o.Timestamp = *so.Timestamp
	}
	if so.ZHash != nil {
		o.ZHash = *so.ZHash
	}
	if so.Zone != nil {
		o.Zone = *so.Zone
	}
}
// Patch apply the non nil value of a *SparseAuditReport to the object.
Patch apply the non nil value of a *SparseAuditReport to the object.
// Patch apply the non nil value of a * SparseAuditReport to the object .
func (o *AuditReport) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseAuditReport)
	if so.AUID != nil {
		o.AUID = *so.AUID
	}
	if so.CWD != nil {
		o.CWD = *so.CWD
	}
	if so.EGID != nil {
		o.EGID = *so.EGID
	}
	if so.EUID != nil {
		o.EUID = *so.EUID
	}
	if so.EXE != nil {
		o.EXE = *so.EXE
	}
	if so.FSGID != nil {
		o.FSGID = *so.FSGID
	}
	if so.FSUID != nil {
		o.FSUID = *so.FSUID
	}
	if so.FilePath != nil {
		o.FilePath = *so.FilePath
	}
	if so.GID != nil {
		o.GID = *so.GID
	}
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.PER != nil {
		o.PER = *so.PER
	}
	if so.PID != nil {
		o.PID = *so.PID
	}
	if so.PPID != nil {
		o.PPID = *so.PPID
	}
	if so.SGID != nil {
		o.SGID = *so.SGID
	}
	if so.SUID != nil {
		o.SUID = *so.SUID
	}
	if so.UID != nil {
		o.UID = *so.UID
	}
	if so.A0 != nil {
		o.A0 = *so.A0
	}
	if so.A1 != nil {
		o.A1 = *so.A1
	}
	if so.A2 != nil {
		o.A2 = *so.A2
	}
	if so.A3 != nil {
		o.A3 = *so.A3
	}
	if so.Arch != nil {
		o.Arch = *so.Arch
	}
	if so.Arguments != nil {
		o.Arguments = *so.Arguments
	}
	if so.AuditProfileID != nil {
		o.AuditProfileID = *so.AuditProfileID
	}
	if so.AuditProfileNamespace != nil {
		o.AuditProfileNamespace = *so.AuditProfileNamespace
	}
	if so.Command != nil {
		o.Command = *so.Command
	}
	if so.EnforcerID != nil {
		o.EnforcerID = *so.EnforcerID
	}
	if so.EnforcerNamespace != nil {
		o.EnforcerNamespace = *so.EnforcerNamespace
	}
	if so.Exit != nil {
		o.Exit = *so.Exit
	}
	if so.MigrationsLog != nil {
		o.MigrationsLog = *so.MigrationsLog
	}
	if so.ProcessingUnitID != nil {
		o.ProcessingUnitID = *so.ProcessingUnitID
	}
	if so.ProcessingUnitNamespace != nil {
		o.ProcessingUnitNamespace = *so.ProcessingUnitNamespace
	}
	if so.RecordType != nil {
		o.RecordType = *so.RecordType
	}
	if so.Sequence != nil {
		o.Sequence = *so.Sequence
	}
	if so.Success != nil {
		o.Success = *so.Success
	}
	if so.Syscall != nil {
		o.Syscall = *so.Syscall
	}
	if so.Timestamp != nil {
		o.Timestamp = *so.Timestamp
	}
	if so.ZHash != nil {
		o.ZHash = *so.ZHash
	}
	if so.Zone != nil {
		o.Zone = *so.Zone
	}
}
func ( o * AuditReport ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseAuditReport ) if so . AUID != nil { o . AUID = * so . AUID } if so . CWD != nil { o . CWD = * so . CWD } if so . EGID != nil { o . EGID = * so . EGID } if so . EUID != nil { o . EUID = * so . EUID } if so . EXE != nil { o . EXE = * so . EXE } if so . FSGID != nil { o . FSGID = * so . FSGID } if so . FSUID != nil { o . FSUID = * so . FSUID } if so . FilePath != nil { o . FilePath = * so . FilePath } if so . GID != nil { o . GID = * so . GID } if so . ID != nil { o . ID = * so . ID } if so . PER != nil { o . PER = * so . PER } if so . PID != nil { o . PID = * so . PID } if so . PPID != nil { o . PPID = * so . PPID } if so . SGID != nil { o . SGID = * so . SGID } if so . SUID != nil { o . SUID = * so . SUID } if so . UID != nil { o . UID = * so . UID } if so . A0 != nil { o . A0 = * so . A0 } if so . A1 != nil { o . A1 = * so . A1 } if so . A2 != nil { o . A2 = * so . A2 } if so . A3 != nil { o . A3 = * so . A3 } if so . Arch != nil { o . Arch = * so . Arch } if so . Arguments != nil { o . Arguments = * so . Arguments } if so . AuditProfileID != nil { o . AuditProfileID = * so . AuditProfileID } if so . AuditProfileNamespace != nil { o . AuditProfileNamespace = * so . AuditProfileNamespace } if so . Command != nil { o . Command = * so . Command } if so . EnforcerID != nil { o . EnforcerID = * so . EnforcerID } if so . EnforcerNamespace != nil { o . EnforcerNamespace = * so . EnforcerNamespace } if so . Exit != nil { o . Exit = * so . Exit } if so . MigrationsLog != nil { o . MigrationsLog = * so . MigrationsLog } if so . ProcessingUnitID != nil { o . ProcessingUnitID = * so . ProcessingUnitID } if so . ProcessingUnitNamespace != nil { o . ProcessingUnitNamespace = * so . ProcessingUnitNamespace } if so . RecordType != nil { o . RecordType = * so . RecordType } if so . Sequence != nil { o . Sequence = * so . Sequence } if so . Success != nil { o . Success = * so . Success } if so . Syscall != nil { o . Syscall = * so . Syscall } if so . Timestamp != nil { o . Timestamp = * so . Timestamp } if so . ZHash != nil { o . ZHash = * so . ZHash } if so . Zone != nil { o . Zone = * so . Zone } }
Patch apply the non nil value of a *SparseAuditReport to the object.
Patch apply the non nil value of a * SparseAuditReport to the object .