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

	so := sparse.(*SparseCachedFlowReport)
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.Action != nil {
		o.Action = *so.Action
	}
	if so.DestinationController != nil {
		o.DestinationController = *so.DestinationController
	}
	if so.DestinationID != nil {
		o.DestinationID = *so.DestinationID
	}
	if so.DestinationIP != nil {
		o.DestinationIP = *so.DestinationIP
	}
	if so.DestinationNamespace != nil {
		o.DestinationNamespace = *so.DestinationNamespace
	}
	if so.DestinationPlatform != nil {
		o.DestinationPlatform = *so.DestinationPlatform
	}
	if so.DestinationPort != nil {
		o.DestinationPort = *so.DestinationPort
	}
	if so.DestinationType != nil {
		o.DestinationType = *so.DestinationType
	}
	if so.DropReason != nil {
		o.DropReason = *so.DropReason
	}
	if so.Encrypted != nil {
		o.Encrypted = *so.Encrypted
	}
	if so.EnforcerID != nil {
		o.EnforcerID = *so.EnforcerID
	}
	if so.IsLocalDestinationID != nil {
		o.IsLocalDestinationID = *so.IsLocalDestinationID
	}
	if so.IsLocalSourceID != nil {
		o.IsLocalSourceID = *so.IsLocalSourceID
	}
	if so.MigrationsLog != nil {
		o.MigrationsLog = *so.MigrationsLog
	}
	if so.Namespace != nil {
		o.Namespace = *so.Namespace
	}
	if so.Observed != nil {
		o.Observed = *so.Observed
	}
	if so.ObservedAction != nil {
		o.ObservedAction = *so.ObservedAction
	}
	if so.ObservedDropReason != nil {
		o.ObservedDropReason = *so.ObservedDropReason
	}
	if so.ObservedEncrypted != nil {
		o.ObservedEncrypted = *so.ObservedEncrypted
	}
	if so.ObservedPolicyID != nil {
		o.ObservedPolicyID = *so.ObservedPolicyID
	}
	if so.ObservedPolicyNamespace != nil {
		o.ObservedPolicyNamespace = *so.ObservedPolicyNamespace
	}
	if so.PolicyID != nil {
		o.PolicyID = *so.PolicyID
	}
	if so.PolicyNamespace != nil {
		o.PolicyNamespace = *so.PolicyNamespace
	}
	if so.Protocol != nil {
		o.Protocol = *so.Protocol
	}
	if so.RemoteNamespace != nil {
		o.RemoteNamespace = *so.RemoteNamespace
	}
	if so.RuleName != nil {
		o.RuleName = *so.RuleName
	}
	if so.ServiceClaimHash != nil {
		o.ServiceClaimHash = *so.ServiceClaimHash
	}
	if so.ServiceID != nil {
		o.ServiceID = *so.ServiceID
	}
	if so.ServiceNamespace != nil {
		o.ServiceNamespace = *so.ServiceNamespace
	}
	if so.ServiceType != nil {
		o.ServiceType = *so.ServiceType
	}
	if so.ServiceURL != nil {
		o.ServiceURL = *so.ServiceURL
	}
	if so.SourceController != nil {
		o.SourceController = *so.SourceController
	}
	if so.SourceID != nil {
		o.SourceID = *so.SourceID
	}
	if so.SourceIP != nil {
		o.SourceIP = *so.SourceIP
	}
	if so.SourceNamespace != nil {
		o.SourceNamespace = *so.SourceNamespace
	}
	if so.SourcePlatform != nil {
		o.SourcePlatform = *so.SourcePlatform
	}
	if so.SourceType != nil {
		o.SourceType = *so.SourceType
	}
	if so.Timestamp != nil {
		o.Timestamp = *so.Timestamp
	}
	if so.Value != nil {
		o.Value = *so.Value
	}
	if so.ZHash != nil {
		o.ZHash = *so.ZHash
	}
	if so.Zone != nil {
		o.Zone = *so.Zone
	}
}
// Patch apply the non nil value of a *SparseCachedFlowReport to the object.
Patch apply the non nil value of a *SparseCachedFlowReport to the object.
// Patch apply the non nil value of a * SparseCachedFlowReport to the object .
func (o *CachedFlowReport) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseCachedFlowReport)
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.Action != nil {
		o.Action = *so.Action
	}
	if so.DestinationController != nil {
		o.DestinationController = *so.DestinationController
	}
	if so.DestinationID != nil {
		o.DestinationID = *so.DestinationID
	}
	if so.DestinationIP != nil {
		o.DestinationIP = *so.DestinationIP
	}
	if so.DestinationNamespace != nil {
		o.DestinationNamespace = *so.DestinationNamespace
	}
	if so.DestinationPlatform != nil {
		o.DestinationPlatform = *so.DestinationPlatform
	}
	if so.DestinationPort != nil {
		o.DestinationPort = *so.DestinationPort
	}
	if so.DestinationType != nil {
		o.DestinationType = *so.DestinationType
	}
	if so.DropReason != nil {
		o.DropReason = *so.DropReason
	}
	if so.Encrypted != nil {
		o.Encrypted = *so.Encrypted
	}
	if so.EnforcerID != nil {
		o.EnforcerID = *so.EnforcerID
	}
	if so.IsLocalDestinationID != nil {
		o.IsLocalDestinationID = *so.IsLocalDestinationID
	}
	if so.IsLocalSourceID != nil {
		o.IsLocalSourceID = *so.IsLocalSourceID
	}
	if so.MigrationsLog != nil {
		o.MigrationsLog = *so.MigrationsLog
	}
	if so.Namespace != nil {
		o.Namespace = *so.Namespace
	}
	if so.Observed != nil {
		o.Observed = *so.Observed
	}
	if so.ObservedAction != nil {
		o.ObservedAction = *so.ObservedAction
	}
	if so.ObservedDropReason != nil {
		o.ObservedDropReason = *so.ObservedDropReason
	}
	if so.ObservedEncrypted != nil {
		o.ObservedEncrypted = *so.ObservedEncrypted
	}
	if so.ObservedPolicyID != nil {
		o.ObservedPolicyID = *so.ObservedPolicyID
	}
	if so.ObservedPolicyNamespace != nil {
		o.ObservedPolicyNamespace = *so.ObservedPolicyNamespace
	}
	if so.PolicyID != nil {
		o.PolicyID = *so.PolicyID
	}
	if so.PolicyNamespace != nil {
		o.PolicyNamespace = *so.PolicyNamespace
	}
	if so.Protocol != nil {
		o.Protocol = *so.Protocol
	}
	if so.RemoteNamespace != nil {
		o.RemoteNamespace = *so.RemoteNamespace
	}
	if so.RuleName != nil {
		o.RuleName = *so.RuleName
	}
	if so.ServiceClaimHash != nil {
		o.ServiceClaimHash = *so.ServiceClaimHash
	}
	if so.ServiceID != nil {
		o.ServiceID = *so.ServiceID
	}
	if so.ServiceNamespace != nil {
		o.ServiceNamespace = *so.ServiceNamespace
	}
	if so.ServiceType != nil {
		o.ServiceType = *so.ServiceType
	}
	if so.ServiceURL != nil {
		o.ServiceURL = *so.ServiceURL
	}
	if so.SourceController != nil {
		o.SourceController = *so.SourceController
	}
	if so.SourceID != nil {
		o.SourceID = *so.SourceID
	}
	if so.SourceIP != nil {
		o.SourceIP = *so.SourceIP
	}
	if so.SourceNamespace != nil {
		o.SourceNamespace = *so.SourceNamespace
	}
	if so.SourcePlatform != nil {
		o.SourcePlatform = *so.SourcePlatform
	}
	if so.SourceType != nil {
		o.SourceType = *so.SourceType
	}
	if so.Timestamp != nil {
		o.Timestamp = *so.Timestamp
	}
	if so.Value != nil {
		o.Value = *so.Value
	}
	if so.ZHash != nil {
		o.ZHash = *so.ZHash
	}
	if so.Zone != nil {
		o.Zone = *so.Zone
	}
}
func ( o * CachedFlowReport ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseCachedFlowReport ) if so . ID != nil { o . ID = * so . ID } if so . Action != nil { o . Action = * so . Action } if so . DestinationController != nil { o . DestinationController = * so . DestinationController } if so . DestinationID != nil { o . DestinationID = * so . DestinationID } if so . DestinationIP != nil { o . DestinationIP = * so . DestinationIP } if so . DestinationNamespace != nil { o . DestinationNamespace = * so . DestinationNamespace } if so . DestinationPlatform != nil { o . DestinationPlatform = * so . DestinationPlatform } if so . DestinationPort != nil { o . DestinationPort = * so . DestinationPort } if so . DestinationType != nil { o . DestinationType = * so . DestinationType } if so . DropReason != nil { o . DropReason = * so . DropReason } if so . Encrypted != nil { o . Encrypted = * so . Encrypted } if so . EnforcerID != nil { o . EnforcerID = * so . EnforcerID } if so . IsLocalDestinationID != nil { o . IsLocalDestinationID = * so . IsLocalDestinationID } if so . IsLocalSourceID != nil { o . IsLocalSourceID = * so . IsLocalSourceID } if so . MigrationsLog != nil { o . MigrationsLog = * so . MigrationsLog } if so . Namespace != nil { o . Namespace = * so . Namespace } if so . Observed != nil { o . Observed = * so . Observed } if so . ObservedAction != nil { o . ObservedAction = * so . ObservedAction } if so . ObservedDropReason != nil { o . ObservedDropReason = * so . ObservedDropReason } if so . ObservedEncrypted != nil { o . ObservedEncrypted = * so . ObservedEncrypted } if so . ObservedPolicyID != nil { o . ObservedPolicyID = * so . ObservedPolicyID } if so . ObservedPolicyNamespace != nil { o . ObservedPolicyNamespace = * so . ObservedPolicyNamespace } if so . PolicyID != nil { o . PolicyID = * so . PolicyID } if so . PolicyNamespace != nil { o . PolicyNamespace = * so . PolicyNamespace } if so . Protocol != nil { o . Protocol = * so . Protocol } if so . RemoteNamespace != nil { o . RemoteNamespace = * so . RemoteNamespace } if so . RuleName != nil { o . RuleName = * so . RuleName } if so . ServiceClaimHash != nil { o . ServiceClaimHash = * so . ServiceClaimHash } if so . ServiceID != nil { o . ServiceID = * so . ServiceID } if so . ServiceNamespace != nil { o . ServiceNamespace = * so . ServiceNamespace } if so . ServiceType != nil { o . ServiceType = * so . ServiceType } if so . ServiceURL != nil { o . ServiceURL = * so . ServiceURL } if so . SourceController != nil { o . SourceController = * so . SourceController } if so . SourceID != nil { o . SourceID = * so . SourceID } if so . SourceIP != nil { o . SourceIP = * so . SourceIP } if so . SourceNamespace != nil { o . SourceNamespace = * so . SourceNamespace } if so . SourcePlatform != nil { o . SourcePlatform = * so . SourcePlatform } if so . SourceType != nil { o . SourceType = * so . SourceType } if so . Timestamp != nil { o . Timestamp = * so . Timestamp } if so . Value != nil { o . Value = * so . Value } if so . ZHash != nil { o . ZHash = * so . ZHash } if so . Zone != nil { o . Zone = * so . Zone } }
Patch apply the non nil value of a *SparseCachedFlowReport to the object.
Patch apply the non nil value of a * SparseCachedFlowReport to the object .