mirror of https://github.com/hashicorp/consul
25 lines
736 B
JavaScript
25 lines
736 B
JavaScript
|
import Model, { attr } from '@ember-data/model';
|
||
|
import { or } from '@ember/object/computed';
|
||
|
|
||
|
export const PRIMARY_KEY = 'uid';
|
||
|
export const SLUG_KEY = 'Name';
|
||
|
|
||
|
export default class AuthMethod extends Model {
|
||
|
@attr('string') uid;
|
||
|
@attr('string') Name;
|
||
|
|
||
|
@attr('string') Datacenter;
|
||
|
@attr('string') Namespace;
|
||
|
@attr('string', { defaultValue: () => '' }) Description;
|
||
|
@attr('string', { defaultValue: () => '' }) DisplayName;
|
||
|
@attr('string', { defaultValue: () => 'local' }) TokenLocality;
|
||
|
@attr('string') Type;
|
||
|
@or('DisplayName', 'Name') MethodName;
|
||
|
@attr() Config;
|
||
|
@attr('string') MaxTokenTTL;
|
||
|
@attr('number') CreateIndex;
|
||
|
@attr('number') ModifyIndex;
|
||
|
@attr() Datacenters; // string[]
|
||
|
@attr() meta; // {}
|
||
|
}
|