Peter K. Lee | f4d38d3 | 2016-07-23 02:47:38 -0700 | [diff] [blame] | 1 | # |
| 2 | # Author: Peter K. Lee (peter@corenova.com) |
| 3 | # |
| 4 | # All rights reserved. This program and the accompanying materials |
| 5 | # are made available under the terms of the Apache License, Version 2.0 |
| 6 | # which accompanies this distribution, and is available at |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | |
| 10 | require('yang-js').register() |
| 11 | |
| 12 | module.exports = require('../schema/cord-subscriber.yang').bind { |
| 13 | |
| 14 | '/{subscriber}': |
| 15 | # auto-computed properties |
| 16 | 'device/subscriber': -> @get '../..' |
| 17 | |
| 18 | # action bindings |
| 19 | 'device/create': (input, resolve, reject) -> reject "TBD" |
| 20 | 'device/update': (input, resolve, reject) -> reject "TBD" |
| 21 | 'device/delete': (input, resolve, reject) -> reject "TBD" |
| 22 | |
| 23 | '/{subscriber-controller}': |
| 24 | # auto-computed properties |
| 25 | 'related': -> new Error "will return related objects once implemented" |
| 26 | |
| 27 | # action bindings |
| 28 | 'features/update': (input, resolve, reject) -> reject "TBD" |
| 29 | 'identity/update': (input, resolve, reject) -> reject "TBD" |
| 30 | |
| 31 | } |
| 32 | |