|
3 | 3 | namespace App\Restify; |
4 | 4 |
|
5 | 5 | use App\Models\Device; |
6 | | -use App\Models\Location; |
7 | 6 | use Binaryk\LaravelRestify\Fields\BelongsTo; |
8 | 7 | use Binaryk\LaravelRestify\Fields\BelongsToMany; |
9 | 8 | use Binaryk\LaravelRestify\Fields\HasMany; |
@@ -31,18 +30,49 @@ public static function related(): array |
31 | 30 | 'ports' => HasMany::make('ports', PortRepository::class), |
32 | 31 | 'sensors' => HasMany::make('sensors', SensorRepository::class), |
33 | 32 | 'processors' => HasMany::make('processors', ProcessorRepository::class), |
34 | | - 'mempools' => HasMany::make('mempools', MempoolRepository::class), |
| 33 | + 'memory-pools' => HasMany::make('mempools', MempoolRepository::class)->label('memory-pools'), |
35 | 34 | 'storage' => HasMany::make('storage', StorageRepository::class), |
36 | 35 | 'services' => HasMany::make('services', ServiceRepository::class), |
37 | | - 'bgpPeers' => HasMany::make('bgpPeers', BgpPeerRepository::class), |
| 36 | + 'bgp-peers' => HasMany::make('bgpPeers', BgpPeerRepository::class)->label('bgp-peers'), |
38 | 37 | 'components' => HasMany::make('components', ComponentRepository::class), |
39 | 38 | 'applications' => HasMany::make('applications', ApplicationRepository::class), |
40 | 39 | 'inventory' => HasMany::make('entityPhysical', InventoryRepository::class), |
41 | 40 | 'eventlogs' => HasMany::make('eventlogs', EventlogRepository::class), |
42 | 41 | 'syslogs' => HasMany::make('syslogs', SyslogRepository::class), |
43 | | - 'alertLogs' => HasMany::make('alertLogs', AlertLogRepository::class), |
| 42 | + 'alert-logs' => HasMany::make('alertLogs', AlertLogRepository::class)->label('alert-logs'), |
44 | 43 | 'location' => BelongsTo::make('location', LocationRepository::class), |
45 | 44 | 'groups' => BelongsToMany::make('groups', DeviceGroupRepository::class), |
| 45 | + 'alerts' => HasMany::make('alerts', AlertRepository::class), |
| 46 | + 'outages' => HasMany::make('outages', DeviceOutageRepository::class), |
| 47 | + 'links' => HasMany::make('links', LinkRepository::class), |
| 48 | + 'vlans' => HasMany::make('vlans', VlanRepository::class), |
| 49 | + 'vrfs' => HasMany::make('vrfs', VrfRepository::class), |
| 50 | + 'vrf-lite' => HasMany::make('vrfLites', VrfLiteRepository::class)->label('vrf-lite'), |
| 51 | + 'routes' => HasMany::make('routes', RouteRepository::class), |
| 52 | + 'access-points' => HasMany::make('accessPoints', AccessPointRepository::class)->label('access-points'), |
| 53 | + 'wireless-sensors' => HasMany::make('wirelessSensors', WirelessSensorRepository::class)->label('wireless-sensors'), |
| 54 | + 'disk-io' => HasMany::make('diskIo', DiskIoRepository::class)->label('disk-io'), |
| 55 | + 'service-level-agreements' => HasMany::make('slas', SlaRepository::class)->label('service-level-agreements'), |
| 56 | + 'cef-switching' => HasMany::make('cefSwitching', CefSwitchingRepository::class)->label('cef-switching'), |
| 57 | + 'spanning-trees' => HasMany::make('stpInstances', StpRepository::class)->label('spanning-trees'), |
| 58 | + 'ipsec-tunnels' => HasMany::make('ipsecTunnels', IpsecTunnelRepository::class)->label('ipsec-tunnels'), |
| 59 | + 'isis-adjacencies' => HasMany::make('isisAdjacencies', IsisAdjacencyRepository::class)->label('isis-adjacencies'), |
| 60 | + 'ospf-instances' => HasMany::make('ospfInstances', OspfInstanceRepository::class)->label('ospf-instances'), |
| 61 | + 'ospf-areas' => HasMany::make('ospfAreas', OspfAreaRepository::class)->label('ospf-areas'), |
| 62 | + 'ospf-neighbors' => HasMany::make('ospfNbrs', OspfNbrRepository::class)->label('ospf-neighbors'), |
| 63 | + 'ospf-ports' => HasMany::make('ospfPorts', OspfPortRepository::class)->label('ospf-ports'), |
| 64 | + 'ospfv3-instances' => HasMany::make('ospfv3Instances', Ospfv3InstanceRepository::class)->label('ospfv3-instances'), |
| 65 | + 'ospfv3-areas' => HasMany::make('ospfv3Areas', Ospfv3AreaRepository::class)->label('ospfv3-areas'), |
| 66 | + 'ospfv3-neighbors' => HasMany::make('ospfv3Nbrs', Ospfv3NbrRepository::class)->label('ospfv3-neighbors'), |
| 67 | + 'ospfv3-ports' => HasMany::make('ospfv3Ports', Ospfv3PortRepository::class)->label('ospfv3-ports'), |
| 68 | + 'mpls-label-switched-paths' => HasMany::make('mplsLsps', MplsLspRepository::class)->label('mpls-label-switched-paths'), |
| 69 | + 'mpls-label-switched-path-routes' => HasMany::make('mplsLspPaths', MplsLspPathRepository::class)->label('mpls-label-switched-path-routes'), |
| 70 | + 'mpls-service-distribution-points' => HasMany::make('mplsSdps', MplsSdpRepository::class)->label('mpls-service-distribution-points'), |
| 71 | + 'mpls-service-distribution-point-bindings' => HasMany::make('mplsSdpBinds', MplsSdpBindRepository::class)->label('mpls-service-distribution-point-bindings'), |
| 72 | + 'mpls-service-access-points' => HasMany::make('mplsSaps', MplsSapRepository::class)->label('mpls-service-access-points'), |
| 73 | + 'mpls-services' => HasMany::make('mplsServices', MplsServiceRepository::class)->label('mpls-services'), |
| 74 | + 'mpls-tunnel-actual-route-hops' => HasMany::make('mplsTunnelArHops', MplsTunnelArHopRepository::class)->label('mpls-tunnel-actual-route-hops'), |
| 75 | + 'mpls-tunnel-computed-hops' => HasMany::make('mplsTunnelCHops', MplsTunnelCHopRepository::class)->label('mpls-tunnel-computed-hops'), |
46 | 76 | ]; |
47 | 77 | } |
48 | 78 |
|
|
0 commit comments