blob: 1f70ed1d1a7f46faa99a57f3c59c77d30c9ec808 [file] [log] [blame]
Matteo Scandolo686547a2017-08-08 13:05:25 -07001
2/*
3 * Copyright 2017-present Open Networking Foundation
4
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8
9 * http://www.apache.org/licenses/LICENSE-2.0
10
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18
Matteo Scandoloa5d03d52016-07-21 11:35:46 -070019(function() {
20 'use strict';
21
22 angular.module('xos.helpers')
23 /**
24 * @ngdoc service
25 * @name xos.helpers.Subscribers
26 * @description Angular resource to fetch Subscribers
27 **/
28 .service('Subscribers', function($resource){
29 return $resource('/api/tenant/cord/subscriber/:id/', { id: '@id' }, {
30 update: { method: 'PUT' },
31 /**
32 * @ngdoc method
33 * @name xos.helpers.Subscribers#View-a-Subscriber-Features-Detail
34 * @methodOf xos.helpers.Subscribers
35 * @description
36 * View-a-Subscriber-Features-Detail
37 **/
38 'View-a-Subscriber-Features-Detail': {
39 method: 'GET',
40 isArray: false,
41 url: '/api/tenant/cord/subscriber/:id/features/'
42 },
43 /**
44 * @ngdoc method
45 * @name xos.helpers.Subscribers#Read-Subscriber-uplink_speed
46 * @methodOf xos.helpers.Subscribers
47 * @description
48 * Read-Subscriber-uplink_speed
49 **/
50 'Read-Subscriber-uplink_speed': {
51 method: 'GET',
52 isArray: false,
53 url: '/api/tenant/cord/subscriber/:id/features/uplink_speed/'
54 },
55 /**
56 * @ngdoc method
57 * @name xos.helpers.Subscribers#Update-Subscriber-uplink_speed
58 * @methodOf xos.helpers.Subscribers
59 * @description
60 * Update-Subscriber-uplink_speed
61 **/
62 'Update-Subscriber-uplink_speed': {
63 method: 'PUT',
64 isArray: false,
65 url: '/api/tenant/cord/subscriber/:id/features/uplink_speed/'
66 },
67 /**
68 * @ngdoc method
69 * @name xos.helpers.Subscribers#Read-Subscriber-downlink_speed
70 * @methodOf xos.helpers.Subscribers
71 * @description
72 * Read-Subscriber-downlink_speed
73 **/
74 'Read-Subscriber-downlink_speed': {
75 method: 'GET',
76 isArray: false,
77 url: '/api/tenant/cord/subscriber/:id/features/downlink_speed/'
78 },
79 /**
80 * @ngdoc method
81 * @name xos.helpers.Subscribers#Update-Subscriber-downlink_speed
82 * @methodOf xos.helpers.Subscribers
83 * @description
84 * Update-Subscriber-downlink_speed
85 **/
86 'Update-Subscriber-downlink_speed': {
87 method: 'PUT',
88 isArray: false,
89 url: '/api/tenant/cord/subscriber/:id/features/downlink_speed/'
90 },
91 /**
92 * @ngdoc method
93 * @name xos.helpers.Subscribers#Read-Subscriber-cdn
94 * @methodOf xos.helpers.Subscribers
95 * @description
96 * Read-Subscriber-cdn
97 **/
98 'Read-Subscriber-cdn': {
99 method: 'GET',
100 isArray: false,
101 url: '/api/tenant/cord/subscriber/:id/features/cdn/'
102 },
103 /**
104 * @ngdoc method
105 * @name xos.helpers.Subscribers#Update-Subscriber-cdn
106 * @methodOf xos.helpers.Subscribers
107 * @description
108 * Update-Subscriber-cdn
109 **/
110 'Update-Subscriber-cdn': {
111 method: 'PUT',
112 isArray: false,
113 url: '/api/tenant/cord/subscriber/:id/features/cdn/'
114 },
115 /**
116 * @ngdoc method
117 * @name xos.helpers.Subscribers#Read-Subscriber-uverse
118 * @methodOf xos.helpers.Subscribers
119 * @description
120 * Read-Subscriber-uverse
121 **/
122 'Read-Subscriber-uverse': {
123 method: 'GET',
124 isArray: false,
125 url: '/api/tenant/cord/subscriber/:id/features/uverse/'
126 },
127 /**
128 * @ngdoc method
129 * @name xos.helpers.Subscribers#Update-Subscriber-uverse
130 * @methodOf xos.helpers.Subscribers
131 * @description
132 * Update-Subscriber-uverse
133 **/
134 'Update-Subscriber-uverse': {
135 method: 'PUT',
136 isArray: false,
137 url: '/api/tenant/cord/subscriber/:id/features/uverse/'
138 },
139 /**
140 * @ngdoc method
141 * @name xos.helpers.Subscribers#Read-Subscriber-status
142 * @methodOf xos.helpers.Subscribers
143 * @description
144 * Read-Subscriber-status
145 **/
146 'Read-Subscriber-status': {
147 method: 'GET',
148 isArray: false,
149 url: '/api/tenant/cord/subscriber/:id/features/status/'
150 },
151 /**
152 * @ngdoc method
153 * @name xos.helpers.Subscribers#Update-Subscriber-status
154 * @methodOf xos.helpers.Subscribers
155 * @description
156 * Update-Subscriber-status
157 **/
158 'Update-Subscriber-status': {
159 method: 'PUT',
160 isArray: false,
161 url: '/api/tenant/cord/subscriber/:id/features/status/'
162 }
163 })
164 })
165})();