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

	so := sparse.(*SparseProcessingUnit)
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.Annotations != nil {
		o.Annotations = *so.Annotations
	}
	if so.Archived != nil {
		o.Archived = *so.Archived
	}
	if so.AssociatedTags != nil {
		o.AssociatedTags = *so.AssociatedTags
	}
	if so.ClientLocalID != nil {
		o.ClientLocalID = *so.ClientLocalID
	}
	if so.CollectInfo != nil {
		o.CollectInfo = *so.CollectInfo
	}
	if so.CollectedInfo != nil {
		o.CollectedInfo = *so.CollectedInfo
	}
	if so.Controller != nil {
		o.Controller = *so.Controller
	}
	if so.CreateIdempotencyKey != nil {
		o.CreateIdempotencyKey = *so.CreateIdempotencyKey
	}
	if so.CreateTime != nil {
		o.CreateTime = *so.CreateTime
	}
	if so.DatapathType != nil {
		o.DatapathType = *so.DatapathType
	}
	if so.Description != nil {
		o.Description = *so.Description
	}
	if so.EnforcementStatus != nil {
		o.EnforcementStatus = *so.EnforcementStatus
	}
	if so.EnforcerID != nil {
		o.EnforcerID = *so.EnforcerID
	}
	if so.EnforcerNamespace != nil {
		o.EnforcerNamespace = *so.EnforcerNamespace
	}
	if so.Image != nil {
		o.Image = *so.Image
	}
	if so.Images != nil {
		o.Images = *so.Images
	}
	if so.LastCollectionTime != nil {
		o.LastCollectionTime = *so.LastCollectionTime
	}
	if so.LastLocalTimestamp != nil {
		o.LastLocalTimestamp = *so.LastLocalTimestamp
	}
	if so.LastSyncTime != nil {
		o.LastSyncTime = *so.LastSyncTime
	}
	if so.Metadata != nil {
		o.Metadata = *so.Metadata
	}
	if so.MigrationsLog != nil {
		o.MigrationsLog = *so.MigrationsLog
	}
	if so.Name != nil {
		o.Name = *so.Name
	}
	if so.Namespace != nil {
		o.Namespace = *so.Namespace
	}
	if so.NativeContextID != nil {
		o.NativeContextID = *so.NativeContextID
	}
	if so.NetworkServices != nil {
		o.NetworkServices = *so.NetworkServices
	}
	if so.NormalizedTags != nil {
		o.NormalizedTags = *so.NormalizedTags
	}
	if so.OperationalStatus != nil {
		o.OperationalStatus = *so.OperationalStatus
	}
	if so.Protected != nil {
		o.Protected = *so.Protected
	}
	if so.Tracing != nil {
		o.Tracing = so.Tracing
	}
	if so.Type != nil {
		o.Type = *so.Type
	}
	if so.UpdateIdempotencyKey != nil {
		o.UpdateIdempotencyKey = *so.UpdateIdempotencyKey
	}
	if so.UpdateTime != nil {
		o.UpdateTime = *so.UpdateTime
	}
	if so.Vulnerabilities != nil {
		o.Vulnerabilities = *so.Vulnerabilities
	}
	if so.VulnerabilityLevel != nil {
		o.VulnerabilityLevel = *so.VulnerabilityLevel
	}
	if so.ZHash != nil {
		o.ZHash = *so.ZHash
	}
	if so.Zone != nil {
		o.Zone = *so.Zone
	}
}
// Patch apply the non nil value of a *SparseProcessingUnit to the object.
Patch apply the non nil value of a *SparseProcessingUnit to the object.
// Patch apply the non nil value of a * SparseProcessingUnit to the object .
func (o *ProcessingUnit) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseProcessingUnit)
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.Annotations != nil {
		o.Annotations = *so.Annotations
	}
	if so.Archived != nil {
		o.Archived = *so.Archived
	}
	if so.AssociatedTags != nil {
		o.AssociatedTags = *so.AssociatedTags
	}
	if so.ClientLocalID != nil {
		o.ClientLocalID = *so.ClientLocalID
	}
	if so.CollectInfo != nil {
		o.CollectInfo = *so.CollectInfo
	}
	if so.CollectedInfo != nil {
		o.CollectedInfo = *so.CollectedInfo
	}
	if so.Controller != nil {
		o.Controller = *so.Controller
	}
	if so.CreateIdempotencyKey != nil {
		o.CreateIdempotencyKey = *so.CreateIdempotencyKey
	}
	if so.CreateTime != nil {
		o.CreateTime = *so.CreateTime
	}
	if so.DatapathType != nil {
		o.DatapathType = *so.DatapathType
	}
	if so.Description != nil {
		o.Description = *so.Description
	}
	if so.EnforcementStatus != nil {
		o.EnforcementStatus = *so.EnforcementStatus
	}
	if so.EnforcerID != nil {
		o.EnforcerID = *so.EnforcerID
	}
	if so.EnforcerNamespace != nil {
		o.EnforcerNamespace = *so.EnforcerNamespace
	}
	if so.Image != nil {
		o.Image = *so.Image
	}
	if so.Images != nil {
		o.Images = *so.Images
	}
	if so.LastCollectionTime != nil {
		o.LastCollectionTime = *so.LastCollectionTime
	}
	if so.LastLocalTimestamp != nil {
		o.LastLocalTimestamp = *so.LastLocalTimestamp
	}
	if so.LastSyncTime != nil {
		o.LastSyncTime = *so.LastSyncTime
	}
	if so.Metadata != nil {
		o.Metadata = *so.Metadata
	}
	if so.MigrationsLog != nil {
		o.MigrationsLog = *so.MigrationsLog
	}
	if so.Name != nil {
		o.Name = *so.Name
	}
	if so.Namespace != nil {
		o.Namespace = *so.Namespace
	}
	if so.NativeContextID != nil {
		o.NativeContextID = *so.NativeContextID
	}
	if so.NetworkServices != nil {
		o.NetworkServices = *so.NetworkServices
	}
	if so.NormalizedTags != nil {
		o.NormalizedTags = *so.NormalizedTags
	}
	if so.OperationalStatus != nil {
		o.OperationalStatus = *so.OperationalStatus
	}
	if so.Protected != nil {
		o.Protected = *so.Protected
	}
	if so.Tracing != nil {
		o.Tracing = so.Tracing
	}
	if so.Type != nil {
		o.Type = *so.Type
	}
	if so.UpdateIdempotencyKey != nil {
		o.UpdateIdempotencyKey = *so.UpdateIdempotencyKey
	}
	if so.UpdateTime != nil {
		o.UpdateTime = *so.UpdateTime
	}
	if so.Vulnerabilities != nil {
		o.Vulnerabilities = *so.Vulnerabilities
	}
	if so.VulnerabilityLevel != nil {
		o.VulnerabilityLevel = *so.VulnerabilityLevel
	}
	if so.ZHash != nil {
		o.ZHash = *so.ZHash
	}
	if so.Zone != nil {
		o.Zone = *so.Zone
	}
}
func ( o * ProcessingUnit ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseProcessingUnit ) if so . ID != nil { o . ID = * so . ID } if so . Annotations != nil { o . Annotations = * so . Annotations } if so . Archived != nil { o . Archived = * so . Archived } if so . AssociatedTags != nil { o . AssociatedTags = * so . AssociatedTags } if so . ClientLocalID != nil { o . ClientLocalID = * so . ClientLocalID } if so . CollectInfo != nil { o . CollectInfo = * so . CollectInfo } if so . CollectedInfo != nil { o . CollectedInfo = * so . CollectedInfo } if so . Controller != nil { o . Controller = * so . Controller } if so . CreateIdempotencyKey != nil { o . CreateIdempotencyKey = * so . CreateIdempotencyKey } if so . CreateTime != nil { o . CreateTime = * so . CreateTime } if so . DatapathType != nil { o . DatapathType = * so . DatapathType } if so . Description != nil { o . Description = * so . Description } if so . EnforcementStatus != nil { o . EnforcementStatus = * so . EnforcementStatus } if so . EnforcerID != nil { o . EnforcerID = * so . EnforcerID } if so . EnforcerNamespace != nil { o . EnforcerNamespace = * so . EnforcerNamespace } if so . Image != nil { o . Image = * so . Image } if so . Images != nil { o . Images = * so . Images } if so . LastCollectionTime != nil { o . LastCollectionTime = * so . LastCollectionTime } if so . LastLocalTimestamp != nil { o . LastLocalTimestamp = * so . LastLocalTimestamp } if so . LastSyncTime != nil { o . LastSyncTime = * so . LastSyncTime } if so . Metadata != nil { o . Metadata = * so . Metadata } if so . MigrationsLog != nil { o . MigrationsLog = * so . MigrationsLog } if so . Name != nil { o . Name = * so . Name } if so . Namespace != nil { o . Namespace = * so . Namespace } if so . NativeContextID != nil { o . NativeContextID = * so . NativeContextID } if so . NetworkServices != nil { o . NetworkServices = * so . NetworkServices } if so . NormalizedTags != nil { o . NormalizedTags = * so . NormalizedTags } if so . OperationalStatus != nil { o . OperationalStatus = * so . OperationalStatus } if so . Protected != nil { o . Protected = * so . Protected } if so . Tracing != nil { o . Tracing = so . Tracing } if so . Type != nil { o . Type = * so . Type } if so . UpdateIdempotencyKey != nil { o . UpdateIdempotencyKey = * so . UpdateIdempotencyKey } if so . UpdateTime != nil { o . UpdateTime = * so . UpdateTime } if so . Vulnerabilities != nil { o . Vulnerabilities = * so . Vulnerabilities } if so . VulnerabilityLevel != nil { o . VulnerabilityLevel = * so . VulnerabilityLevel } if so . ZHash != nil { o . ZHash = * so . ZHash } if so . Zone != nil { o . Zone = * so . Zone } }
Patch apply the non nil value of a *SparseProcessingUnit to the object.
Patch apply the non nil value of a * SparseProcessingUnit to the object .