2020-11-09 17:29:12 +00:00
|
|
|
import Model, { attr } from '@ember-data/model';
|
2019-12-17 18:47:37 +00:00
|
|
|
|
|
|
|
export const PRIMARY_KEY = 'Name';
|
|
|
|
export const SLUG_KEY = 'Name';
|
|
|
|
export const NSPACE_KEY = 'Namespace';
|
|
|
|
|
2020-11-09 17:29:12 +00:00
|
|
|
export default class Nspace extends Model {
|
|
|
|
@attr('string') uid;
|
|
|
|
@attr('string') Name;
|
2019-12-17 18:47:37 +00:00
|
|
|
|
2020-11-09 17:29:12 +00:00
|
|
|
@attr('number') SyncTime;
|
|
|
|
@attr('string', { defaultValue: () => '' }) Description;
|
2021-02-19 16:42:16 +00:00
|
|
|
@attr({ defaultValue: () => [] }) Resources; // []
|
2020-11-09 17:29:12 +00:00
|
|
|
// TODO: Is there some sort of date we can use here
|
|
|
|
@attr('string') DeletedAt;
|
|
|
|
@attr({
|
|
|
|
defaultValue: () => ({
|
|
|
|
PolicyDefaults: [],
|
|
|
|
RoleDefaults: [],
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
ACLs;
|
|
|
|
}
|