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

	if len(fields) == 0 {
		// nolint: goimports
		return &SparsePingProbe{
			ACLPolicyAction:        &o.ACLPolicyAction,
			ACLPolicyID:            &o.ACLPolicyID,
			ID:                     &o.ID,
			RTT:                    &o.RTT,
			ApplicationListening:   &o.ApplicationListening,
			Claims:                 &o.Claims,
			ClaimsType:             &o.ClaimsType,
			CreateTime:             &o.CreateTime,
			EnforcerID:             &o.EnforcerID,
			EnforcerNamespace:      &o.EnforcerNamespace,
			EnforcerVersion:        &o.EnforcerVersion,
			Error:                  &o.Error,
			ExcludedNetworks:       &o.ExcludedNetworks,
			FourTuple:              &o.FourTuple,
			IsServer:               &o.IsServer,
			IterationIndex:         &o.IterationIndex,
			MigrationsLog:          &o.MigrationsLog,
			Namespace:              &o.Namespace,
			PayloadSize:            &o.PayloadSize,
			PayloadSizeType:        &o.PayloadSizeType,
			PeerCertExpiry:         &o.PeerCertExpiry,
			PeerCertIssuer:         &o.PeerCertIssuer,
			PeerCertSubject:        &o.PeerCertSubject,
			PingID:                 &o.PingID,
			PolicyAction:           &o.PolicyAction,
			PolicyID:               &o.PolicyID,
			PolicyNamespace:        &o.PolicyNamespace,
			ProcessingUnitID:       &o.ProcessingUnitID,
			Protocol:               &o.Protocol,
			RemoteController:       &o.RemoteController,
			RemoteEndpointType:     &o.RemoteEndpointType,
			RemoteNamespace:        &o.RemoteNamespace,
			RemoteNamespaceType:    &o.RemoteNamespaceType,
			RemoteProcessingUnitID: &o.RemoteProcessingUnitID,
			SeqNum:                 &o.SeqNum,
			ServiceID:              &o.ServiceID,
			ServiceType:            &o.ServiceType,
			TargetTCPNetworks:      &o.TargetTCPNetworks,
			Type:                   &o.Type,
			UpdateTime:             &o.UpdateTime,
			ZHash:                  &o.ZHash,
			Zone:                   &o.Zone,
		}
	}

	sp := &SparsePingProbe{}
	for _, f := range fields {
		switch f {
		case "ACLPolicyAction":
			sp.ACLPolicyAction = &(o.ACLPolicyAction)
		case "ACLPolicyID":
			sp.ACLPolicyID = &(o.ACLPolicyID)
		case "ID":
			sp.ID = &(o.ID)
		case "RTT":
			sp.RTT = &(o.RTT)
		case "applicationListening":
			sp.ApplicationListening = &(o.ApplicationListening)
		case "claims":
			sp.Claims = &(o.Claims)
		case "claimsType":
			sp.ClaimsType = &(o.ClaimsType)
		case "createTime":
			sp.CreateTime = &(o.CreateTime)
		case "enforcerID":
			sp.EnforcerID = &(o.EnforcerID)
		case "enforcerNamespace":
			sp.EnforcerNamespace = &(o.EnforcerNamespace)
		case "enforcerVersion":
			sp.EnforcerVersion = &(o.EnforcerVersion)
		case "error":
			sp.Error = &(o.Error)
		case "excludedNetworks":
			sp.ExcludedNetworks = &(o.ExcludedNetworks)
		case "fourTuple":
			sp.FourTuple = &(o.FourTuple)
		case "isServer":
			sp.IsServer = &(o.IsServer)
		case "iterationIndex":
			sp.IterationIndex = &(o.IterationIndex)
		case "migrationsLog":
			sp.MigrationsLog = &(o.MigrationsLog)
		case "namespace":
			sp.Namespace = &(o.Namespace)
		case "payloadSize":
			sp.PayloadSize = &(o.PayloadSize)
		case "payloadSizeType":
			sp.PayloadSizeType = &(o.PayloadSizeType)
		case "peerCertExpiry":
			sp.PeerCertExpiry = &(o.PeerCertExpiry)
		case "peerCertIssuer":
			sp.PeerCertIssuer = &(o.PeerCertIssuer)
		case "peerCertSubject":
			sp.PeerCertSubject = &(o.PeerCertSubject)
		case "pingID":
			sp.PingID = &(o.PingID)
		case "policyAction":
			sp.PolicyAction = &(o.PolicyAction)
		case "policyID":
			sp.PolicyID = &(o.PolicyID)
		case "policyNamespace":
			sp.PolicyNamespace = &(o.PolicyNamespace)
		case "processingUnitID":
			sp.ProcessingUnitID = &(o.ProcessingUnitID)
		case "protocol":
			sp.Protocol = &(o.Protocol)
		case "remoteController":
			sp.RemoteController = &(o.RemoteController)
		case "remoteEndpointType":
			sp.RemoteEndpointType = &(o.RemoteEndpointType)
		case "remoteNamespace":
			sp.RemoteNamespace = &(o.RemoteNamespace)
		case "remoteNamespaceType":
			sp.RemoteNamespaceType = &(o.RemoteNamespaceType)
		case "remoteProcessingUnitID":
			sp.RemoteProcessingUnitID = &(o.RemoteProcessingUnitID)
		case "seqNum":
			sp.SeqNum = &(o.SeqNum)
		case "serviceID":
			sp.ServiceID = &(o.ServiceID)
		case "serviceType":
			sp.ServiceType = &(o.ServiceType)
		case "targetTCPNetworks":
			sp.TargetTCPNetworks = &(o.TargetTCPNetworks)
		case "type":
			sp.Type = &(o.Type)
		case "updateTime":
			sp.UpdateTime = &(o.UpdateTime)
		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 *PingProbe) ToSparse(fields ...string) elemental.SparseIdentifiable {
	if len(fields) == 0 {
		return &SparsePingProbe{
			ACLPolicyAction:        &o.ACLPolicyAction,
			ACLPolicyID:            &o.ACLPolicyID,
			ID:                     &o.ID,
			RTT:                    &o.RTT,
			ApplicationListening:   &o.ApplicationListening,
			Claims:                 &o.Claims,
			ClaimsType:             &o.ClaimsType,
			CreateTime:             &o.CreateTime,
			EnforcerID:             &o.EnforcerID,
			EnforcerNamespace:      &o.EnforcerNamespace,
			EnforcerVersion:        &o.EnforcerVersion,
			Error:                  &o.Error,
			ExcludedNetworks:       &o.ExcludedNetworks,
			FourTuple:              &o.FourTuple,
			IsServer:               &o.IsServer,
			IterationIndex:         &o.IterationIndex,
			MigrationsLog:          &o.MigrationsLog,
			Namespace:              &o.Namespace,
			PayloadSize:            &o.PayloadSize,
			PayloadSizeType:        &o.PayloadSizeType,
			PeerCertExpiry:         &o.PeerCertExpiry,
			PeerCertIssuer:         &o.PeerCertIssuer,
			PeerCertSubject:        &o.PeerCertSubject,
			PingID:                 &o.PingID,
			PolicyAction:           &o.PolicyAction,
			PolicyID:               &o.PolicyID,
			PolicyNamespace:        &o.PolicyNamespace,
			ProcessingUnitID:       &o.ProcessingUnitID,
			Protocol:               &o.Protocol,
			RemoteController:       &o.RemoteController,
			RemoteEndpointType:     &o.RemoteEndpointType,
			RemoteNamespace:        &o.RemoteNamespace,
			RemoteNamespaceType:    &o.RemoteNamespaceType,
			RemoteProcessingUnitID: &o.RemoteProcessingUnitID,
			SeqNum:                 &o.SeqNum,
			ServiceID:              &o.ServiceID,
			ServiceType:            &o.ServiceType,
			TargetTCPNetworks:      &o.TargetTCPNetworks,
			Type:                   &o.Type,
			UpdateTime:             &o.UpdateTime,
			ZHash:                  &o.ZHash,
			Zone:                   &o.Zone,
		}
	}
	sp := &SparsePingProbe{}
	for _, f := range fields {
		switch f {
		case "ACLPolicyAction":
			sp.ACLPolicyAction = &(o.ACLPolicyAction)
		case "ACLPolicyID":
			sp.ACLPolicyID = &(o.ACLPolicyID)
		case "ID":
			sp.ID = &(o.ID)
		case "RTT":
			sp.RTT = &(o.RTT)
		case "applicationListening":
			sp.ApplicationListening = &(o.ApplicationListening)
		case "claims":
			sp.Claims = &(o.Claims)
		case "claimsType":
			sp.ClaimsType = &(o.ClaimsType)
		case "createTime":
			sp.CreateTime = &(o.CreateTime)
		case "enforcerID":
			sp.EnforcerID = &(o.EnforcerID)
		case "enforcerNamespace":
			sp.EnforcerNamespace = &(o.EnforcerNamespace)
		case "enforcerVersion":
			sp.EnforcerVersion = &(o.EnforcerVersion)
		case "error":
			sp.Error = &(o.Error)
		case "excludedNetworks":
			sp.ExcludedNetworks = &(o.ExcludedNetworks)
		case "fourTuple":
			sp.FourTuple = &(o.FourTuple)
		case "isServer":
			sp.IsServer = &(o.IsServer)
		case "iterationIndex":
			sp.IterationIndex = &(o.IterationIndex)
		case "migrationsLog":
			sp.MigrationsLog = &(o.MigrationsLog)
		case "namespace":
			sp.Namespace = &(o.Namespace)
		case "payloadSize":
			sp.PayloadSize = &(o.PayloadSize)
		case "payloadSizeType":
			sp.PayloadSizeType = &(o.PayloadSizeType)
		case "peerCertExpiry":
			sp.PeerCertExpiry = &(o.PeerCertExpiry)
		case "peerCertIssuer":
			sp.PeerCertIssuer = &(o.PeerCertIssuer)
		case "peerCertSubject":
			sp.PeerCertSubject = &(o.PeerCertSubject)
		case "pingID":
			sp.PingID = &(o.PingID)
		case "policyAction":
			sp.PolicyAction = &(o.PolicyAction)
		case "policyID":
			sp.PolicyID = &(o.PolicyID)
		case "policyNamespace":
			sp.PolicyNamespace = &(o.PolicyNamespace)
		case "processingUnitID":
			sp.ProcessingUnitID = &(o.ProcessingUnitID)
		case "protocol":
			sp.Protocol = &(o.Protocol)
		case "remoteController":
			sp.RemoteController = &(o.RemoteController)
		case "remoteEndpointType":
			sp.RemoteEndpointType = &(o.RemoteEndpointType)
		case "remoteNamespace":
			sp.RemoteNamespace = &(o.RemoteNamespace)
		case "remoteNamespaceType":
			sp.RemoteNamespaceType = &(o.RemoteNamespaceType)
		case "remoteProcessingUnitID":
			sp.RemoteProcessingUnitID = &(o.RemoteProcessingUnitID)
		case "seqNum":
			sp.SeqNum = &(o.SeqNum)
		case "serviceID":
			sp.ServiceID = &(o.ServiceID)
		case "serviceType":
			sp.ServiceType = &(o.ServiceType)
		case "targetTCPNetworks":
			sp.TargetTCPNetworks = &(o.TargetTCPNetworks)
		case "type":
			sp.Type = &(o.Type)
		case "updateTime":
			sp.UpdateTime = &(o.UpdateTime)
		case "zHash":
			sp.ZHash = &(o.ZHash)
		case "zone":
			sp.Zone = &(o.Zone)
		}
	}
	return sp
}
func ( o * PingProbe ) ToSparse ( fields ... string ) elemental . SparseIdentifiable { if len ( fields ) == 0 { return & SparsePingProbe { ACLPolicyAction : & o . ACLPolicyAction , ACLPolicyID : & o . ACLPolicyID , ID : & o . ID , RTT : & o . RTT , ApplicationListening : & o . ApplicationListening , Claims : & o . Claims , ClaimsType : & o . ClaimsType , CreateTime : & o . CreateTime , EnforcerID : & o . EnforcerID , EnforcerNamespace : & o . EnforcerNamespace , EnforcerVersion : & o . EnforcerVersion , Error : & o . Error , ExcludedNetworks : & o . ExcludedNetworks , FourTuple : & o . FourTuple , IsServer : & o . IsServer , IterationIndex : & o . IterationIndex , MigrationsLog : & o . MigrationsLog , Namespace : & o . Namespace , PayloadSize : & o . PayloadSize , PayloadSizeType : & o . PayloadSizeType , PeerCertExpiry : & o . PeerCertExpiry , PeerCertIssuer : & o . PeerCertIssuer , PeerCertSubject : & o . PeerCertSubject , PingID : & o . PingID , PolicyAction : & o . PolicyAction , PolicyID : & o . PolicyID , PolicyNamespace : & o . PolicyNamespace , ProcessingUnitID : & o . ProcessingUnitID , Protocol : & o . Protocol , RemoteController : & o . RemoteController , RemoteEndpointType : & o . RemoteEndpointType , RemoteNamespace : & o . RemoteNamespace , RemoteNamespaceType : & o . RemoteNamespaceType , RemoteProcessingUnitID : & o . RemoteProcessingUnitID , SeqNum : & o . SeqNum , ServiceID : & o . ServiceID , ServiceType : & o . ServiceType , TargetTCPNetworks : & o . TargetTCPNetworks , Type : & o . Type , UpdateTime : & o . UpdateTime , ZHash : & o . ZHash , Zone : & o . Zone , } } sp := & SparsePingProbe { } for _ , f := range fields { switch f { case " " : sp . ACLPolicyAction = & ( o . ACLPolicyAction ) case " " : sp . ACLPolicyID = & ( o . ACLPolicyID ) case " " : sp . ID = & ( o . ID ) case " " : sp . RTT = & ( o . RTT ) case " " : sp . ApplicationListening = & ( o . ApplicationListening ) case " " : sp . Claims = & ( o . Claims ) case " " : sp . ClaimsType = & ( o . ClaimsType ) case " " : sp . CreateTime = & ( o . CreateTime ) case " " : sp . EnforcerID = & ( o . EnforcerID ) case " " : sp . EnforcerNamespace = & ( o . EnforcerNamespace ) case " " : sp . EnforcerVersion = & ( o . EnforcerVersion ) case " " : sp . Error = & ( o . Error ) case " " : sp . ExcludedNetworks = & ( o . ExcludedNetworks ) case " " : sp . FourTuple = & ( o . FourTuple ) case " " : sp . IsServer = & ( o . IsServer ) case " " : sp . IterationIndex = & ( o . IterationIndex ) case " " : sp . MigrationsLog = & ( o . MigrationsLog ) case " " : sp . Namespace = & ( o . Namespace ) case " " : sp . PayloadSize = & ( o . PayloadSize ) case " " : sp . PayloadSizeType = & ( o . PayloadSizeType ) case " " : sp . PeerCertExpiry = & ( o . PeerCertExpiry ) case " " : sp . PeerCertIssuer = & ( o . PeerCertIssuer ) case " " : sp . PeerCertSubject = & ( o . PeerCertSubject ) case " " : sp . PingID = & ( o . PingID ) case " " : sp . PolicyAction = & ( o . PolicyAction ) case " " : sp . PolicyID = & ( o . PolicyID ) case " " : sp . PolicyNamespace = & ( o . PolicyNamespace ) case " " : sp . ProcessingUnitID = & ( o . ProcessingUnitID ) case " " : sp . Protocol = & ( o . Protocol ) case " " : sp . RemoteController = & ( o . RemoteController ) case " " : sp . RemoteEndpointType = & ( o . RemoteEndpointType ) case " " : sp . RemoteNamespace = & ( o . RemoteNamespace ) case " " : sp . RemoteNamespaceType = & ( o . RemoteNamespaceType ) case " " : sp . RemoteProcessingUnitID = & ( o . RemoteProcessingUnitID ) case " " : sp . SeqNum = & ( o . SeqNum ) case " " : sp . ServiceID = & ( o . ServiceID ) case " " : sp . ServiceType = & ( o . ServiceType ) case " " : sp . TargetTCPNetworks = & ( o . TargetTCPNetworks ) case " " : sp . Type = & ( o . Type ) case " " : sp . UpdateTime = & ( o . UpdateTime ) 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