github.com/hernad/nomad@v1.6.112/ui/app/models/node-pool.js (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  import Model from '@ember-data/model';
     7  import { attr } from '@ember-data/model';
     8  import { computed } from '@ember/object';
     9  import classic from 'ember-classic-decorator';
    10  
    11  @classic
    12  export default class NodePool extends Model {
    13    @attr('string') name;
    14    @attr('string') description;
    15    @attr() meta;
    16    @attr() schedulerConfiguration;
    17  
    18    @computed('schedulerConfiguration.SchedulerAlgorithm')
    19    get schedulerAlgorithm() {
    20      return this.get('schedulerConfiguration.SchedulerAlgorithm');
    21    }
    22  
    23    @computed('schedulerConfiguration.MemoryOversubscriptionEnabled')
    24    get memoryOversubscriptionEnabled() {
    25      return this.get('schedulerConfiguration.MemoryOversubscriptionEnabled');
    26    }
    27  }