mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 14:24:39 +00:00
4d13e31ae0
* Create BindingRule adapter and tests * Create BindingRule serializer and test * Create BindingRule model and repository * Add binding-rules mock data * Create binding-rules router and call endpoint * Create Binding rules tab * Create and use BindingView component * Create empty state for BindingView * Remove binding rule requestForQueryRecord endpoint and tests * Update binding rules selector to be monospaced * Add bind type tooltip * Create and Tabular-dl styling component * Update hr tag global styling * Rename BindingView to BindingList and refactor * Add translations for bind types tooltip info * Remove unused endpoint * Refactor based on review notes
20 lines
534 B
JavaScript
20 lines
534 B
JavaScript
import Model, { attr } from '@ember-data/model';
|
|
|
|
export const PRIMARY_KEY = 'uid';
|
|
export const SLUG_KEY = 'ID';
|
|
|
|
export default class BindingRule extends Model {
|
|
@attr('string') uid;
|
|
@attr('string') ID;
|
|
|
|
@attr('string') Datacenter;
|
|
@attr('string') Namespace;
|
|
@attr('string', { defaultValue: () => '' }) Description;
|
|
@attr('string') AuthMethod;
|
|
@attr('string', { defaultValue: () => '' }) Selector;
|
|
@attr('string') BindType;
|
|
@attr('string') BindName;
|
|
@attr('number') CreateIndex;
|
|
@attr('number') ModifyIndex;
|
|
}
|