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

	so := sparse.(*SparsePingProbe)
	if so.ACLPolicyAction != nil {
		o.ACLPolicyAction = *so.ACLPolicyAction
	}
	if so.ACLPolicyID != nil {
		o.ACLPolicyID = *so.ACLPolicyID
	}
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.RTT != nil {
		o.RTT = *so.RTT
	}
	if so.ApplicationListening != nil {
		o.ApplicationListening = *so.ApplicationListening
	}
	if so.Claims != nil {
		o.Claims = *so.Claims
	}
	if so.ClaimsType != nil {
		o.ClaimsType = *so.ClaimsType
	}
	if so.CreateTime != nil {
		o.CreateTime = *so.CreateTime
	}
	if so.EnforcerID != nil {
		o.EnforcerID = *so.EnforcerID
	}
	if so.EnforcerNamespace != nil {
		o.EnforcerNamespace = *so.EnforcerNamespace
	}
	if so.EnforcerVersion != nil {
		o.EnforcerVersion = *so.EnforcerVersion
	}
	if so.Error != nil {
		o.Error = *so.Error
	}
	if so.ExcludedNetworks != nil {
		o.ExcludedNetworks = *so.ExcludedNetworks
	}
	if so.FourTuple != nil {
		o.FourTuple = *so.FourTuple
	}
	if so.IsServer != nil {
		o.IsServer = *so.IsServer
	}
	if so.IterationIndex != nil {
		o.IterationIndex = *so.IterationIndex
	}
	if so.MigrationsLog != nil {
		o.MigrationsLog = *so.MigrationsLog
	}
	if so.Namespace != nil {
		o.Namespace = *so.Namespace
	}
	if so.PayloadSize != nil {
		o.PayloadSize = *so.PayloadSize
	}
	if so.PayloadSizeType != nil {
		o.PayloadSizeType = *so.PayloadSizeType
	}
	if so.PeerCertExpiry != nil {
		o.PeerCertExpiry = *so.PeerCertExpiry
	}
	if so.PeerCertIssuer != nil {
		o.PeerCertIssuer = *so.PeerCertIssuer
	}
	if so.PeerCertSubject != nil {
		o.PeerCertSubject = *so.PeerCertSubject
	}
	if so.PingID != nil {
		o.PingID = *so.PingID
	}
	if so.PolicyAction != nil {
		o.PolicyAction = *so.PolicyAction
	}
	if so.PolicyID != nil {
		o.PolicyID = *so.PolicyID
	}
	if so.PolicyNamespace != nil {
		o.PolicyNamespace = *so.PolicyNamespace
	}
	if so.ProcessingUnitID != nil {
		o.ProcessingUnitID = *so.ProcessingUnitID
	}
	if so.Protocol != nil {
		o.Protocol = *so.Protocol
	}
	if so.RemoteController != nil {
		o.RemoteController = *so.RemoteController
	}
	if so.RemoteEndpointType != nil {
		o.RemoteEndpointType = *so.RemoteEndpointType
	}
	if so.RemoteNamespace != nil {
		o.RemoteNamespace = *so.RemoteNamespace
	}
	if so.RemoteNamespaceType != nil {
		o.RemoteNamespaceType = *so.RemoteNamespaceType
	}
	if so.RemoteProcessingUnitID != nil {
		o.RemoteProcessingUnitID = *so.RemoteProcessingUnitID
	}
	if so.SeqNum != nil {
		o.SeqNum = *so.SeqNum
	}
	if so.ServiceID != nil {
		o.ServiceID = *so.ServiceID
	}
	if so.ServiceType != nil {
		o.ServiceType = *so.ServiceType
	}
	if so.TargetTCPNetworks != nil {
		o.TargetTCPNetworks = *so.TargetTCPNetworks
	}
	if so.Type != nil {
		o.Type = *so.Type
	}
	if so.UpdateTime != nil {
		o.UpdateTime = *so.UpdateTime
	}
	if so.ZHash != nil {
		o.ZHash = *so.ZHash
	}
	if so.Zone != nil {
		o.Zone = *so.Zone
	}
}
// Patch apply the non nil value of a *SparsePingProbe to the object.
Patch apply the non nil value of a *SparsePingProbe to the object.
// Patch apply the non nil value of a * SparsePingProbe to the object .
func (o *PingProbe) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparsePingProbe)
	if so.ACLPolicyAction != nil {
		o.ACLPolicyAction = *so.ACLPolicyAction
	}
	if so.ACLPolicyID != nil {
		o.ACLPolicyID = *so.ACLPolicyID
	}
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.RTT != nil {
		o.RTT = *so.RTT
	}
	if so.ApplicationListening != nil {
		o.ApplicationListening = *so.ApplicationListening
	}
	if so.Claims != nil {
		o.Claims = *so.Claims
	}
	if so.ClaimsType != nil {
		o.ClaimsType = *so.ClaimsType
	}
	if so.CreateTime != nil {
		o.CreateTime = *so.CreateTime
	}
	if so.EnforcerID != nil {
		o.EnforcerID = *so.EnforcerID
	}
	if so.EnforcerNamespace != nil {
		o.EnforcerNamespace = *so.EnforcerNamespace
	}
	if so.EnforcerVersion != nil {
		o.EnforcerVersion = *so.EnforcerVersion
	}
	if so.Error != nil {
		o.Error = *so.Error
	}
	if so.ExcludedNetworks != nil {
		o.ExcludedNetworks = *so.ExcludedNetworks
	}
	if so.FourTuple != nil {
		o.FourTuple = *so.FourTuple
	}
	if so.IsServer != nil {
		o.IsServer = *so.IsServer
	}
	if so.IterationIndex != nil {
		o.IterationIndex = *so.IterationIndex
	}
	if so.MigrationsLog != nil {
		o.MigrationsLog = *so.MigrationsLog
	}
	if so.Namespace != nil {
		o.Namespace = *so.Namespace
	}
	if so.PayloadSize != nil {
		o.PayloadSize = *so.PayloadSize
	}
	if so.PayloadSizeType != nil {
		o.PayloadSizeType = *so.PayloadSizeType
	}
	if so.PeerCertExpiry != nil {
		o.PeerCertExpiry = *so.PeerCertExpiry
	}
	if so.PeerCertIssuer != nil {
		o.PeerCertIssuer = *so.PeerCertIssuer
	}
	if so.PeerCertSubject != nil {
		o.PeerCertSubject = *so.PeerCertSubject
	}
	if so.PingID != nil {
		o.PingID = *so.PingID
	}
	if so.PolicyAction != nil {
		o.PolicyAction = *so.PolicyAction
	}
	if so.PolicyID != nil {
		o.PolicyID = *so.PolicyID
	}
	if so.PolicyNamespace != nil {
		o.PolicyNamespace = *so.PolicyNamespace
	}
	if so.ProcessingUnitID != nil {
		o.ProcessingUnitID = *so.ProcessingUnitID
	}
	if so.Protocol != nil {
		o.Protocol = *so.Protocol
	}
	if so.RemoteController != nil {
		o.RemoteController = *so.RemoteController
	}
	if so.RemoteEndpointType != nil {
		o.RemoteEndpointType = *so.RemoteEndpointType
	}
	if so.RemoteNamespace != nil {
		o.RemoteNamespace = *so.RemoteNamespace
	}
	if so.RemoteNamespaceType != nil {
		o.RemoteNamespaceType = *so.RemoteNamespaceType
	}
	if so.RemoteProcessingUnitID != nil {
		o.RemoteProcessingUnitID = *so.RemoteProcessingUnitID
	}
	if so.SeqNum != nil {
		o.SeqNum = *so.SeqNum
	}
	if so.ServiceID != nil {
		o.ServiceID = *so.ServiceID
	}
	if so.ServiceType != nil {
		o.ServiceType = *so.ServiceType
	}
	if so.TargetTCPNetworks != nil {
		o.TargetTCPNetworks = *so.TargetTCPNetworks
	}
	if so.Type != nil {
		o.Type = *so.Type
	}
	if so.UpdateTime != nil {
		o.UpdateTime = *so.UpdateTime
	}
	if so.ZHash != nil {
		o.ZHash = *so.ZHash
	}
	if so.Zone != nil {
		o.Zone = *so.Zone
	}
}
func ( o * PingProbe ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparsePingProbe ) if so . ACLPolicyAction != nil { o . ACLPolicyAction = * so . ACLPolicyAction } if so . ACLPolicyID != nil { o . ACLPolicyID = * so . ACLPolicyID } if so . ID != nil { o . ID = * so . ID } if so . RTT != nil { o . RTT = * so . RTT } if so . ApplicationListening != nil { o . ApplicationListening = * so . ApplicationListening } if so . Claims != nil { o . Claims = * so . Claims } if so . ClaimsType != nil { o . ClaimsType = * so . ClaimsType } if so . CreateTime != nil { o . CreateTime = * so . CreateTime } if so . EnforcerID != nil { o . EnforcerID = * so . EnforcerID } if so . EnforcerNamespace != nil { o . EnforcerNamespace = * so . EnforcerNamespace } if so . EnforcerVersion != nil { o . EnforcerVersion = * so . EnforcerVersion } if so . Error != nil { o . Error = * so . Error } if so . ExcludedNetworks != nil { o . ExcludedNetworks = * so . ExcludedNetworks } if so . FourTuple != nil { o . FourTuple = * so . FourTuple } if so . IsServer != nil { o . IsServer = * so . IsServer } if so . IterationIndex != nil { o . IterationIndex = * so . IterationIndex } if so . MigrationsLog != nil { o . MigrationsLog = * so . MigrationsLog } if so . Namespace != nil { o . Namespace = * so . Namespace } if so . PayloadSize != nil { o . PayloadSize = * so . PayloadSize } if so . PayloadSizeType != nil { o . PayloadSizeType = * so . PayloadSizeType } if so . PeerCertExpiry != nil { o . PeerCertExpiry = * so . PeerCertExpiry } if so . PeerCertIssuer != nil { o . PeerCertIssuer = * so . PeerCertIssuer } if so . PeerCertSubject != nil { o . PeerCertSubject = * so . PeerCertSubject } if so . PingID != nil { o . PingID = * so . PingID } if so . PolicyAction != nil { o . PolicyAction = * so . PolicyAction } if so . PolicyID != nil { o . PolicyID = * so . PolicyID } if so . PolicyNamespace != nil { o . PolicyNamespace = * so . PolicyNamespace } if so . ProcessingUnitID != nil { o . ProcessingUnitID = * so . ProcessingUnitID } if so . Protocol != nil { o . Protocol = * so . Protocol } if so . RemoteController != nil { o . RemoteController = * so . RemoteController } if so . RemoteEndpointType != nil { o . RemoteEndpointType = * so . RemoteEndpointType } if so . RemoteNamespace != nil { o . RemoteNamespace = * so . RemoteNamespace } if so . RemoteNamespaceType != nil { o . RemoteNamespaceType = * so . RemoteNamespaceType } if so . RemoteProcessingUnitID != nil { o . RemoteProcessingUnitID = * so . RemoteProcessingUnitID } if so . SeqNum != nil { o . SeqNum = * so . SeqNum } if so . ServiceID != nil { o . ServiceID = * so . ServiceID } if so . ServiceType != nil { o . ServiceType = * so . ServiceType } if so . TargetTCPNetworks != nil { o . TargetTCPNetworks = * so . TargetTCPNetworks } if so . Type != nil { o . Type = * so . Type } if so . UpdateTime != nil { o . UpdateTime = * so . UpdateTime } if so . ZHash != nil { o . ZHash = * so . ZHash } if so . Zone != nil { o . Zone = * so . Zone } }
Patch apply the non nil value of a *SparsePingProbe to the object.
Patch apply the non nil value of a * SparsePingProbe to the object .