Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
feat(xdsl): add hubic v6 and v7 routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérémy DE CESARE committed Apr 19, 2018
1 parent 47852a3 commit 9797d76
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 10 deletions.
36 changes: 35 additions & 1 deletion dist/ovh-api-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -9166,6 +9166,16 @@ angular.module("ovh-api-services").service("OvhApiPackXdslHostedEmailV6", ["$res
);
}]);

angular.module("ovh-api-services").service("OvhApiPackXdslHubicV7", ["apiv7", function (apiv7) {
"use strict";

var endpoint = apiv7("/pack/xdsl/:packName/hubic/services", {
packName: "@packName"
});

return endpoint;
}]);

angular.module("ovh-api-services").service("OvhApiPackXdslHubicAapi", ["$resource", "OvhApiPackXdslHubic", function ($resource, OvhApiPackXdslHubic) {
"use strict";

Expand All @@ -9189,12 +9199,36 @@ angular.module("ovh-api-services").service("OvhApiPackXdslHubic", ["$injector",
Aapi: function () {
return $injector.get("OvhApiPackXdslHubicAapi");
},
v6: angular.noop,
v6: function () {
return $injector.get("OvhApiPackXdslHubicV6");
},
v7: function () {
return $injector.get("OvhApiPackXdslHubicV7");
},
resetCache: cache.removeAll,
cache: cache
};
}]);

angular.module("ovh-api-services").service("OvhApiPackXdslHubicV6", ["$cacheFactory", "$resource", function ($cacheFactory, $resource) {
"use strict";

var cache = $cacheFactory("OvhApiPackXdslHubicV6");

return $resource("/pack/xdsl/:packName/hubic/services", {
packName: "@packName"
}, {
getDomainDetails: {
method: "GET",
url: "/pack/xdsl/:packName/hubic/services/:domain/details",
cache: cache,
params: {
domain: "@domain"
}
}
});
}]);

angular.module("ovh-api-services").service("OvhApiPackXdslMove", ["$injector", "$cacheFactory", function ($injector, $cacheFactory) {
"use strict";

Expand Down
17 changes: 9 additions & 8 deletions dist/ovh-api-services.min.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/pack/xdsl/hubic/pack-xdsl-hubic-v7.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular.module("ovh-api-services").service("OvhApiPackXdslHubicV7", function (apiv7) {
"use strict";

var endpoint = apiv7("/pack/xdsl/:packName/hubic/services", {
packName: "@packName"
});

return endpoint;
});
7 changes: 6 additions & 1 deletion src/pack/xdsl/hubic/pack-xdsl-hubic.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ angular.module("ovh-api-services").service("OvhApiPackXdslHubic", function ($inj
Aapi: function () {
return $injector.get("OvhApiPackXdslHubicAapi");
},
v6: angular.noop,
v6: function () {
return $injector.get("OvhApiPackXdslHubicV6");
},
v7: function () {
return $injector.get("OvhApiPackXdslHubicV7");
},
resetCache: cache.removeAll,
cache: cache
};
Expand Down
18 changes: 18 additions & 0 deletions src/pack/xdsl/hubic/pack-xdsl-hubic.v6.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
angular.module("ovh-api-services").service("OvhApiPackXdslHubicV6", function ($cacheFactory, $resource) {
"use strict";

var cache = $cacheFactory("OvhApiPackXdslHubicV6");

return $resource("/pack/xdsl/:packName/hubic/services", {
packName: "@packName"
}, {
getDomainDetails: {
method: "GET",
url: "/pack/xdsl/:packName/hubic/services/:domain/details",
cache: cache,
params: {
domain: "@domain"
}
}
});
});

0 comments on commit 9797d76

Please sign in to comment.