old_contents: import Item from '../../../../../src/js/structs/Item';
  
  module.exports = class ServiceSpec extends Item {
    getId() {
      return this.get('id') || '';
    }
  
    toJSON() {
      return this.get();
    }
  };
  
new_contents: import Item from '../../../../../src/js/structs/Item';
  
  module.exports = class ServiceSpec extends Item {
    getId() {
      return this.get('id') || '';
    }
  
    getResources() {
      return {
        cpus: 0,
        mem: 0,
        gpus: 0,
        disk: 0
      };
    }
  
    toJSON() {
      return this.get();
    }
  };
  
subject: Add a resource getter to the abstract service spec