func (o *ProcessingUnit) GetBSON() (interface{}, error) {

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesProcessingUnit{}

	if o.ID != "" {
		s.ID = bson.ObjectIdHex(o.ID)
	}
	s.Annotations = o.Annotations
	s.Archived = o.Archived
	s.AssociatedTags = o.AssociatedTags
	s.ClientLocalID = o.ClientLocalID
	s.CollectInfo = o.CollectInfo
	s.CollectedInfo = o.CollectedInfo
	s.Controller = o.Controller
	s.CreateIdempotencyKey = o.CreateIdempotencyKey
	s.CreateTime = o.CreateTime
	s.DatapathType = o.DatapathType
	s.Description = o.Description
	s.EnforcementStatus = o.EnforcementStatus
	s.EnforcerID = o.EnforcerID
	s.EnforcerNamespace = o.EnforcerNamespace
	s.Images = o.Images
	s.LastCollectionTime = o.LastCollectionTime
	s.LastSyncTime = o.LastSyncTime
	s.Metadata = o.Metadata
	s.MigrationsLog = o.MigrationsLog
	s.Name = o.Name
	s.Namespace = o.Namespace
	s.NativeContextID = o.NativeContextID
	s.NetworkServices = o.NetworkServices
	s.NormalizedTags = o.NormalizedTags
	s.OperationalStatus = o.OperationalStatus
	s.Protected = o.Protected
	s.Type = o.Type
	s.UpdateIdempotencyKey = o.UpdateIdempotencyKey
	s.UpdateTime = o.UpdateTime
	s.Vulnerabilities = o.Vulnerabilities
	s.VulnerabilityLevel = o.VulnerabilityLevel
	s.ZHash = o.ZHash
	s.Zone = o.Zone

	return s, nil
}
// GetBSON implements the bson marshaling interface.
// This is used to transparently convert ID to MongoDBID as ObectID.
GetBSON implements the bson marshaling interface.
This is used to transparently convert ID to MongoDBID as ObectID.
// GetBSON implements the bson marshaling interface . // This is used to transparently convert ID to MongoDBID as ObectID .
func (o *ProcessingUnit) GetBSON() (interface{}, error) {
	if o == nil {
		return nil, nil
	}
	s := &mongoAttributesProcessingUnit{}
	if o.ID != "" {
		s.ID = bson.ObjectIdHex(o.ID)
	}
	s.Annotations = o.Annotations
	s.Archived = o.Archived
	s.AssociatedTags = o.AssociatedTags
	s.ClientLocalID = o.ClientLocalID
	s.CollectInfo = o.CollectInfo
	s.CollectedInfo = o.CollectedInfo
	s.Controller = o.Controller
	s.CreateIdempotencyKey = o.CreateIdempotencyKey
	s.CreateTime = o.CreateTime
	s.DatapathType = o.DatapathType
	s.Description = o.Description
	s.EnforcementStatus = o.EnforcementStatus
	s.EnforcerID = o.EnforcerID
	s.EnforcerNamespace = o.EnforcerNamespace
	s.Images = o.Images
	s.LastCollectionTime = o.LastCollectionTime
	s.LastSyncTime = o.LastSyncTime
	s.Metadata = o.Metadata
	s.MigrationsLog = o.MigrationsLog
	s.Name = o.Name
	s.Namespace = o.Namespace
	s.NativeContextID = o.NativeContextID
	s.NetworkServices = o.NetworkServices
	s.NormalizedTags = o.NormalizedTags
	s.OperationalStatus = o.OperationalStatus
	s.Protected = o.Protected
	s.Type = o.Type
	s.UpdateIdempotencyKey = o.UpdateIdempotencyKey
	s.UpdateTime = o.UpdateTime
	s.Vulnerabilities = o.Vulnerabilities
	s.VulnerabilityLevel = o.VulnerabilityLevel
	s.ZHash = o.ZHash
	s.Zone = o.Zone
	return s, nil
}
func ( o * ProcessingUnit ) GetBSON ( ) ( interface { } , error ) { if o == nil { return nil , nil } s := & mongoAttributesProcessingUnit { } if o . ID != " " { s . ID = bson . ObjectIdHex ( o . ID ) } s . Annotations = o . Annotations s . Archived = o . Archived s . AssociatedTags = o . AssociatedTags s . ClientLocalID = o . ClientLocalID s . CollectInfo = o . CollectInfo s . CollectedInfo = o . CollectedInfo s . Controller = o . Controller s . CreateIdempotencyKey = o . CreateIdempotencyKey s . CreateTime = o . CreateTime s . DatapathType = o . DatapathType s . Description = o . Description s . EnforcementStatus = o . EnforcementStatus s . EnforcerID = o . EnforcerID s . EnforcerNamespace = o . EnforcerNamespace s . Images = o . Images s . LastCollectionTime = o . LastCollectionTime s . LastSyncTime = o . LastSyncTime s . Metadata = o . Metadata s . MigrationsLog = o . MigrationsLog s . Name = o . Name s . Namespace = o . Namespace s . NativeContextID = o . NativeContextID s . NetworkServices = o . NetworkServices s . NormalizedTags = o . NormalizedTags s . OperationalStatus = o . OperationalStatus s . Protected = o . Protected s . Type = o . Type s . UpdateIdempotencyKey = o . UpdateIdempotencyKey s . UpdateTime = o . UpdateTime s . Vulnerabilities = o . Vulnerabilities s . VulnerabilityLevel = o . VulnerabilityLevel s . ZHash = o . ZHash s . Zone = o . Zone return s , nil }
GetBSON implements the bson marshaling interface.
GetBSON implements the bson marshaling interface .