2023-03-14 13:18:55 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
* SPDX-License-Identifier: BUSL-1.1
|
2023-03-14 13:18:55 +00:00
|
|
|
*/
|
|
|
|
|
2021-01-20 15:36:23 +00:00
|
|
|
import Fragment from 'ember-data-model-fragments/fragment';
|
|
|
|
import { array } from 'ember-data-model-fragments/attributes';
|
|
|
|
import { attr } from '@ember-data/model';
|
|
|
|
|
|
|
|
export default class GatewayConfig extends Fragment {
|
|
|
|
// AssociatedServiceCount is only populated when asking for a list of
|
|
|
|
// services
|
|
|
|
@attr('number', { defaultValue: () => 0 }) AssociatedServiceCount;
|
|
|
|
// Addresses is only populated when asking for a list of services for a
|
|
|
|
// specific gateway
|
|
|
|
@array('string', { defaultValue: () => [] }) Addresses;
|
|
|
|
}
|