github.com/hernad/nomad@v1.6.112/ui/app/models/auth-method.js (about) 1 /** 2 * Copyright (c) HashiCorp, Inc. 3 * SPDX-License-Identifier: MPL-2.0 4 */ 5 6 // @ts-check 7 import Model from '@ember-data/model'; 8 import { attr } from '@ember-data/model'; 9 10 export default class AuthMethodModel extends Model { 11 @attr('string') name; 12 13 /** 14 * @type {'JWT' | 'OIDC'} 15 */ 16 @attr('string') type; 17 @attr('string') tokenLocality; 18 @attr('string') maxTokenTTL; 19 @attr('boolean') default; 20 @attr('date') createTime; 21 @attr('number') createIndex; 22 @attr('date') modifyTime; 23 @attr('number') modifyIndex; 24 25 getAuthURL(params) { 26 return this.store.adapterFor('authMethod').getAuthURL(params); 27 } 28 }