github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/app/models/auth-method.js (about)

     1  // @ts-check
     2  import Model from '@ember-data/model';
     3  import { attr } from '@ember-data/model';
     4  
     5  export default class AuthMethodModel extends Model {
     6    @attr('string') name;
     7    @attr('string') type;
     8    @attr('string') tokenLocality;
     9    @attr('string') maxTokenTTL;
    10    @attr('boolean') default;
    11    @attr('date') createTime;
    12    @attr('number') createIndex;
    13    @attr('date') modifyTime;
    14    @attr('number') modifyIndex;
    15  
    16    getAuthURL(params) {
    17      return this.store.adapterFor('authMethod').getAuthURL(params);
    18    }
    19  }