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

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesEnforcerReport{}

	s.CPULoad = o.CPULoad
	if o.ID != "" {
		s.ID = bson.ObjectIdHex(o.ID)
	}
	s.EnforcerID = o.EnforcerID
	s.LicenseType = o.LicenseType
	s.Memory = o.Memory
	s.MigrationsLog = o.MigrationsLog
	s.Name = o.Name
	s.Namespace = o.Namespace
	s.Processes = o.Processes
	s.Timestamp = o.Timestamp
	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 *EnforcerReport) GetBSON() (interface{}, error) {
	if o == nil {
		return nil, nil
	}
	s := &mongoAttributesEnforcerReport{}
	s.CPULoad = o.CPULoad
	if o.ID != "" {
		s.ID = bson.ObjectIdHex(o.ID)
	}
	s.EnforcerID = o.EnforcerID
	s.LicenseType = o.LicenseType
	s.Memory = o.Memory
	s.MigrationsLog = o.MigrationsLog
	s.Name = o.Name
	s.Namespace = o.Namespace
	s.Processes = o.Processes
	s.Timestamp = o.Timestamp
	s.ZHash = o.ZHash
	s.Zone = o.Zone
	return s, nil
}
func ( o * EnforcerReport ) GetBSON ( ) ( interface { } , error ) { if o == nil { return nil , nil } s := & mongoAttributesEnforcerReport { } s . CPULoad = o . CPULoad if o . ID != " " { s . ID = bson . ObjectIdHex ( o . ID ) } s . EnforcerID = o . EnforcerID s . LicenseType = o . LicenseType s . Memory = o . Memory s . MigrationsLog = o . MigrationsLog s . Name = o . Name s . Namespace = o . Namespace s . Processes = o . Processes s . Timestamp = o . Timestamp s . ZHash = o . ZHash s . Zone = o . Zone return s , nil }
GetBSON implements the bson marshaling interface.
GetBSON implements the bson marshaling interface .