mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 21:35:52 +00:00
e8b7c44087
* ui: Upgrade ember-data models to use native classes/decorators * ui: Update remaining ember-data imports * ui: Move ember-data Adapters to use native classes * ui: Upgrade serializers to native classes/decorators * ui: remove meta from roles, they never had it to start with
18 lines
442 B
JavaScript
18 lines
442 B
JavaScript
import Model, { attr } from '@ember-data/model';
|
|
|
|
export const PRIMARY_KEY = 'uid';
|
|
export const SLUG_KEY = 'ServiceName';
|
|
|
|
export default class Topology extends Model {
|
|
@attr('string') uid;
|
|
@attr('string') ServiceName;
|
|
|
|
@attr('string') Datacenter;
|
|
@attr('string') Namespace;
|
|
@attr('string') Protocol;
|
|
@attr('boolean') FilteredByACLs;
|
|
@attr() Upstreams; // Service[]
|
|
@attr() Downstreams; // Service[],
|
|
@attr() meta; // {}
|
|
}
|