From 124a9ecefa3073f467207247b075e7b72f5cf859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phanie=20MOALLIC?= Date: Wed, 24 Apr 2019 13:53:35 +0200 Subject: [PATCH] feat(xdsl.template.modem): add api bindings (#156) ref: UXCT-146 --- dist/ovh-api-services.js | 88 +++++++++++++++++++ dist/ovh-api-services.min.js | 4 +- .../xdsl-template-modem.service.js | 15 ++++ .../xdsl-template-modem.v6.service.js | 64 ++++++++++++++ src/xdsl/xdsl.service.js | 3 + src/xdsl/xdsl.v6.service.js | 4 + 6 files changed, 176 insertions(+), 2 deletions(-) create mode 100644 src/xdsl/templateModem/xdsl-template-modem.service.js create mode 100644 src/xdsl/templateModem/xdsl-template-modem.v6.service.js diff --git a/dist/ovh-api-services.js b/dist/ovh-api-services.js index 6b584166..13843776 100644 --- a/dist/ovh-api-services.js +++ b/dist/ovh-api-services.js @@ -25606,6 +25606,87 @@ angular.module("ovh-api-services").service("OvhApiXdslTasksCurrent", ["$injector }; }]); +angular.module("ovh-api-services").service("OvhApiXdslTemplateModem", ["$injector", "$cacheFactory", function ($injector, $cacheFactory) { + "use strict"; + + var cache = $cacheFactory("OvhApiXdslTemplateModem"); + + return { + v6: function () { + return $injector.get("OvhApiXdslTemplateModemV6"); + }, + resetCache: function () { + cache.removeAll(); + }, + cache: cache + }; +}]); + +angular.module("ovh-api-services").service("OvhApiXdslTemplateModemV6", ["$resource", "$cacheFactory", function ($resource, $cacheFactory) { + "use strict"; + + var cache = $cacheFactory("OvhApiXdslTemplateModemV6"); + var queryCache = $cacheFactory("OvhApiXdslTemplateModemV6Query"); + + var interceptor = { + response: function (response) { + cache.remove(response.config.url); + queryCache.removeAll(); + return response.resource; + } + }; + + var templateModemResource = $resource("/xdsl/templateModem", { + xdslId: "@xdslId", + name: "@name", + serviceName: "@serviceName" + }, { + query: { + method: "GET", + isArray: true, + cache: queryCache + }, + get: { + method: "GET", + cache: cache + }, + getBatch: { + method: "GET", + isArray: true, + headers: { + "X-Ovh-Batch": "," + }, + url: "/xdsl/templateModem/:name", + cache: cache + }, + post: { + method: "POST", + interceptor: interceptor + }, + getTemplate: { + method: "GET", + url: "/xdsl/templateModem/:name" + }, + updateTemplate: { + method: "PUT", + url: "/xdsl/templateModem/:name", + interceptor: interceptor + }, + deleteTemplate: { + method: "DELETE", + url: "/xdsl/templateModem/:name", + interceptor: interceptor + } + }); + + templateModemResource.resetAllCache = function () { + cache.removeAll(); + queryCache.removeAll(); + }; + + return templateModemResource; +}]); + angular.module("ovh-api-services").service("OvhApiXdslAapi", ["$resource", "OvhApiXdsl", function ($resource, OvhApiXdsl) { "use strict"; @@ -25652,6 +25733,9 @@ angular.module("ovh-api-services").service("OvhApiXdsl", ["$injector", "$cacheFa Modem: function () { return $injector.get("OvhApiXdslModem"); }, + TemplateModem: function () { + return $injector.get("OvhApiXdslTemplateModem"); + }, resetCache: cache.removeAll, cache: cache }; @@ -25738,6 +25822,10 @@ angular.module("ovh-api-services").service("OvhApiXdslV6", ["$resource", "OvhApi getTask: { method: "GET", url: "/xdsl/:xdslId/tasks/:taskId" + }, + applyTemplate: { + method: "POST", + url: "/xdsl/:xdslId/applyTemplateToModem" } } ); diff --git a/dist/ovh-api-services.min.js b/dist/ovh-api-services.min.js index 4d3a6080..4f2516e0 100644 --- a/dist/ovh-api-services.min.js +++ b/dist/ovh-api-services.min.js @@ -1,4 +1,4 @@ -/*! ovh-api-services - 6.12.0 - 2019-04-19 */ +/*! ovh-api-services - 6.12.0 - 2019-04-24 */ angular.module("ovh-api-services",["ngOvhApiWrappers","ngOvhSwimmingPoll"]),angular.module("ovh-api-services").service("OvhApiAnalytics",["$injector",function(a){"use strict";return{Platforms:function(){return a.get("OvhApiAnalyticsPlatforms")},Capabilities:function(){return a.get("OvhApiAnalyticsCapabilities")}}}]),angular.module("ovh-api-services").service("OvhApiAnalyticsCapabilities",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiAnalyticsCapabilitiesV6")}}}]),angular.module("ovh-api-services").service("OvhApiAnalyticsCapabilitiesV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiAnalyticsCapabilitiesV6Query"),d=a("/analytics/capabilities/platforms",{serviceName:"@serviceName"},{query:{method:"GET",isArray:!0,cache:c}});return d.resetQueryCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiAnalyticsPlatforms",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiAnalyticsPlatformsV6")}}}]),angular.module("ovh-api-services").service("OvhApiAnalyticsPlatformsV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiAnalyticsPlatformsV6"),d=b("OvhApiAnalyticsPlatformsV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a.resource}},f=a("/analytics/platforms/:serviceName",{serviceName:"@serviceName"},{query:{method:"GET",isArray:!0,cache:d},get:{method:"GET",cache:c},deploy:{method:"POST",interceptor:e},getActivity:{url:"/analytics/platforms/{serviceName}/activity",method:"GET",cache:c},getNodes:{url:"/analytics/platforms/{serviceName}/nodes",method:"GET",cache:c},getStatus:{url:"/analytics/platforms/{serviceName}/status",method:"GET",interceptor:e}});return f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiAuth",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiAuthV6")}}}]),angular.module("ovh-api-services").service("OvhApiAuthV6",["$resource","$http",function(a,b){"use strict";return a("/auth",{},{logout:{url:"/auth/logout",method:"POST",isArray:!1},time:{url:"/auth/time",method:"GET",isArray:!1,transformResponse:b.defaults.transformResponse.concat(function(a,b,c){var d={};return 403===c?(d.value=!1,d.message=a.message):d.value=a,d})}})}]),angular.module("ovh-api-services").service("OvhApiCdn",["$injector",function(a){"use strict";return{Dedicated:function(){return a.get("OvhApiCdnDedicated")},Website:function(){return a.get("OvhApiCdnWebsite")},Webstorage:function(){return a.get("OvhApiCdnWebstorage")}}}]),angular.module("ovh-api-services").service("OvhApiCdnDedicated",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCdnDedicated");return{v6:function(){return a.get("OvhApiCdnDedicatedV6")},Domains:function(){return a.get("OvhApiCdnDedicatedDomains")},Ssl:function(){return a.get("OvhApiCdnDedicatedSsl")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiCdnDedicatedV6",["$resource","$q","OvhApiCdnDedicated",function(a,b,c){"use strict";return a("/cdn/dedicated/:serviceName",{serviceName:"@serviceName"},{get:{method:"GET",cache:c.cache},query:{method:"GET",isArray:!0,cache:c.cache},quota:{method:"GET",url:"/cdn/dedicated/:serviceName/quota",isArray:!0},logs:{method:"POST",url:"/cdn/dedicated/:serviceName/logs"},swsGetStatistics:{method:"GET",url:"/sws/dedicated/cdn/:serviceName/statistics",serviceType:"aapi",isArray:!1},swsGetAllBackends:{method:"GET",url:"/sws/dedicated/cdn/:serviceName/backends",serviceType:"aapi",isArray:!1}})}]),angular.module("ovh-api-services").service("OvhApiCdnDedicatedDomainsBackends",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCdnDedicatedDomainsBackendsV6")}}}]),angular.module("ovh-api-services").service("OvhApiCdnDedicatedDomainsBackendsV6",["$resource",function(a){"use strict";return a("/cdn/dedicated/:serviceName/domains/:domain/backends/:ip",{serviceName:"@serviceName",domain:"@domain",ip:"@ip"},{add:{method:"POST",url:"/cdn/dedicated/:serviceName/domains/:domain/backends",params:{ip:"@ip"}}})}]),angular.module("ovh-api-services").service("OvhApiCdnDedicatedDomainsCacheRules",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCdnDedicatedDomainsCacheRulesV6")}}}]),angular.module("ovh-api-services").service("OvhApiCdnDedicatedDomainsV6",["$resource",function(a){"use strict";return a("/cdn/dedicated/:serviceName/domains/:domain/cacheRules/:cacheRuleId",{serviceName:"@serviceName",domain:"@domain",cacheRuleId:"@cacheRuleId"},{flush:{method:"POST",url:"/cdn/dedicated/:serviceName/domains/:domain/cacheRules/:cacheRuleId/flush"}})}]),angular.module("ovh-api-services").service("OvhApiCdnDedicatedDomains",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCdnDedicatedDomainsV6")},Backends:function(){return a.get("OvhApiCdnDedicatedDomainsBackends")},CacheRules:function(){return a.get("OvhApiCdnDedicatedDomainsCacheRules")}}}]),angular.module("ovh-api-services").service("OvhApiCdnDedicatedDomainsV6",["$resource",function(a){"use strict";return a("/cdn/dedicated/:serviceName/domains/:domain",{serviceName:"@serviceName",domain:"@domain"},{add:{method:"POST",url:"/cdn/dedicated/:serviceName/domains",params:{domain:"@domain"}},flush:{method:"POST",url:"/cdn/dedicated/:serviceName/domains/:domain/flush"},logs:{method:"POST",url:"/cdn/dedicated/:serviceName/domains/:domain/logs"},statistics:{method:"GET",url:"/cdn/dedicated/:serviceName/domains/:domain/statistics"},update:{method:"PUT"}})}]),angular.module("ovh-api-services").service("OvhApiCdnDedicatedSsl",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCdnDedicatedSslV6")}}}]),angular.module("ovh-api-services").service("OvhApiCdnDedicatedSslV6",["$resource",function(a){"use strict";return a("/cdn/dedicated/:serviceName/ssl",{serviceName:"@serviceName"},{update:{method:"POST",url:"/cdn/dedicated/:serviceName/ssl/update"}})}]),angular.module("ovh-api-services").service("OvhApiCdnWebsite",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCdnWebsite");return{v6:function(){return a.get("OvhApiCdnWebsiteV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiCdnWebsiteV6",["$resource","$q","OvhApiCdnWebsite",function(a,b,c){"use strict";return a("/cdn/website/:serviceName",{serviceName:"@serviceName"},{get:{method:"GET",cache:c.cache},query:{method:"GET",isArray:!0,cache:c.cache}})}]),angular.module("ovh-api-services").service("OvhApiCdnWebstorage",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCdnWebstorage");return{v6:function(){return a.get("OvhApiCdnWebstorageV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiCdnWebstorageV6",["$resource","$q","OvhApiCdnWebstorage",function(a,b,c){"use strict";return a("/cdn/webstorage/:serviceName",{serviceName:"@serviceName"},{get:{method:"GET",cache:c.cache},query:{method:"GET",isArray:!0,cache:c.cache}})}]),angular.module("ovh-api-services").service("OvhApiChangelogAapi",["$resource",function(a){"use strict";return a("/changelog",{},{query:{serviceType:"aapi",isArray:!0}})}]),angular.module("ovh-api-services").service("OvhApiChangelog",["$injector",function(a){"use strict";return{Aapi:function(){return a.get("OvhApiChangelogAapi")}}}]),angular.module("ovh-api-services").service("OvhApiCloudAapi",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudAapiQuery"),d=a("/cloud/instances",{},{query:{method:"GET",isArray:!0,serviceType:"aapi",cache:c}});return d.resetQueryCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiCloud",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudV6")},Aapi:function(){return a.get("OvhApiCloudAapi")},Price:function(){return a.get("OvhApiCloudPrice")},Project:function(){return a.get("OvhApiCloudProject")},PCA:function(){return a.get("OvhApiCloudPCA")}}}]),angular.module("ovh-api-services").service("OvhApiCloudV6",["$resource","OvhApiCloudProjectV6","OvhApiVrack",function(a,b,c){var d={response:function(a){return b.resetAllCache(),c.v6().resetCache(),c.Aapi().resetCache(),a.data}};return a("/cloud",{},{query:{method:"GET",isArray:!0},schema:{method:"GET",url:"/cloud.json"},createProject:{url:"/cloud/createProject",method:"POST",interceptor:d},createProjectInfo:{url:"/cloud/createProjectInfo",method:"GET"},order:{url:"/cloud/order",method:"GET",isArray:!0},subsidiaryPrice:{url:"/cloud/subsidiaryPrice",method:"GET"}})}]),angular.module("ovh-api-services").service("OvhApiCloudPCA",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudPCAV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudPCAV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudPCAv6Query"),d=b("OvhApiCloudPCAV6"),e={response:function(a){return d.remove(a.config.url),c.removeAll(),a.data}},f=a("/cloud/:serviceName/pca/:pcaServiceName",{serviceName:"@serviceName",pcaServiceName:"@pcaServiceName"},{query:{method:"GET",isArray:!0,cache:c},get:{method:"GET",cache:d},transferState:{url:"/cloud/:serviceName/pca/:pcaServiceName/transferState",method:"GET",cache:d},transfer:{url:"/cloud/:serviceName/pca/:pcaServiceName/transfer",method:"POST",interceptor:e},download:{url:"/cloud/:serviceName/pca/:pcaServiceName/download",method:"POST",interceptor:e},deleteData:{url:"/cloud/:serviceName/pca/:pcaServiceName/deleteData",method:"POST",interceptor:e}});return f.resetAllCache=function(){f.resetCache(),f.resetQueryCache()},f.resetCache=function(){d.removeAll()},f.resetQueryCache=function(){c.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiCloudPrice",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudPriceV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudPriceV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudPriceV6");return a("/cloud/price",{flavorId:"@flavorId",region:"@region"},{get:{method:"GET",cache:c},query:{method:"GET",cache:c,isArray:!1}})}]),angular.module("ovh-api-services").service("OvhApiCloudProjectAcl",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectAclV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectAclV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectAclV6Query"),d=b("OvhApiCloudProjectAclV6"),e={response:function(a){return d.remove(a.config.url),c.removeAll(),a.data}},f=a("/cloud/project/:serviceName/acl/:accountId",{serviceName:"@serviceName",accountId:"@accountId"},{get:{method:"GET",cache:d},query:{method:"GET",cache:c,isArray:!0},remove:{method:"DELETE",interceptor:e},add:{url:"/cloud/project/:serviceName/acl",method:"POST",interceptor:e}});return f.resetCache=function(){d.removeAll()},f.resetQueryCache=function(){c.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiCloudProjectAggregateAapi",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectAggregateAapi"),d=a("/cloud/project/:serviceName/aggregate",{serviceName:"@serviceName"},{get:{method:"GET",isArray:!1,serviceType:"aapi"}});return d.resetAllCache=function(){d.resetCache()},d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiCloudProjectAggregate",["$injector",function(a){"use strict";return{Aapi:function(){return a.get("OvhApiCloudProjectAggregateAapi")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectAlerting",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectAlertingV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectAlertingV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectAlertingV6Query"),d=b("OvhApiCloudProjectAlertingV6"),e={response:function(a){return d.remove(a.config.url),c.removeAll(),a.data}},f=a("/cloud/project/:serviceName/alerting/:alertId",{serviceName:"@serviceName",alertId:"@alertId"},{getIds:{method:"GET",cache:d,isArray:!0},get:{method:"GET",cache:d},query:{method:"GET",cache:c,isArray:!0},save:{method:"POST",interceptor:e},put:{method:"PUT",interceptor:e},alert:{url:"/cloud/project/:serviceName/alerting/:alertId/alert",method:"GET",interceptor:e}});return f.resetCache=function(){d.removeAll()},f.resetQueryCache=function(){c.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiCloudProjectBill",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectBillV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectBillV6",["$resource",function(a){"use strict";return a("/cloud/project/:serviceName/bill",{serviceName:"@serviceName",from:"@from",to:"@to"})}]),angular.module("ovh-api-services").service("OvhApiCloudProject",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("CloudProject");return{v6:function(){return a.get("OvhApiCloudProjectV6")},resetCache:c.removeAll,cache:c,Acl:function(){return a.get("OvhApiCloudProjectAcl")},Flavor:function(){return a.get("OvhApiCloudProjectFlavor")},Image:function(){return a.get("OvhApiCloudProjectImage")},Instance:function(){return a.get("OvhApiCloudProjectInstance")},Ip:function(){return a.get("OvhApiCloudProjectIp")},Kube:function(){return a.get("OvhApiCloudProjectKube")},Region:function(){return a.get("OvhApiCloudProjectRegion")},Snapshot:function(){return a.get("OvhApiCloudProjectSnapshot")},SshKey:function(){return a.get("OvhApiCloudProjectSshKey")},Credit:function(){return a.get("OvhApiCloudProjectCredit")},User:function(){return a.get("OvhApiCloudProjectUser")},ServiceInfos:function(){return a.get("OvhApiCloudProjectServiceInfos")},Alerting:function(){return a.get("OvhApiCloudProjectAlerting")},Bill:function(){return a.get("OvhApiCloudProjectBill")},Migration:function(){return a.get("OvhApiCloudProjectMigration")},Stack:function(){return a.get("OvhApiCloudProjectStack")},Volume:function(){return a.get("OvhApiCloudProjectVolume")},Network:function(){return a.get("OvhApiCloudProjectNetwork")},Quota:function(){return a.get("OvhApiCloudProjectQuota")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectV6",["$cacheFactory","$resource","$q","OvhApiCloudProject",function(a,b,c,d){"use strict";var e=a("OvhApiCloudProjectV6Query"),f={response:function(a){return d.resetCache(),a.data}},g=b("/cloud/project/:serviceName",{serviceName:"@serviceName"},{query:{method:"GET",isArray:!0,cache:e},get:{method:"GET",cache:d.cache},unleash:{url:"/cloud/project/:serviceName/unleash",method:"POST",interceptor:f},put:{url:"/cloud/project/:serviceName",method:"PUT",interceptor:f},"delete":{url:"/cloud/project/:serviceName/terminate",method:"POST",interceptor:f},cancelCreation:{url:"/cloud/project/:serviceName/cancel",method:"POST",interceptor:f},vrack:{url:"/cloud/project/:serviceName/vrack",method:"GET"},createVrack:{url:"/cloud/project/:serviceName/vrack",method:"POST",hasBody:!1},operations:{method:"GET",isArray:!0,url:"/cloud/project/:serviceName/operation"},getOperation:{method:"GET",url:"/cloud/project/:serviceName/operation/:operationId"}});return g.queryDetails=function(){return g.query().$promise.then(function(a){var b=[];return angular.forEach(a,function(a){b.push(g.get({serviceName:a}).$promise)}),c.all(b)})},g.resetAllCache=function(){d.resetCache()},g.resetCache=function(){d.resetCache()},g.resetQueryCache=function(){d.resetCache()},g.resetQueryCache=function(){e.removeAll()},g}]),angular.module("ovh-api-services").service("OvhApiCloudProjectConsumption",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectConsumptionV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectConsumptionV6",["$resource",function(a){"use strict";var b=a("/cloud/project/:serviceName/consumption",{serviceName:"@serviceName"},{query:{method:"GET"},current:{url:"/cloud/project/:serviceName/usage/current",method:"GET"},bills:{url:"/cloud/project/:serviceName/usage/history",params:{serviceName:"@serviceName"},queryParams:{from:"@from",to:"@to"},method:"GET",isArray:!0},bill:{url:"/cloud/project/:serviceName/usage/history/:usageId",params:{usageId:"@usageId"},method:"GET"}});return b.getConsumption=function(a,c){if(c.startOf("month").isSame(moment().startOf("month")))return this.current({serviceName:a}).$promise;var d=c.startOf("month").subtract(1,"day").toISOString(),e=c.endOf("month").toISOString();return b.bills({serviceName:a,from:d,to:e}).$promise.then(function(a){return _.map(a,"id")}).then(function(c){return _.any(c)?b.bill({serviceName:a,usageId:_.first(c)}).$promise:null})},b}]),angular.module("ovh-api-services").service("OvhApiCloudProjectCreditAapi",["$resource","OvhApiCloudProjectCredit",function(a,b){"use strict";var c=a("/cloud/project/:serviceName/credit",{serviceName:"@serviceName"},{query:{method:"GET",serviceType:"aapi",cache:b.cache.aapi.query,isArray:!0}});return c}]),angular.module("ovh-api-services").service("OvhApiCloudProjectCredit",["$injector","$cacheFactory",function(a,b){"use strict";var c={v6:{query:b("OvhApiCloudProjectCreditV6Query"),get:b("OvhApiCloudProjectCreditV6")},aapi:{query:b("OvhApiCloudProjectCreditAapiQuery")}};return{v6:function(){return a.get("OvhApiCloudProjectCreditV6")},Aapi:function(){return a.get("OvhApiCloudProjectCreditAapi")},resetCache:function(){c.v6.query.removeAll(),c.v6.get.removeAll(),c.aapi.query.removeAll()},cache:c}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectCreditV6",["$resource","OvhApiCloudProjectCredit",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.data}},d=a("/cloud/project/:serviceName/credit/:creditId",{serviceName:"@serviceName",creditId:"@creditId"},{get:{method:"GET",cache:b.cache.v6.get},query:{method:"GET",cache:b.cache.v6.query,isArray:!0},save:{method:"POST",interceptor:c}});return d.resetCache=function(){b.cache.v6.get.removeAll()},d.resetQueryCache=function(){b.cache.v6.query.removeAll(),b.cache.aapi.query.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiCloudProjectFlavor",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectFlavorV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectFlavorV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectFlavorV6"),d=b("OvhApiCloudProjectFlavorV6Query"),e=a("/cloud/project/:serviceName/flavor/:flavorId",{serviceName:"@serviceName",flavorId:"@flavorId"},{get:{method:"GET",cache:c,transformResponse:function(a,b,c){var d=a;return 200===c&&(d=angular.fromJson(d),d.typeGeneric=_.snakeCase(d.type),d.groupName=d.name.replace(/^win\-/,"")),d}},query:{method:"GET",cache:d,isArray:!0,queryParams:{region:"@region"},transformResponse:function(a,b,c){var d=a;return 200===c?(d=angular.fromJson(d),angular.forEach(d,function(a){a.typeGeneric=_.snakeCase(a.type),a.groupName=a.name.replace(/^win\-/,"")}),_.sortBy(d,function(a){return/(\d+)/.test(a.name)?parseInt(a.name.match(/(\d+)/)[0],10):a.name})):d}}});return e.resetCache=function(){c.removeAll()},e.resetQueryCache=function(){d.removeAll()},e}]),angular.module("ovh-api-services").service("OvhApiCloudProjectForecast",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectForecastV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectForecastV6",["$resource",function(a){"use strict";return a("/cloud/project/:serviceName/forecast",{serviceName:"@serviceName"})}]),angular.module("ovh-api-services").service("OvhApiCloudProjectImage",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectImageV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectImageV6",["$resource","$cacheFactory",function(a,b){"use strict";function c(a,b){if(e[b]){for(var c=0,d=e[b].length;d>c;c++)if(e[b][c].regex.test(a))return e[b][c].name;return b+"_other"}return"unknown"}var d=b("OvhApiCloudProjectImageV6"),e={linux:[{name:"ubuntu",regex:/^Ubuntu/i},{name:"freebsd",regex:/^FreeBSD/i},{name:"coreos",regex:/^CoreOS/i},{name:"debian",regex:/^Debian/i},{name:"centos",regex:/^Cent[\s\-]?OS/i},{name:"fedora",regex:/^Fedora/i},{name:"dokku",regex:/^Dokku/i}],windows:[{name:"windows_server_2012",regex:/^Win[a-zA-Z\s\-]+2012/i},{name:"windows_server_2016",regex:/^Win[a-zA-Z\s\-]+2016/i}]};return a("/cloud/project/:serviceName/image/:imageId",{serviceName:"@serviceName",imageId:"@imageId"},{get:{method:"GET",cache:d,transformResponse:function(a,b,d){var e=a;return 200===d&&(e=angular.fromJson(e),e.nameGeneric=_.snakeCase(e.name),e.distribution=c(e.name,e.type)),e}},query:{method:"GET",cache:d,isArray:!0,transformResponse:function(a,b,d){var e=a;return 200===d?(e=angular.fromJson(e),angular.forEach(e,function(a){a.nameGeneric=_.snakeCase(a.name),a.distribution=c(a.name,a.type)}),_.sortBy(e,"name")):e}}})}]),angular.module("ovh-api-services").service("OvhApiCloudProjectInstanceAapi",["$resource","OvhApiCloudProjectInstance",function(a,b){"use strict";var c=a("/cloud/project/:projectId/instance/monitoring",{projectId:"@projectId"},{monitoring:{url:"/cloud/project/:projectId/instance/monitoring",cache:b.cache,method:"GET",serviceType:"aapi"},summary:{url:"/cloud/project/:projectId/instance/:instanceId/summary",cache:b.cache,method:"GET",serviceType:"aapi",params:{instanceId:"@instanceId"}}});return c}]),angular.module("ovh-api-services").service("OvhApiCloudProjectInstance",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectInstance");return{v6:function(){return a.get("OvhApiCloudProjectInstanceV6")},Aapi:function(){return a.get("OvhApiCloudProjectInstanceAapi")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectInstanceV6",["$resource","OvhApiCloudProjectInstance",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.data}},d=a("/cloud/project/:serviceName/instance/:instanceId",{serviceName:"@serviceName",instanceId:"@instanceId"},{get:{method:"GET",cache:b.cache},query:{method:"GET",cache:b.cache,isArray:!0},save:{method:"POST",interceptor:c},remove:{method:"DELETE",interceptor:c},"delete":{method:"DELETE",interceptor:c},put:{method:"PUT",interceptor:c},backup:{url:"/cloud/project/:serviceName/instance/:instanceId/snapshot",method:"POST",isArray:!1,interceptor:c},reboot:{url:"/cloud/project/:serviceName/instance/:instanceId/reboot",method:"POST",interceptor:c},resume:{url:"/cloud/project/:serviceName/instance/:instanceId/resume",method:"POST",interceptor:c},activeMonthlyBilling:{url:"/cloud/project/:serviceName/instance/:instanceId/activeMonthlyBilling",method:"POST",interceptor:c},applicationAccess:{url:"/cloud/project/:serviceName/instance/:instanceId/applicationAccess",method:"POST",isArray:!0},resize:{url:"/cloud/project/:serviceName/instance/:instanceId/resize",method:"POST",interceptor:c},reinstall:{url:"/cloud/project/:serviceName/instance/:instanceId/reinstall",method:"POST",interceptor:c},rescueMode:{url:"/cloud/project/:serviceName/instance/:instanceId/rescueMode",method:"POST",interceptor:c},vnc:{url:"/cloud/project/:serviceName/instance/:instanceId/vnc",method:"POST"},bulk:{url:"/cloud/project/:serviceName/instance/bulk",method:"POST",interceptor:c,isArray:!0},monitoring:{url:"/cloud/project/:serviceName/instance/:instanceId/monitoring",cache:b.cache,method:"GET"}});return d.resetAllCache=function(){b.resetCache()},d.resetCache=function(){b.resetCache()},d.resetQueryCache=function(){b.resetCache()},d}]),angular.module("ovh-api-services").service("OvhApiCloudProjectIp",["OvhApiCloudProjectIpFailover",function(a){"use strict";return{failover:a}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectIpV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectIpV6Query"),d=b("OvhApiCloudProjectIpV6"),e=a("/cloud/project/:serviceName/ip",{serviceName:"@serviceName"},{get:{method:"GET",cache:d},query:{method:"GET",cache:c,isArray:!0}});return e.resetCache=function(){d.removeAll()},e.resetQueryCache=function(){c.removeAll()},e}]),angular.module("ovh-api-services").service("OvhApiCloudProjectIpFailover",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectIpFailoverV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectIpFailoverV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectIpFailoverV6Query"),d=b("OvhApiCloudProjectIpFailoverV6"),e={response:function(a){return d.remove(a.config.url),c.removeAll(),a.data}},f=a("/cloud/project/:serviceName/ip/failover/:id",{serviceName:"@serviceName",id:"@id"},{get:{method:"GET",cache:d},query:{method:"GET",cache:c,isArray:!0},attach:{method:"POST",url:"/cloud/project/:serviceName/ip/failover/:id/attach",interceptor:e},detach:{method:"POST",url:"/cloud/project/:serviceName/ip/failover/:id/detach",interceptor:e}});return f.resetAllCache=function(){f.resetCache(),f.resetQueryCache()},f.resetCache=function(){d.removeAll()},f.resetQueryCache=function(){c.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiCloudProjectIplb",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectIplbV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectIplbV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectIplbV6Query"),d=b("OvhApiCloudProjectIplbV6"),e=a("/cloud/project/:serviceName/ipLoadbalancing/:id",{serviceName:"@serviceName",id:"@id"},{get:{method:"GET",cache:d},post:{method:"POST"},validate:{method:"POST",url:"/cloud/project/:serviceName/ipLoadbalancing/:id/validate"},query:{method:"GET",cache:c,isArray:!0}});return e.resetCache=function(){d.removeAll()},e.resetQueryCache=function(){c.removeAll()},e}]),angular.module("ovh-api-services").service("OvhApiCloudProjectKubeAapi",["$cacheFactory","$resource",function(a,b){"use strict";var c=a("OvhApiCloudProjectKubeAapi"),d=b("/cloud/project/:serviceName/kube",{serviceName:"@serviceName"},{query:{method:"GET",serviceType:"aapi",cache:c}});return d.resetAllCache=function(){d.resetCache()},d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiCloudProjectKube",["$injector",function(a){"use strict";return{Aapi:function(){return a.get("OvhApiCloudProjectKubeAapi")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectMigration",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectMigrationV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectMigrationV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectMigrationV6Query"),d=b("OvhApiCloudProjectMigrationV6"),e={response:function(a){return d.remove(a.config.url),c.removeAll(),a.data}},f=a("/cloud/project/:serviceName/migration/:migrationId",{serviceName:"@serviceName",migrationId:"@migrationId"},{get:{method:"GET",cache:d},query:{method:"GET",cache:c,isArray:!0},put:{method:"PUT",interceptor:e}});return f.resetCache=function(){d.removeAll()},f.resetQueryCache=function(){c.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiCloudProjectNetwork",["$injector",function(a){"use strict";return{Private:function(){return a.get("OvhApiCloudProjectNetworkPrivate")},Public:function(){return a.get("OvhApiCloudProjectNetworkPublic")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectNetworkPrivate",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectNetworkPrivateV6")},Subnet:function(){return a.get("OvhApiCloudProjectNetworkPrivateSubnet")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectNetworkPrivateV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectNetworkPrivateV6Query"),d=b("OvhApiCloudProjectNetworkPrivateV6"),e={response:function(a){return d.remove(a.config.url),c.removeAll(),a.data}},f=a("/cloud/project/:serviceName/network/private/:networkId",{serviceName:"@serviceName",networkId:"@networkId"},{get:{method:"GET",cache:d},query:{method:"GET",cache:c,isArray:!0},save:{method:"POST",interceptor:e}});return f.resetAllCache=function(){f.resetCache(),f.resetQueryCache()},f.resetCache=function(){d.removeAll()},f.resetQueryCache=function(){c.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiCloudProjectNetworkPrivateSubnet",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectNetworkPrivateSubnetV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectNetworkPrivateSubnetV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectNetworkPrivateSubnetV6Query"),d=b("OvhApiCloudProjectNetworkPrivateSubnetV6"),e={response:function(a){return d.remove(a.config.url),c.removeAll(),a.data}},f=a("/cloud/project/:serviceName/network/private/:networkId/subnet/:subnetId",{serviceName:"@serviceName",networkId:"@networkId",subnetId:"@subnetId"},{get:{method:"GET",cache:d},query:{method:"GET",cache:c,isArray:!0},save:{method:"POST",interceptor:e}});return f.resetAllCache=function(){f.resetCache(),f.resetQueryCache()},f.resetCache=function(){d.removeAll()},f.resetQueryCache=function(){c.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiCloudProjectNetworkPublic",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectNetworkPublicV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectNetworkPublicV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectNetworkPublicV6Query"),d=a("/cloud/project/:serviceName/network/public/:networkId",{serviceName:"@serviceName",networkId:"@networkId"},{query:{method:"GET",cache:c,isArray:!0}});return d.resetAllCache=function(){d.resetQueryCache()},d.resetQueryCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiCloudProjectOpenstackClient",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectOpenstackClientV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectOpenstackClientV6",["$resource",function(a){"use strict";var b=a("/cloud/project/:serviceName/openstackClient",{serviceName:"@serviceName"},{post:{method:"POST"}});return b}]),angular.module("ovh-api-services").service("OvhApiCloudProjectQuota",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectQuotaV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectQuotaV6",["$resource",function(a){"use strict";var b=a("/cloud/project/:serviceName/quota",{serviceName:"@serviceName"},{get:{method:"GET"},query:{method:"GET",isArray:!0}});return b}]),angular.module("ovh-api-services").service("OvhApiCloudProjectAvailableRegions",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectAvailableRegionsV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectAvailableRegionsV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectAvailableRegionsV6Query"),d=b("OvhApiCloudProjectAvailableRegionsV6"),e=a("/cloud/project/:serviceName/regionAvailable",{serviceName:"@serviceName"},{query:{method:"GET",cache:c,isArray:!0,transformResponse:function(a,b,c){var d=a;return 200===c?(d=angular.fromJson(d),d.sort()):d}}});return e.resetCache=function(){d.removeAll()},e.resetQueryCache=function(){c.removeAll()},e}]),angular.module("ovh-api-services").service("OvhApiCloudProjectRegion",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectRegionV6")},Workflow:function(){return a.get("OvhApiCloudProjectRegionWorkflow"); },AvailableRegions:function(){return a.get("OvhApiCloudProjectAvailableRegions")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectRegionV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectRegionV6Query"),d=b("OvhApiCloudProjectRegionV6"),e={response:function(a){return d.remove(a.config.url),c.removeAll(),a.data}},f=a("/cloud/project/:serviceName/region/:id",{serviceName:"@serviceName",id:"@id"},{get:{method:"GET",cache:d},query:{method:"GET",cache:c,isArray:!0,transformResponse:function(a,b,c){var d=a;return 200===c?(d=angular.fromJson(d),d.sort()):d}},addRegion:{method:"POST",interceptor:e}});return f.resetCache=function(){d.removeAll()},f.resetQueryCache=function(){c.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiCloudProjectRegionWorkflowBackup",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectRegionWorkflowBackupV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectRegionWorkflowBackupV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectRegionWorkflowBackupV6Query"),d={response:function(a){return c.removeAll(),a.data}},e=a("/cloud/project/:serviceName/region/:regionName/workflow/backup/:backupId",{serviceName:"@serviceName",regionName:"@regionName"},{query:{method:"GET",cache:c,isArray:!0},save:{method:"POST",interceptor:d},"delete":{method:"DELETE",interceptor:d}});return e.resetQueryCache=function(){c.removeAll()},e}]),angular.module("ovh-api-services").service("OvhApiCloudProjectRegionWorkflow",["$injector",function(a){"use strict";return{Backup:function(){return a.get("OvhApiCloudProjectRegionWorkflowBackup")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectServiceInfos",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectServiceInfosV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectServiceInfosV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectServiceInfosV6Query"),d=b("OvhApiCloudProjectServiceInfosV6"),e={response:function(a){return d.remove(a.config.url),c.removeAll(),a.data}},f=a("/cloud/project/:serviceName/serviceInfos",{serviceName:"@serviceName"},{get:{method:"GET",cache:d},query:{method:"GET",cache:d,isArray:!0},put:{method:"PUT",interceptor:e}});return f.resetCache=function(){d.removeAll()},f.resetQueryCache=function(){c.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiCloudProjectSnapshot",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectSnapshotV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectSnapshotV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectSnapshotV6Query"),d=b("OvhApiCloudProjectSnapshotV6"),e={response:function(a){return d.remove(a.config.url),c.removeAll(),a.data}},f=a("/cloud/project/:serviceName/snapshot/:snapshotId",{serviceName:"@serviceName",snapshotId:"@snapshotId"},{get:{method:"GET",cache:d},query:{method:"GET",cache:c,isArray:!0,transformResponse:function(a,b,c){var d=a;return 200===c?(d=angular.fromJson(d),_.sortBy(d,"name")):d}},save:{method:"POST",interceptor:e},remove:{method:"DELETE",interceptor:e},"delete":{method:"DELETE",interceptor:e}});return f.resetCache=function(){d.removeAll()},f.resetQueryCache=function(){c.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiCloudProjectSshKey",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectSshKeyV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectSshKeyV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectSshKeyV6Query"),d=b("OvhApiCloudProjectSshKeyV6"),e={response:function(a){return d.remove(a.config.url),c.removeAll(),a.data}},f=a("/cloud/project/:serviceName/sshkey/:keyId",{serviceName:"@serviceName",keyId:"@keyId"},{get:{method:"GET",cache:d},query:{method:"GET",cache:c,isArray:!0,transformResponse:function(a,b,c){var d=a;return 200===c?(d=angular.fromJson(d),_.sortBy(d,"name")):angular.fromJson(d)}},save:{method:"POST",interceptor:e},remove:{method:"DELETE",interceptor:e},"delete":{method:"DELETE",interceptor:e}});return f.resetCache=function(){d.removeAll()},f.resetQueryCache=function(){c.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiCloudProjectStack",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectStackV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectStackV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectStackV6Query"),d=b("OvhApiCloudProjectStackV6"),e={response:function(a){return d.remove(a.config.url),c.removeAll(),a.data}},f=a("/cloud/project/:serviceName/stack/:stackId",{serviceName:"@serviceName",stackId:"@stackId"},{get:{method:"GET",cache:d},query:{method:"GET",cache:c,isArray:!0},availability:{url:"/cloud/project/:serviceName/stack/:stackId/availability",method:"GET",interceptor:e},client:{url:"/cloud/project/:serviceName/stack/:stackId/client",method:"POST",interceptor:e}});return f.resetCache=function(){d.removeAll()},f.resetQueryCache=function(){c.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiCloudProjectStorageAapi",["$resource",function(a){"use strict";var b=a("/cloud/project/:serviceName/storages",{serviceName:"@serviceName"},{query:{method:"GET",serviceType:"aapi",archive:"@archive",isArray:!0}});return b}]),angular.module("ovh-api-services").service("OvhApiCloudProjectStorage",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectStorageV6")},Aapi:function(){return a.get("OvhApiCloudProjectStorageAapi")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectStorageV6",["$resource",function(a){"use strict";var b="/:basePath/cloud/project/:projectId/storage/:containerId";return a(b,{projectId:"@projectId",containerId:"@containerId"},{access:{method:"POST",url:"/:basePath/cloud/project/:projectId/storage/access"},cors:{method:"POST",url:b+"/cors"},getURL:{method:"POST",url:b+"/publicUrl"},"static":{method:"POST",url:b+"/static"}})}]),angular.module("ovh-api-services").service("OvhApiCloudProjectUsage",["$injector",function(a){"use strict";return{History:function(){return a.get("OvhApiCloudProjectUsageHistory")},Current:function(){return a.get("OvhApiCloudProjectUsageCurrent")},Forecast:function(){return a.get("OvhApiCloudProjectUsageForecast")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectUsageCurrent",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectUsageCurrentV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectUsageCurrentV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectUsageCurrentV6"),d=a("/cloud/project/:serviceName/usage/current",{serviceName:"@serviceName"},{get:{method:"GET",cache:c}});return d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiCloudProjectUsageForecast",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectUsageForecastV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectUsageForecastV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectUsageForecastV6"),d=a("/cloud/project/:serviceName/usage/forecast",{serviceName:"@serviceName"},{get:{method:"GET",cache:c}});return d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiCloudProjectUsageHistory",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectUsageHistoryV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectUsageHistoryV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectUsageHistoryV6Query"),d=b("OvhApiCloudProjectUsageHistoryV6"),e=a("/cloud/project/:serviceName/usage/history/:usageId",{serviceName:"@serviceName",usageId:"@usageId"},{get:{method:"GET",cache:d},query:{method:"GET",cache:c,isArray:!0}});return e.resetCache=function(){d.removeAll()},e.resetQueryCache=function(){c.removeAll()},e}]),angular.module("ovh-api-services").service("OvhApiCloudProjectUserAapi",["$resource",function(a){"use strict";var b={openrc:{method:"GET",serviceType:"aapi",url:"/cloud/project/:serviceName/user/:userId/openrc"}},c=a("/cloud/project/:serviceName/user/:userId",{serviceName:"@serviceName",userId:"@userId"},b);return c.services=b,c}]),angular.module("ovh-api-services").service("OvhApiCloudProjectUser",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectUserV6")},Aapi:function(){return a.get("OvhApiCloudProjectUserAapi")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectUserV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectUserV6Query"),d=b("OvhApiCloudProjectUserV6"),e={response:function(a){return d.remove(a.config.url),c.removeAll(),a.data}},f={rclone:{method:"GET",url:"/cloud/project/:serviceName/user/:userId/rclone"}},g=a("/cloud/project/:serviceName/user/:userId",{serviceName:"@serviceName",userId:"@userId"},{get:{method:"GET",cache:d},query:{method:"GET",cache:c,isArray:!0},remove:{method:"DELETE",interceptor:e},password:{method:"POST",url:"/cloud/project/:serviceName/user/:userId/regeneratePassword"},token:{method:"POST",url:"/cloud/project/:serviceName/user/:userId/token"},openrc:{method:"GET",url:"/cloud/project/:serviceName/user/:userId/openrc"},ec2Credential:{method:"POST",url:"/cloud/project/:serviceName/user/:userId/ec2Credential"},rclone:{method:"GET",url:"/cloud/project/:serviceName/user/:userId/rclone"}},f);return g.services=f,g.resetCache=function(){d.removeAll()},g.resetQueryCache=function(){c.removeAll()},g}]),angular.module("ovh-api-services").service("OvhApiCloudProjectVolume",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectVolumeV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectVolumeV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectVolumeV6Query"),d=b("OvhApiCloudProjectVolumeV6"),e={response:function(a){return d.remove(a.config.url),c.removeAll(),a.data}},f=a("/cloud/project/:serviceName/volume/:volumeId",{serviceName:"@serviceName",volumeId:"@volumeId"},{get:{method:"GET",cache:d},query:{method:"GET",cache:c,isArray:!0},save:{method:"POST",interceptor:e},remove:{method:"DELETE",interceptor:e},"delete":{method:"DELETE",interceptor:e},put:{method:"PUT",interceptor:e},attach:{url:"/cloud/project/:serviceName/volume/:volumeId/attach",method:"POST",interceptor:e},detach:{url:"/cloud/project/:serviceName/volume/:volumeId/detach",method:"POST",interceptor:e},upsize:{url:"/cloud/project/:serviceName/volume/:volumeId/upsize",method:"POST",interceptor:e}});return f.resetAllCache=function(){f.resetCache(),f.resetQueryCache()},f.resetCache=function(){d.removeAll()},f.resetQueryCache=function(){c.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiCloudProjectVolumeSnapshot",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiCloudProjectVolumeSnapshotV6")}}}]),angular.module("ovh-api-services").service("OvhApiCloudProjectVolumeSnapshotV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiCloudProjectVolumeSnapshotV6Query"),d=b("OvhApiCloudProjectVolumeSnapshotV6"),e={response:function(a){return d.remove(a.config.url),c.removeAll(),a.data}},f=a("/cloud/project/:serviceName/volume/snapshot/:snapshotId",{serviceName:"@serviceName",volumeId:"@snapshotId"},{get:{method:"GET",cache:d},query:{method:"GET",cache:c,isArray:!0},"delete":{method:"DELETE",interceptor:e},create:{url:"/cloud/project/:serviceName/volume/:volumeId/snapshot",method:"POST",param:{serviceName:"@serviceName",volumeId:"@volumeId"},interceptor:e}});return f.resetAllCache=function(){f.resetCache(),f.resetQueryCache()},f.resetCache=function(){d.removeAll()},f.resetQueryCache=function(){c.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiConnectivityEligibility",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiConnectivityEligibility");return{v6:function(){return a.get("OvhApiConnectivityEligibilityV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiConnectivityEligibilityV6",["$resource","OvhApiConnectivityEligibility",function(a,b){"use strict";return a("/connectivity/eligibility/search/buildingDetails ",{},{buildingDetails:{method:"POST",isArray:!1,cache:b.cache}})}]),angular.module("ovh-api-services").service("OvhApiDbaas",["$injector",function(a){"use strict";return{Queue:function(){return a.get("OvhApiDbaasQueue")},Logs:function(){return a.get("OvhApiDbaasLogs")},Order:function(){return a.get("OvhApiDbaasOrder")}}}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsAccountingAapi",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiDbaasLogsAccountingAapi"),d=a("/dbaas/logs/:serviceName/accounting",{serviceName:"@serviceName"},{me:{method:"GET",url:"/dbaas/logs/:serviceName/accounting",serviceType:"aapi",cache:c,isArray:!1}});return d.resetAllCache=function(){d.resetCache()},d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsAccounting",["$injector",function(a){"use strict";return{Aapi:function(){return a.get("OvhApiDbaasLogsAccountingAapi")}}}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsAlertIceberg",["iceberg",function(a){"use strict";var b=a("/dbaas/logs/:serviceName/output/graylog/stream/:streamId/alert/:alertId",{serviceName:"@serviceName",streamId:"@streamId",alertId:"@alertId"},{post:{method:"POST"},put:{method:"PUT"}});return b}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsAlert",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiDbaasLogsAlertV6")},Iceberg:function(){return a.get("OvhApiDbaasLogsAlertIceberg")}}}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsAlertV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiDbaasLogsAlertV6"),d=b("OvhApiDbaasLogsAlertV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a}},f=a("/dbaas/logs/:serviceName/output/graylog/stream/:streamId/alert/:alertId",{serviceName:"@serviceName",streamId:"@streamId",alertId:"@alertId"},{query:{method:"GET",isArray:!0,cache:d},get:{method:"GET",cache:c},post:{method:"POST",interceptor:e},put:{method:"PUT",interceptor:e},"delete":{method:"DELETE",interceptor:e}});return f.resetAllCache=function(){f.resetCache(),f.resetQueryCache()},f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsAliasAapi",["$resource",function(a){"use strict";var b=a("/dbaas/logs/:serviceName/alias/:aliasId",{},{get:{method:"GET",serviceType:"aapi"}});return b}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsAliasIceberg",["iceberg",function(a){"use strict";var b=a("/dbaas/logs/:serviceName/output/elasticsearch/alias/:aliasId",{serviceName:"@serviceName"},{create:{method:"POST"},update:{method:"PUT"},linkStream:{method:"POST",url:"/dbaas/logs/:serviceName/output/elasticsearch/alias/:aliasId/stream"},unlinkStream:{method:"DELETE",url:"/dbaas/logs/:serviceName/output/elasticsearch/alias/:aliasId/stream/:streamId"},linkIndex:{method:"POST",url:"/dbaas/logs/:serviceName/output/elasticsearch/alias/:aliasId/index"},unlinkIndex:{method:"DELETE",url:"/dbaas/logs/:serviceName/output/elasticsearch/alias/:aliasId/index/:indexId"}});return b}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsAlias",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiDbaasLogsAliasV6")},Iceberg:function(){return a.get("OvhApiDbaasLogsAliasIceberg")},Aapi:function(){return a.get("OvhApiDbaasLogsAliasAapi")}}}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsAliasV6",["$resource",function(a){"use strict";var b=a("/dbaas/logs/:serviceName/output/elasticsearch/alias/:aliasId",{serviceName:"@serviceName"},{create:{method:"POST"},update:{method:"PUT"},remove:{method:"DELETE"},linkStream:{method:"POST",url:"/dbaas/logs/:serviceName/output/elasticsearch/alias/:aliasId/stream"},unlinkStream:{method:"DELETE",url:"/dbaas/logs/:serviceName/output/elasticsearch/alias/:aliasId/stream/:streamId"},linkIndex:{method:"POST",url:"/dbaas/logs/:serviceName/output/elasticsearch/alias/:aliasId/index"},unlinkIndex:{method:"DELETE",url:"/dbaas/logs/:serviceName/output/elasticsearch/alias/:aliasId/index/:indexId"},query:{method:"GET",isArray:!0}});return b}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsArchiveIceberg",["iceberg",function(a){"use strict";var b=a("/dbaas/logs/:serviceName/output/graylog/stream/:streamId/archive/:archiveId",{serviceName:"@serviceName",streamId:"@streamId",archiveId:"@archiveId",expirationInSeconds:"@expirationInSeconds"},{url:{method:"POST",url:"/dbaas/logs/:serviceName/output/graylog/stream/:streamId/archive/:archiveId/url"}});return b}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsArchive",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiDbaasLogsArchiveV6")},Iceberg:function(){return a.get("OvhApiDbaasLogsArchiveIceberg")}}}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsArchiveV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiDbaasLogsArchiveV6Query"),d={response:function(a){return c.removeAll(),a}},e=a("/dbaas/logs/:serviceName/output/graylog/stream/:streamId/archive/:archiveId",{serviceName:"@serviceName",streamId:"@streamId",archiveId:"@archiveId",expirationInSeconds:"@expirationInSeconds"},{query:{method:"GET",isArray:!0,cache:c},get:{method:"GET"},url:{method:"POST",interceptor:d,url:"/dbaas/logs/:serviceName/output/graylog/stream/:streamId/archive/:archiveId/url"}});return e.resetQueryCache=function(){c.removeAll()},e}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsClusterIceberg",["iceberg",function(a){"use strict";var b=a("/dbaas/logs/:serviceName/cluster/:clusterId",{serviceName:"@serviceName",clusterId:"@clusterId"});return b}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsCluster",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiDbaasLogsClusterV6")},Iceberg:function(){return a.get("OvhApiDbaasLogsClusterIceberg")}}}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsClusterV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiDbaasLogsClusterV6"),d=b("OvhApiDbaasLogsClusterV6Query"),e=a("/dbaas/logs/:serviceName/cluster/:clusterId",{serviceName:"@serviceName",clusterId:"@clusterId"},{query:{method:"GET",isArray:!0,cache:d},get:{method:"GET",cache:c}});return e.resetAllCache=function(){e.resetCache(),e.resetQueryCache()},e.resetCache=function(){c.removeAll()},e.resetQueryCache=function(){d.removeAll()},e}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsContacts",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiDbaasLogsContactsV6")}}}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsContactsV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiDbaasLogsContactsV6"),d=a("/me/contact/:contactId",{contactId:"@contactId"},{query:{method:"GET",isArray:!0},get:{method:"GET",cache:c}});return d.resetAllCache=function(){d.resetCache()},d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsDashboardAapi",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiDbaasLogsDashboardAapi"),d=a("/dbaas/logs/:serviceName/dashboard/:dashboardId",{serviceName:"@serviceName",dashboardId:"@dashboardId"},{get:{method:"GET",serviceType:"aapi",cache:c,isArray:!1}});return d.resetAllCache=function(){d.resetCache()},d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsDashboardIceberg",["iceberg",function(a){"use strict";var b=a("/dbaas/logs/:serviceName/output/graylog/dashboard/:dashboardId",{serviceName:"@serviceName",dashboardId:"@dashboardId"},{create:{method:"POST"},update:{method:"PUT"},duplicate:{method:"POST",url:"/dbaas/logs/:serviceName/output/graylog/dashboard/:dashboardId/duplicate"}});return b}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsDashboard",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiDbaasLogsDashboardV6")},Iceberg:function(){return a.get("OvhApiDbaasLogsDashboardIceberg")},Aapi:function(){return a.get("OvhApiDbaasLogsDashboardAapi")}}}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsDashboardV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiDbaasLogsDashboardV6"),d=b("OvhApiDbaasLogsDashboardV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a}},f=a("/dbaas/logs/:serviceName/output/graylog/dashboard/:dashboardId",{serviceName:"@serviceName",dashboardId:"@dashboardId"},{query:{method:"GET",isArray:!0,cache:d},create:{method:"POST",interceptor:e},update:{method:"PUT",interceptor:e},remove:{method:"DELETE",interceptor:e},duplicate:{method:"POST",url:"/dbaas/logs/:serviceName/output/graylog/dashboard/:dashboardId/duplicate",interceptor:e}});return f.resetAllCache=function(){f.resetCache(),f.resetQueryCache()},f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsDetailsAapi",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiDbaasLogsDetailsAapi"),d=a("/dbaas/logs/:serviceName/home",{serviceName:"@serviceName"},{me:{method:"GET",serviceType:"aapi",cache:c,isArray:!1}});return d.resetAllCache=function(){d.resetCache()},d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsDetails",["$injector",function(a){"use strict";return{Aapi:function(){return a.get("OvhApiDbaasLogsDetailsAapi")}}}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsIndexAapi",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiDbaasLogsIndexAapi"),d=b("OvhApiDbaasLogsIndexAapiQuery"),e=a("/dbaas/logs/:serviceName/index/:indexId",{serviceName:"@serviceName",indexId:"@indexId"},{get:{method:"GET",serviceType:"aapi",cache:c,isArray:!1}});return e.resetAllCache=function(){e.resetCache(),e.resetQueryCache()},e.resetCache=function(){c.removeAll()},e.resetQueryCache=function(){d.removeAll()},e}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsIndexIceberg",["iceberg",function(a){"use strict";var b=a("/dbaas/logs/:serviceName/output/elasticsearch/index/:indexId",{serviceName:"@serviceName",indexId:"@indexId"},{post:{method:"POST"},put:{method:"PUT"}});return b}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsIndex",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiDbaasLogsIndexV6")},Iceberg:function(){return a.get("OvhApiDbaasLogsIndexIceberg")},Aapi:function(){return a.get("OvhApiDbaasLogsIndexAapi")}}}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsIndexV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiDbaasLogsIndexV6"),d=b("OvhApiDbaasLogsIndexV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a}},f=a("/dbaas/logs/:serviceName/output/elasticsearch/index/:indexId",{serviceName:"@serviceName",indexId:"@indexId"},{query:{method:"GET",cache:d,isArray:!0},get:{method:"GET",cache:c},post:{method:"POST",interceptor:e},put:{method:"PUT",interceptor:e},"delete":{method:"DELETE",interceptor:e}});return f.resetAllCache=function(){f.resetCache(),f.resetQueryCache()},f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsInputAapi",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiDbaasLogsInputAapi"),d=a("/dbaas/logs/:serviceName/input/:inputId",{serviceName:"@serviceName",inputId:"@inputId"},{get:{method:"GET",serviceType:"aapi",cache:c,isArray:!1}});return d.resetAllCache=function(){d.resetCache()},d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsInputIceberg",["iceberg",function(a){"use strict";var b=a("/dbaas/logs/:serviceName/input/:inputId",{serviceName:"@serviceName",inputId:"@inputId",allowedNetworkId:"@allowedNetworkId"},{create:{method:"POST"},update:{method:"PUT"},start:{method:"POST",url:"/dbaas/logs/:serviceName/input/:inputId/start"},restart:{method:"POST",url:"/dbaas/logs/:serviceName/input/:inputId/restart"},end:{method:"POST",url:"/dbaas/logs/:serviceName/input/:inputId/end"},logurl:{method:"POST",url:"/dbaas/logs/:serviceName/input/:inputId/logs/url"},test:{method:"POST",url:"/dbaas/logs/:serviceName/input/:inputId/configtest"},testResult:{method:"GET",url:"/dbaas/logs/:serviceName/input/:inputId/configtest/result"},updateLogstash:{method:"PUT",url:"/dbaas/logs/:serviceName/input/:inputId/configuration/logstash"},updateFlowgger:{method:"PUT",url:"/dbaas/logs/:serviceName/input/:inputId/configuration/flowgger"},trustNetwork:{method:"POST",url:"/dbaas/logs/:serviceName/input/:inputId/allowedNetwork"},rejectNetwork:{method:"DELETE",url:"/dbaas/logs/:serviceName/input/:inputId/allowedNetwork/:allowedNetworkId"}});return b}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsInput",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiDbaasLogsInputV6")},Iceberg:function(){return a.get("OvhApiDbaasLogsInputIceberg")},Aapi:function(){return a.get("OvhApiDbaasLogsInputAapi")}}}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsInputV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiDbaasLogsInputV6"),d=b("OvhApiDbaasLogsInputV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a}},f=a("/dbaas/logs/:serviceName/input/:inputId",{serviceName:"@serviceName",inputId:"@inputId",allowedNetworkId:"@allowedNetworkId"},{query:{method:"GET",isArray:!0,cache:d},get:{method:"GET",cache:c},create:{method:"POST",interceptor:e},update:{method:"PUT",interceptor:e},"delete":{method:"DELETE",interceptor:e},start:{method:"POST",interceptor:e,url:"/dbaas/logs/:serviceName/input/:inputId/start"},restart:{method:"POST",interceptor:e,url:"/dbaas/logs/:serviceName/input/:inputId/restart"},end:{method:"POST",interceptor:e,url:"/dbaas/logs/:serviceName/input/:inputId/end"},logurl:{method:"POST",interceptor:e,url:"/dbaas/logs/:serviceName/input/:inputId/logs/url"},test:{method:"POST",url:"/dbaas/logs/:serviceName/input/:inputId/configtest"},testResult:{method:"GET",url:"/dbaas/logs/:serviceName/input/:inputId/configtest/result"},updateLogstash:{method:"PUT",interceptor:e,url:"/dbaas/logs/:serviceName/input/:inputId/configuration/logstash"},updateFlowgger:{method:"PUT",interceptor:e,url:"/dbaas/logs/:serviceName/input/:inputId/configuration/flowgger"},trustNetwork:{method:"POST",interceptor:e,url:"/dbaas/logs/:serviceName/input/:inputId/allowedNetwork"},rejectNetwork:{method:"DELETE",interceptor:e,url:"/dbaas/logs/:serviceName/input/:inputId/allowedNetwork/:allowedNetworkId"}});return f.resetAllCache=function(){f.resetCache(),f.resetQueryCache()},f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsAapi",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiDbaasLogsAapi"),d=a("/dbaas/logs/:serviceName/home",{},{home:{method:"GET",url:"/dbaas/logs/:serviceName/home",serviceType:"aapi",cache:c,isArray:!1}});return d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsIceberg",["iceberg",function(a){"use strict";var b=a("/dbaas/logs/:serviceName",{serviceName:"@serviceName"});return b}]),angular.module("ovh-api-services").service("OvhApiDbaasLogs",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiDbaasLogsV6")},Iceberg:function(){return a.get("OvhApiDbaasLogsIceberg")},Aapi:function(){return a.get("OvhApiDbaasLogsAapi")},Accounting:function(){return a.get("OvhApiDbaasLogsAccounting")},Cluster:function(){return a.get("OvhApiDbaasLogsCluster")},Contacts:function(){return a.get("OvhApiDbaasLogsContacts")},Details:function(){return a.get("OvhApiDbaasLogsDetails")},Stream:function(){return a.get("OvhApiDbaasLogsStream")},Offer:function(){return a.get("OvhApiDbaasLogsOffer")},Operation:function(){return a.get("OvhApiDbaasLogsOperation")},Alert:function(){return a.get("OvhApiDbaasLogsAlert")},Index:function(){return a.get("OvhApiDbaasLogsIndex")},Alias:function(){return a.get("OvhApiDbaasLogsAlias")},Archive:function(){return a.get("OvhApiDbaasLogsArchive")},Role:function(){return a.get("OvhApiDbaasLogsRole")},Input:function(){return a.get("OvhApiDbaasLogsInput")},Token:function(){return a.get("OvhApiDbaasLogsTokens")},Dashboard:function(){return a.get("OvhApiDbaasLogsDashboard")},User:function(){return a.get("OvhApiDbaasLogsUser")},Option:function(){return a.get("OvhApiDbaasLogsOption")}}}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiDbaasLogsV6"),d={response:function(a){return c.remove(a.config.url),a}},e=a("/dbaas/logs/:serviceName",{serviceName:"@serviceName"},{streams:{method:"GET",isArray:!0,url:"/dbaas/logs/:serviceName/output/graylog/stream",cache:c},logDetail:{method:"GET",cache:c},update:{method:"PUT",interceptor:d},serviceInfos:{method:"GET",url:"/dbaas/logs/:serviceName/serviceInfos",cache:c}});return e.resetAllCache=function(){e.resetCache()},e.resetCache=function(){c.removeAll()},e}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsOfferIceberg",["iceberg",function(a){"use strict";var b=a("/dbaas/logs/:serviceName/offer",{serviceName:"@serviceName"},{offerDetail:{url:"/dbaas/logs/offer/:offerCode",method:"GET"}});return b}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsOffer",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiDbaasLogsOfferV6")},Iceberg:function(){return a.get("OvhApiDbaasLogsOfferIceberg")}}}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsOfferV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiDbaasLogsOfferV6"),d=b("OvhApiDbaasLogsOfferV6Query"),e=a("/dbaas/logs/:serviceName/offer",{serviceName:"@serviceName"},{get:{method:"GET",cache:c},offerDetail:{url:"/dbaas/logs/offer/:offerCode",method:"GET",cache:c}});return e.resetAllCache=function(){e.resetCache(),e.resetQueryCache()},e.resetCache=function(){c.removeAll()},e.resetQueryCache=function(){d.removeAll()},e}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsOperationIceberg",["iceberg",function(a){"use strict";var b=a("/dbaas/logs/:serviceName/operation/:operationId",{serviceName:"@serviceName",operationId:"@operationId"});return b}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsOperation",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiDbaasLogsOperationV6")},Iceberg:function(){return a.get("OvhApiDbaasLogsOperationIceberg")}}}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsOperationV6",["$resource",function(a){"use strict";var b=a("/dbaas/logs/:serviceName/operation/:operationId",{serviceName:"@serviceName",operationId:"@operationId"},{get:{method:"GET",url:"/dbaas/logs/:serviceName/operation/:operationId"}});return b}]),angular.module("ovh-api-services").service("OvhApiDbaasLogsOptionIceberg",["iceberg",function(a){"use strict";var b=a("/dbaas/logs/:serviceName/option/{optionId}",{ @@ -15,4 +15,4 @@ isArray:!1}})}]),angular.module("ovh-api-services").service("OvhApiTelephonyConf method:"PUT",isArray:!1},create:{method:"POST",isArray:!1}})}]),angular.module("ovh-api-services").service("OvhApiTelephonyPhonebookPhonebookContact",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyPhonebookPhonebookContactV6")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyPhonebookPhonebookContactV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiTelephonyPhonebookPhonebookContactV6"),d=b("OvhApiTelephonyPhonebookPhonebookContactV6Query"),e=b("OvhApiTelephonyPhonebookPhonebookContactv6Batch"),f={response:function(a){return c.remove(a.config.url),d.removeAll(),e.remove(a.config.url),a.resource}},g=a("/telephony/:billingAccount/phonebook/:bookKey/phonebookContact/:id",{billingAccount:"@billingAccount",bookKey:"@bookKey",id:"@id"},{query:{method:"GET",isArray:!0,cache:d},get:{method:"GET",cache:c},getBatch:{method:"GET",isArray:!0,headers:{"X-Ovh-Batch":","},cache:e},create:{method:"POST",url:"/telephony/:billingAccount/phonebook/:bookKey/phonebookContact",interceptor:f},update:{method:"PUT",interceptor:f},remove:{method:"DELETE",interceptor:f}});return g.resetCache=function(){c.removeAll()},g.resetQueryCache=function(){d.removeAll()},g.resetBatchCache=function(){e.removeAll()},g.resetAllCache=function(){this.resetCache(),this.resetQueryCache(),this.resetBatchCache()},g}]),angular.module("ovh-api-services").service("OvhApiTelephonyPhonebook",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyPhonebookV6")},PhonebookContact:function(){return a.get("OvhApiTelephonyPhonebookPhonebookContact")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyPhonebookV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiTelephonyPhonebookV6"),d=b("OvhApiTelephonyPhonebookV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a.resource}},f=a("/telephony/:billingAccount/phonebook/:bookKey",{billingAccount:"@billingAccount",bookKey:"@bookKey"},{query:{method:"GET",isArray:!0,cache:d},get:{method:"GET",cache:c},create:{method:"POST",url:"/telephony/:billingAccount/phonebook",interceptor:e,transformResponse:function(a,b,c){return 200===c?{bookKey:angular.fromJson(a)}:null}},update:{method:"PUT",interceptor:e},remove:{method:"DELETE",interceptor:e},getExport:{method:"GET",url:"/telephony/:billingAccount/phonebook/:bookKey/export"},"import":{method:"POST",url:"/telephony/:billingAccount/phonebook/:bookKey/import",interceptor:e}});return f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f.resetAllCache=function(){this.resetCache(),this.resetQueryCache()},f}]),angular.module("ovh-api-services").service("OvhApiTelephonyPortability",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyPortabilityV6")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyPortabilityV6",["$resource","$http",function(a,b){"use strict";var c=function(a,b,c){var d={};return 403===c?(d.value=!1,d.message=a.message):d.value=a,d};return a("/telephony/:billingAccount/portability/:id",{billingAccount:"@billingAccount",id:"@id"},{query:{method:"GET",isArray:!0},get:{method:"GET"},getStatus:{method:"GET",url:"/telephony/:billingAccount/portability/:id/status",isArray:!0},canBeCancelled:{method:"GET",url:"/telephony/:billingAccount/portability/:id/canBeCancelled",isArray:!1,transformResponse:b.defaults.transformResponse.concat(c)},cancel:{method:"POST",url:"/telephony/:billingAccount/portability/:id/cancel",isArray:!1},canBeExecuted:{method:"GET",url:"/telephony/:billingAccount/portability/:id/canBeExecuted",isArray:!1,transformResponse:b.defaults.transformResponse.concat(c)},execute:{method:"POST",url:"/telephony/:billingAccount/portability/:id/execute",isArray:!1},dateCanBeChanged:{method:"GET",url:"/telephony/:billingAccount/portability/:id/dateCanBeChanged",isArray:!1,transformResponse:b.defaults.transformResponse.concat(c)},changeDate:{method:"POST",url:"/telephony/:billingAccount/portability/:id/changeDate",isArray:!1}})}]),angular.module("ovh-api-services").service("OvhApiTelephonyRedirect",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyRedirectV6")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyRedirectV6",["$resource",function(a){return a("/telephony/:billingAccount/:featureType/:serviceName",{billingAccount:"@billingAccount",featureType:"@featureType",serviceName:"@serviceName"},{change:{method:"POST",url:"/telephony/:billingAccount/:featureType/:serviceName/changeDestination ",isArray:!1}})}]),angular.module("ovh-api-services").service("OvhApiTelephonyRsva",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyRsvaV6")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyRsvaV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiTelephonyRsvaV6"),d=function(a){return c.removeAll(),a.data},e=a("/telephony/:billingAccount/rsva/:serviceName",{billingAccount:"@billingAccount",serviceName:"@serviceName"},{query:{method:"GET",cache:c,isArray:!0},edit:{method:"PUT",interceptor:d},getAllowedRateCodes:{method:"GET",url:"/telephony/:billingAccount/rsva/:serviceName/allowedRateCodes",cache:c,isArray:!0},getCurrentRateCode:{method:"GET",url:"/telephony/:billingAccount/rsva/:serviceName/currentRateCode",cache:c},getScheduledRateCode:{method:"GET",url:"/telephony/:billingAccount/rsva/:serviceName/scheduledRateCode",cache:c},scheduleRateCode:{method:"POST",url:"/telephony/:billingAccount/rsva/:serviceName/scheduleRateCode",interceptor:d},cancelScheduledRateCode:{method:"POST",url:"/telephony/:billingAccount/rsva/:serviceName/cancelScheduledRateCode",interceptor:d}});return e.resetCache=function(){c.removeAll()},e}]),angular.module("ovh-api-services").service("OvhApiTelephonySchedulerEvents",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonySchedulerEventsV6")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonySchedulerEventsV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiTelephonySchedulerEventsV6"),d=b("OvhApiTelephonySchedulerEventsV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a.resource}},f=a("/telephony/:billingAccount/scheduler/:serviceName/events/:uid",{billingAccount:"@billingAccount",serviceName:"@serviceName",uid:"@uid"},{get:{method:"GET",isArray:!1,cache:c},query:{method:"GET",isArray:!0,cache:d},getBatch:{method:"GET",isArray:!0,headers:{"X-Ovh-Batch":","},cache:d},create:{url:"/telephony/:billingAccount/scheduler/:serviceName/events",params:{billingAccount:"@billingAccount",serviceName:"@serviceName"},method:"POST",interceptor:e},save:{method:"PUT",interceptor:e},remove:{method:"DELETE",interceptor:e}});return f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f.resetAllCache=function(){this.resetCache(),this.resetQueryCache()},f}]),angular.module("ovh-api-services").service("OvhApiTelephonyScheduler",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonySchedulerV6")},Events:function(){return a.get("OvhApiTelephonySchedulerEvents")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonySchedulerV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiTelephonySchedulerV6"),d=b("OvhApiTelephonySchedulerV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a.resource}},f=a("/telephony/:billingAccount/scheduler/:serviceName",{billingAccount:"@billingAccount",serviceName:"@serviceName"},{get:{method:"GET",isArray:!1,cache:c},query:{method:"GET",isArray:!0,cache:d},getBatch:{method:"GET",isArray:!0,headers:{"X-Ovh-Batch":","},cache:d},save:{method:"PUT",interceptor:e},importIcsCalendar:{method:"POST",url:"/telephony/:billingAccount/scheduler/:serviceName/importIcsCalendar",interceptor:e}});return f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f.resetAllCache=function(){this.resetCache(),this.resetQueryCache()},f}]),angular.module("ovh-api-services").service("OvhApiTelephonyScreenLists",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyScreenListsV6")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyScreenListsV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiTelephonyScreenListsV6"),d=b("OvhApiTelephonyScreenListsV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a.resource}},f=a("/telephony/:billingAccount/screen/:serviceName/screenLists/:id",{billingAccount:"@billingAccount",serviceName:"@serviceName",id:"@id"},{query:{method:"GET",isArray:!0,cache:d},get:{method:"GET",cache:c},getBatch:{method:"GET",isArray:!0,headers:{"X-Ovh-Batch":","},cache:c},create:{method:"POST",interceptor:e},remove:{method:"DELETE",interceptor:e}});return f.resetAllCache=function(){c.removeAll(),d.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiTelephonyScreen",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyScreenV6")},ScreenLists:function(){return a.get("OvhApiTelephonyScreenLists")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyScreenV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiTelephonyScreenV6"),d=b("OvhApiTelephonyScreenV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a.resource}},f=a("/telephony/:billingAccount/screen/:serviceName",{billingAccount:"@billingAccount",serviceName:"@serviceName"},{query:{method:"GET",isArray:!0,cache:d},get:{method:"GET",cache:c},getBatch:{method:"GET",isArray:!0,headers:{"X-Ovh-Batch":","},cache:c},change:{method:"PUT",interceptor:e}});return f.resetAllCache=function(){c.removeAll(),d.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiTelephonyServiceFaxConsumption",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyServiceFaxConsumptionV6")},v7:function(){return a.get("OvhApiTelephonyServiceFaxConsumptionV7")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyServiceFaxConsumptionV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiTelephonyServiceFaxConsumptionV6"),d=b("OvhApiTelephonyServiceFaxConsumptionV6Query"),e=a("/telephony/:billingAccount/service/:serviceName/faxConsumption/:consumptionId",{billingAccount:"@billingAccount",serviceName:"@serviceName",consumptionId:"@consumptionId"},{get:{method:"GET",cache:c},getBatch:{method:"GET",isArray:!0,cache:d,headers:{"X-Ovh-Batch":","}},query:{method:"GET",cache:d,isArray:!0}});return e.resetCache=function(){c.removeAll()},e.resetQueryCache=function(){d.removeAll()},e}]),angular.module("ovh-api-services").service("OvhApiTelephonyServiceFaxConsumptionV7",["apiv7",function(a){"use strict";return a("/telephony/:billingAccount/service/:serviceName/faxConsumption/:consumptionId",{billingAccount:"@billingAccount",serviceName:"@serviceName",consumptionId:"@consumptionId"})}]),angular.module("ovh-api-services").service("OvhApiTelephonyServiceOfferTask",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyServiceOfferTaskV6")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyServiceOfferTaskV6",["$resource",function(a){"use strict";return a("/telephony/:billingAccount/service/:serviceName/offerTask/:taskId",{billingAccount:"@billingAccount",serviceName:"@serviceName",taskId:"@taskId"},{query:{method:"GET",isArray:!0},get:{method:"GET"}})}]),angular.module("ovh-api-services").service("OvhApiTelephonyServiceRepaymentConsumptionAapi",["$resource",function(a){"use strict";return a("/telephony/:billingAccount/service/:serviceName/repaymentConsumption/:consumptionId",{billingAccount:"@billingAccount",serviceName:"@serviceName",consumptionId:"@consumptionId"},{repayment:{method:"GET",url:"/telephony/:billingAccount/repayment",serviceType:"aapi",isArray:!0}})}]),angular.module("ovh-api-services").service("OvhApiTelephonyServiceRepaymentConsumption",["$injector",function(a){"use strict";return{Aapi:function(){return a.get("OvhApiTelephonyServiceRepaymentConsumptionAapi")},v6:function(){return a.get("OvhApiTelephonyServiceRepaymentConsumptionV6")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyServiceRepaymentConsumptionV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiTelephonyServiceRepaymentConsumptionV6"),d=b("OvhApiTelephonyServiceRepaymentConsumptionV6Query"),e=b("OvhApiTelephonyServiceRepaymentConsumptionv6Batch"),f=a("/telephony/:billingAccount/service/:serviceName/repaymentConsumption/:consumptionId",{billingAccount:"@billingAccount",serviceName:"@serviceName",consumptionId:"@consumptionId"},{query:{method:"GET",cache:d,isArray:!0},get:{method:"GET",cache:c},getBatch:{method:"GET",headers:{"X-Ovh-Batch":","},cache:e,isArray:!0}});return f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f.resetBatchCache=function(){e.removeAll()},f.resetAllCache=function(){this.resetCache(),this.resetQueryCache(),this.resetBatchCache()},f}]),angular.module("ovh-api-services").service("OvhApiTelephonyServiceTask",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyServiceTaskV6")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyServiceTaskV6",["$resource","Poller",function(a,b){"use strict";var c="/telephony/:billingAccount/service/:serviceName/task/:taskId",d=a(c,{billingAccount:"@billingAccount",serviceName:"@serviceName",taskId:"@taskId"},{get:{url:c,method:"GET",isArray:!1},query:{url:"/telephony/:billingAccount/service/:serviceName/task",method:"GET",isArray:!0}});return d.poll=function(a,d){var e=c.replace(/\/:(\w*)/g,function(a,b){return"/"+d[b]});return a.$on("$destroy",function(){b.kill({scope:a.$id})}),b.poll(e,{cache:!1},{successRule:{status:"ok"},errorRule:{status:"error"},scope:a.$id,interval:1e3})},d}]),angular.module("ovh-api-services").service("OvhApiTelephonyService",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyServiceV6")},v7:function(){return a.get("OvhApiTelephonyServiceV7")},VoiceConsumption:function(){return a.get("OvhApiTelephonyServiceVoiceConsumption")},FaxConsumption:function(){return a.get("OvhApiTelephonyServiceFaxConsumption")},Task:function(){return a.get("OvhApiTelephonyServiceTask")},OfferTask:function(){return a.get("OvhApiTelephonyServiceOfferTask")},RepaymentConsumption:function(){return a.get("OvhApiTelephonyServiceRepaymentConsumption")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyServiceV7",["apiv7",function(a){"use strict";var b=a("/telephony/:billingAccount/service/:serviceName",{billingAccount:"@billingAccount",serviceName:"@serviceName"});return b}]),angular.module("ovh-api-services").service("OvhApiTelephonyServiceV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiTelephonyServiceV6"),d=b("OvhApiTelephonyServiceV6Query"),e=b("OvhApiTelephonyServiceOfferV6Query"),f={response:function(a){return c.remove(a.config.url),d.removeAll(),a.resource}},g=a("/telephony/:billingAccount/service/:serviceName",{billingAccount:"@billingAccount",serviceName:"@serviceName"},{get:{method:"GET",cache:c},query:{method:"GET",cache:d,isArray:!0},getBatch:{method:"GET",isArray:!0,headers:{"X-Ovh-Batch":","}},change:{method:"PUT",interceptor:f},"delete":{method:"DELETE",interceptor:f},cancelTermination:{method:"POST",url:"/telephony/:billingAccount/service/:serviceName/cancelTermination",interceptor:f},changeOfBillingAccount:{method:"POST",url:"/telephony/:billingAccount/service/:serviceName/changeOfBillingAccount",interceptor:f,preventLogout:!0},offerChanges:{url:"/telephony/:billingAccount/service/:serviceName/offerChanges",method:"GET",isArray:!0,cache:e},offerChange:{url:"/telephony/:billingAccount/service/:serviceName/offerChange",method:"GET",isArray:!1},cancelOfferChange:{url:"/telephony/:billingAccount/service/:serviceName/offerChange",method:"DELETE"},changeOffer:{url:"/telephony/:billingAccount/service/:serviceName/offerChange",method:"POST",isArray:!1},diagnosticReports:{method:"GET",url:"/telephony/:billingAccount/service/:serviceName/diagnosticReports",isArray:!0},directory:{method:"GET",url:"/telephony/:billingAccount/service/:serviceName/directory"},changeDirectory:{method:"PUT",url:"/telephony/:billingAccount/service/:serviceName/directory"},getDirectoryServiceCode:{method:"GET",url:"/telephony/:billingAccount/service/:serviceName/directory/getDirectoryServiceCode",isArray:!0},getDirectoryWayTypes:{method:"GET",url:"/telephony/:billingAccount/service/:serviceName/directory/getWayTypes",isArray:!0},fetchDirectoryEntrepriseInformations:{method:"POST",url:"/telephony/:billingAccount/service/:serviceName/directory/fetchEntrepriseInformations"}});return g.resetCache=function(){c.removeAll()},g.resetQueryCache=function(){d.removeAll(),e.removeAll()},g}]),angular.module("ovh-api-services").service("OvhApiTelephonyServiceVoiceConsumptionAapi",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiTelephonyServiceVoiceConsumptionAapi");return a("/telephony/:billingAccount/consumption",{billingAccount:"@billingAccount"},{get:{serviceType:"aapi",isArray:!1,cache:c}})}]),angular.module("ovh-api-services").service("OvhApiTelephonyServiceVoiceConsumption",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyServiceVoiceConsumptionV6")},v7:function(){return a.get("OvhApiTelephonyServiceVoiceConsumptionV7")},Aapi:function(){return a.get("OvhApiTelephonyServiceVoiceConsumptionAapi")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyServiceVoiceConsumptionV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiTelephonyServiceVoiceConsumptionV6"),d=b("OvhApiTelephonyServiceVoiceConsumptionV6Query"),e=a("/telephony/:billingAccount/service/:serviceName/voiceConsumption/:consumptionId",{billingAccount:"@billingAccount",serviceName:"@serviceName",consumptionId:"@consumptionId"},{get:{method:"GET",cache:c},getBatch:{method:"GET",isArray:!0,cache:d,headers:{"X-Ovh-Batch":","}},query:{method:"GET",cache:d,isArray:!0},callDiagnostics:{method:"GET",url:"/telephony/:billingAccount/service/:serviceName/voiceConsumption/:consumptionId/callDiagnostics",cache:c}});return e.resetCache=function(){c.removeAll()},e.resetQueryCache=function(){d.removeAll()},e}]),angular.module("ovh-api-services").service("OvhApiTelephonyServiceVoiceConsumptionV7",["apiv7",function(a){"use strict";return a("/telephony/:billingAccount/service/:serviceName/voiceConsumption/:consumptionId",{billingAccount:"@billingAccount",serviceName:"@serviceName",consumptionId:"@consumptionId"})}]),angular.module("ovh-api-services").service("OvhApiTelephonyTask",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyTaskV6")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyTaskV6",["$resource",function(a){"use strict";return a("/telephony/:billingAccount/task/:taskId",{billingAccount:"@billingAccount",taskId:"@taskId"},{query:{method:"GET",isArray:!0},get:{method:"GET",isArray:!1}})}]),angular.module("ovh-api-services").service("OvhApiTelephonyAapi",["$resource",function(a){"use strict";return a("/telephony",{},{query:{method:"GET",serviceType:"aapi",isArray:!0},count:{method:"GET",url:"/telephony/count",serviceType:"aapi",isArray:!1},infra:{method:"GET",url:"/telephony/infra/:billingAccount",serviceType:"aapi",isArray:!1},aliasAll:{method:"GET",url:"/telephony/alias/all",serviceType:"aapi",isArray:!0},billingAccounts:{method:"GET",url:"/telephony/all",serviceType:"aapi",isArray:!0}})}]),angular.module("ovh-api-services").service("OvhApiTelephony",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyV6")},Aapi:function(){return a.get("OvhApiTelephonyAapi")},v7:function(){return a.get("OvhApiTelephonyV7")},AbbreviatedNumber:function(){return a.get("OvhApiTelephonyAbbreviatedNumber")},Eventtoken:function(){return a.get("OvhApiTelephonyEventtoken")},Fax:function(){return a.get("OvhApiTelephonyFax")},OfferTask:function(){return a.get("OvhApiTelephonyOfferTask")},Line:function(){return a.get("OvhApiTelephonyLine")},Lines:function(){return a.get("OvhApiTelephonyLines")},Number:function(){return a.get("OvhApiTelephonyNumber")},Redirect:function(){return a.get("OvhApiTelephonyRedirect")},Voicemail:function(){return a.get("OvhApiTelephonyVoicemail")},Service:function(){return a.get("OvhApiTelephonyService")},TimeCondition:function(){return a.get("OvhApiTelephonyTimeCondition")},HistoryConsumption:function(){return a.get("OvhApiTelephonyHistoryConsumption")},HistoryRepaymentConsumption:function(){return a.get("OvhApiTelephonyHistoryRepaymentConsumption")},HistoryTollfreeConsumption:function(){return a.get("OvhApiTelephonyHistoryTollfreeConsumption")},Screen:function(){return a.get("OvhApiTelephonyScreen")},Portability:function(){return a.get("OvhApiTelephonyPortability")},Scheduler:function(){return a.get("OvhApiTelephonyScheduler")},Aliases:function(){return a.get("OvhApiTelephonyAliases")},Phonebook:function(){return a.get("OvhApiTelephonyPhonebook")},EasyHunting:function(){return a.get("OvhApiTelephonyEasyHunting")},Rsva:function(){return a.get("OvhApiTelephonyRsva")},Conference:function(){return a.get("OvhApiTelephonyConference")},Vxml:function(){return a.get("OvhApiTelephonyVxml")},Trunks:function(){return a.get("OvhApiTelephonyTrunks")},Trunk:function(){return a.get("OvhApiTelephonyTrunk")},OvhPabx:function(){return a.get("OvhApiTelephonyOvhPabx")},Task:function(){return a.get("OvhApiTelephonyTask")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyV6",["$resource","$cacheFactory","OvhApiTelephonyLineAllAapi",function(a,b,c){var d=b("OvhApiTelephonyV6"),e=b("OvhApiTelephonyv6Schema"),f=b("OvhApiTelephonyV6Query"),g={response:function(a){return d.remove(a.config.url),f.removeAll(),c.resetCache(),a.resource}},h=a("/telephony/:billingAccount",{billingAccount:"@billingAccount"},{get:{method:"GET",cache:d},query:{method:"GET",cache:f,isArray:!0},edit:{method:"PUT",interceptor:g},"delete":{method:"DELETE",interceptor:g},schema:{method:"GET",url:"/telephony.json",cache:e},billingAccounts:{method:"GET",url:"/telephony",isArray:!0},ips:{method:"GET",url:"/telephony/:billingAccount/line/:serviceName/ips",isArray:!0,cache:d},sipDomains:{method:"GET",url:"/telephony/:billingAccount/line/:serviceName/availableSipDomains",isArray:!0,cache:d},cancelTermination:{method:"POST",url:"/telephony/:billingAccount/cancelTermination"},allowedCreditThreshold:{method:"GET",url:"/telephony/:billingAccount/allowedCreditThreshold",isArray:!0,cache:d},accessories:{method:"GET",isArray:!0,url:"/telephony/accessories",params:{country:"@country"},cache:d},transferSecurityDeposit:{method:"POST",url:"/telephony/:billingAccount/transferSecurityDeposit"},getServiceInfos:{method:"GET",url:"/telephony/:billingAccount/serviceInfos"},setServiceInfos:{method:"PUT",url:"/telephony/:billingAccount/serviceInfos"},changeContact:{method:"POST",url:"/telephony/:billingAccount/changeContact",isArray:!0},availableDefaultSipDomains:{method:"GET",url:"/telephony/availableDefaultSipDomains",isArray:!0},setDefaultSipDomain:{method:"POST",url:"/telephony/setDefaultSipDomain"},getAmountSecurityDeposit:{method:"GET",url:"/telephony/:billingAccount/amountSecurityDeposit",isArray:!0},getCurrentOrderIds:{method:"GET",url:"/telephony/currentOrderIds",isArray:!0},canTransferSecurityDeposit:{method:"POST",url:"/telephony/:billingAccount/canTransferSecurityDeposit",isArray:!1,transformResponse:function(a,b,c){var d=a;return 200===c&&(d={value:"true"===d.toLowerCase()}),d}},getLineOfferPhones:{method:"GET",url:"/telephony/line/offer/phones",isArray:!0},searchService:{method:"GET",url:"/telephony/searchServices",isArray:!0}});return h.resetCache=function(){d.removeAll()},h.resetQueryCache=function(){f.removeAll()},h}]),angular.module("ovh-api-services").service("OvhApiTelephonyV7",["apiv7",function(a){"use strict";var b=a("/telephony/:billingAccount",{billingAccount:"@billingAccount"});return b}]),angular.module("ovh-api-services").service("OvhApiTelephonyTimeConditionCondition",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyTimeConditionConditionV6")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyTimeConditionConditionV6",["$resource",function(a){"use strict";return a("/telephony/:billingAccount/timeCondition/:serviceName/condition/:id",{billingAccount:"@billingAccount",serviceName:"@serviceName",id:"@id"},{getBatch:{method:"GET",isArray:!0,headers:{"X-Ovh-Batch":","}},save:{method:"PUT"},create:{method:"POST"}})}]),angular.module("ovh-api-services").service("OvhApiTelephonyTimeConditionAapi",["$resource","OvhApiTelephonyTimeCondition",function(a,b){"use strict";return a("/telephony/:billingAccount/timeCondition",{billingAccount:"@billingAccount",serviceName:"@serviceName"},{getConditions:{url:"/telephony/:billingAccount/timeCondition/:serviceName/condition",method:"GET",serviceType:"aapi",cache:b.cache,isArray:!0}})}]),angular.module("ovh-api-services").service("OvhApiTelephonyTimeCondition",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiTelephonyTimeCondition");return{v6:function(){return a.get("OvhApiTelephonyTimeConditionV6")},Aapi:function(){return a.get("OvhApiTelephonyTimeConditionAapi")},Condition:function(){return a.get("OvhApiTelephonyTimeConditionCondition")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiTelephonyTimeConditionV6",["$resource","OvhApiTelephonyTimeCondition",function(a,b){var c={response:function(a){return b.resetCache(),a.resource}};return a("/telephony/:billingAccount/timeCondition/:serviceName",{billingAccount:"@billingAccount",serviceName:"@serviceName"},{getOptions:{url:"/telephony/:billingAccount/timeCondition/:serviceName/options",method:"GET",cache:b.cache,isArray:!1},setOptions:{url:"/telephony/:billingAccount/timeCondition/:serviceName/options",method:"PUT",interceptor:c,isArray:!1},addCondition:{url:"/telephony/:billingAccount/timeCondition/:serviceName/condition/:id",method:"POST",interceptor:c,isArray:!1},updateCondition:{url:"/telephony/:billingAccount/timeCondition/:serviceName/condition/:id",method:"PUT",interceptor:c,isArray:!1},deleteCondition:{url:"/telephony/:billingAccount/timeCondition/:serviceName/condition/:id",method:"DELETE",interceptor:c,isArray:!1}})}]),angular.module("ovh-api-services").service("OvhApiTelephonyTrunkExternalDisplayedNumber",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyTrunkExternalDisplayedNumberV6")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyTrunkExternalDisplayedNumberV6",["$resource",function(a){return a("/telephony/:billingAccount/trunk/:serviceName/externalDisplayedNumber/:number",{billingAccount:"@billingAccount",serviceName:"@serviceName",number:"@number"},{getBatch:{method:"GET",isArray:!0,headers:{"X-Ovh-Batch":","}},save:{method:"POST",url:"/telephony/:billingAccount/trunk/:serviceName/externalDisplayedNumber",isArray:!1},validate:{method:"POST",url:"/telephony/:billingAccount/trunk/:serviceName/externalDisplayedNumber/:number/validate",isArray:!1}})}]),angular.module("ovh-api-services").service("OvhApiTelephonyTrunk",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyTrunkV6")},ExternalDisplayedNumber:function(){return a.get("OvhApiTelephonyTrunkExternalDisplayedNumber")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyTrunkV6",["$resource",function(a){return a("/telephony/:billingAccount/trunk/:serviceName",{billingAccount:"@billingAccount",serviceName:"@serviceName"},{getChannelsPacksRepartition:{method:"GET",url:"/telephony/:billingAccount/trunk/:serviceName/channelsPacksRepartition",isArray:!1}})}]),angular.module("ovh-api-services").service("OvhApiTelephonyTrunks",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyTrunksV6")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyTrunksV6",["$resource","$cacheFactory",function(a,b){var c=b("OvhApiTelephonyTrunksV6"),d=b("OvhApiTelephonyTrunksV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a.resource}},f=a("/telephony/trunks/:serviceName",{serviceName:"@serviceName"},{get:{method:"GET",cache:c},query:{method:"GET",cache:d,isArray:!0},getServiceInfos:{method:"GET",url:"/telephony/trunks/:serviceName/serviceInfos",cache:c},setServiceInfos:{method:"PUT",url:"/telephony/trunks/:serviceName/serviceInfos",interceptor:e},changeContact:{method:"POST",url:"/telephony/trunks/:serviceName/changeContact",interceptor:e}});return f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f.resetAllCache=function(){this.resetCache(),this.resetQueryCache()},f}]),angular.module("ovh-api-services").service("OvhApiTelephonyVoicemailDirectories",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyVoicemailDirectoriesV6")},v7:function(){return a.get("OvhApiTelephonyVoicemailDirectoriesV7")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyVoicemailDirectoriesV6",["$resource","$cacheFactory",function(a,b){var c=b("OvhApiTelephonyVoicemailDirectoriesV6"),d=b("OvhApiTelephonyVoicemailDirectoriesV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a.resource}},f=a("/telephony/:billingAccount/voicemail/:serviceName/directories/:id",{billingAccount:"@billingAccount",serviceName:"@serviceName",id:"@id"},{get:{method:"GET",cache:c},getBatch:{method:"GET",isArray:!0,headers:{"X-Ovh-Batch":","},cache:d},query:{method:"GET",cache:d,isArray:!0},"delete":{method:"DELETE",interceptor:e},download:{method:"GET",url:"/telephony/:billingAccount/voicemail/:serviceName/directories/:id/download",cache:c},move:{method:"POST",url:"/telephony/:billingAccount/voicemail/:serviceName/directories/:id/move",interceptor:e}});return f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiTelephonyVoicemailDirectoriesV7",["apiv7",function(a){"use strict";return a("/telephony/:billingAccount/voicemail/:serviceName/directories/:id",{billingAccount:"@billingAccount",serviceName:"@serviceName",id:"@id"})}]),angular.module("ovh-api-services").service("OvhApiTelephonyVoicemailGreetings",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyVoicemailGreetingsV6")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyVoicemailGreetingsV6",["$resource","$cacheFactory",function(a,b){var c=b("OvhApiTelephonyVoicemailGreetingsV6"),d=b("OvhApiTelephonyVoicemailGreetingsV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a.resource}},f=a("/telephony/:billingAccount/voicemail/:serviceName/greetings/:id",{billingAccount:"@billingAccount",serviceName:"@serviceName",id:"@id"},{get:{method:"GET",cache:c},query:{method:"GET",cache:d,isArray:!0},create:{method:"POST",interceptor:e},"delete":{method:"DELETE",interceptor:e},download:{method:"GET",url:"/telephony/:billingAccount/voicemail/:serviceName/greetings/:id/download",cache:c},move:{method:"POST",url:"/telephony/:billingAccount/voicemail/:serviceName/greetings/:id/move",interceptor:e}});return f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiTelephonyVoicemail",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyVoicemailV6")},Greetings:function(){return a.get("OvhApiTelephonyVoicemailGreetings")},Directories:function(){return a.get("OvhApiTelephonyVoicemailDirectories"); }}}]),angular.module("ovh-api-services").service("OvhApiTelephonyVoicemailV6",["$resource","$cacheFactory","$http",function(a,b,c){"use strict";var d=b("OvhApiTelephonyVoicemailV6"),e=b("OvhApiTelephonyVoicemailV6Query"),f={response:function(a){return d.remove(a.config.url),e.removeAll(),a.resource}},g=a("/telephony/:billingAccount/voicemail/:serviceName",{billingAccount:"@billingAccount",serviceName:"@serviceName"},{get:{method:"GET",cache:d},getBatch:{method:"GET",isArray:!0,cache:e,headers:{"X-Ovh-Batch":","}},query:{method:"GET",cache:e,isArray:!0},getSettings:{method:"GET",url:"/telephony/:billingAccount/voicemail/:serviceName/settings",cache:d},setSettings:{method:"PUT",url:"/telephony/:billingAccount/voicemail/:serviceName/settings",interceptor:f},changePassword:{method:"POST",url:"/telephony/:billingAccount/voicemail/:serviceName/settings/changePassword",interceptor:f},getNumbersSettings:{method:"GET",url:"/telephony/:billingAccount/voicemail/:serviceName/settings/voicemailNumbers"},routing:{method:"GET",url:"/telephony/:billingAccount/voicemail/:serviceName/settings/routing",transformResponse:c.defaults.transformResponse.concat(function(a,b,c){return 200===c?{data:a}:null})},changeRouting:{method:"POST",url:"/telephony/:billingAccount/voicemail/:serviceName/settings/changeRouting"}});return g.resetCache=function(){d.removeAll()},g.resetQueryCache=function(){e.removeAll()},g}]),angular.module("ovh-api-services").service("OvhApiTelephonyVxml",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiTelephonyVxmlV6")}}}]),angular.module("ovh-api-services").service("OvhApiTelephonyVxmlV6",["$resource",function(a){return a("/telephony/:billingAccount/vxml/:serviceName",{billingAccount:"@billingAccount",serviceName:"@serviceName"},{settings:{method:"GET",url:"/telephony/:billingAccount/vxml/:serviceName/settings",isArray:!1},save:{method:"PUT",url:"/telephony/:billingAccount/vxml/:serviceName/settings",isArray:!1}})}]),angular.module("ovh-api-services").service("OvhApiUniversesAapi",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiUniversesAapi"),d=a("/universes",{},{query:{method:"GET",isArray:!0,serviceType:"aapi",cache:c}});return d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiUniverses",["$injector",function(a){"use strict";return{Aapi:function(){return a.get("OvhApiUniversesAapi")}}}]),angular.module("ovh-api-services").service("OvhApiValidateAapi",["$resource",function(a){"use strict";return a("/validate",{},{phone:{url:"/validate/phone/:regionCode/:phoneNumber",method:"GET",serviceType:"aapi",isArray:!1}})}]),angular.module("ovh-api-services").service("OvhApiVeeam",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiVeeamV6")}}}]),angular.module("ovh-api-services").service("OvhApiVeeamV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiVeeamV6"),d=b("OvhApiVeeamV6Query"),e={response:function(a){return c.removeAll(),d.removeAll(),a.data}},f=a("/veeamCloudConnect/:serviceName",{serviceName:"@serviceName"},{query:{method:"GET",isArray:!0},getDetails:{method:"GET",cache:c},getServiceInfos:{url:"/veeamCloudConnect/:serviceName/serviceInfos",method:"GET",cache:c},getInventories:{url:"/veeamCloudConnect/:serviceName/backupRepository",method:"GET",isArray:!0,cache:c},addInventory:{url:"/veeamCloudConnect/:serviceName/backupRepository",method:"POST",interceptor:e},getOrderableOffers:{url:"/veeamCloudConnect/:serviceName/orderableUpgrade",isArray:!0,method:"GET",cache:c},getOrderUpgradeDurations:{url:"/order/veeamCloudConnect/:serviceName/upgrade",isArray:!0,method:"GET",cache:c},getOrderUpgradeDurationsPrices:{url:"/order/veeamCloudConnect/:serviceName/upgrade/:duration",method:"GET",cache:c,params:{duration:"@duration"}},createUpgradeOrder:{url:"/order/veeamCloudConnect/:serviceName/upgrade/:duration",method:"POST",interceptor:e,params:{duration:"@duration"}},getInventory:{url:"/veeamCloudConnect/:serviceName/backupRepository/:inventoryName",method:"GET",cache:c,params:{inventoryName:"@inventoryName"}},upgradeQuota:{url:"/veeamCloudConnect/:serviceName/backupRepository/:inventoryName/upgradeQuota",method:"POST",interceptor:e,params:{inventoryName:"@inventoryName"}},capabilities:{url:"/veeamCloudConnect/:serviceName/capabilities",method:"GET",cache:c},tasks:{url:"/veeamCloudConnect/:serviceName/task",method:"GET",isArray:!0},task:{url:"/veeamCloudConnect/:serviceName/task/:taskId",method:"GET",params:{taskId:"@taskId"}}});return f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiVeeamEnterprise",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiVeeamEnterpriseV6")}}}]),angular.module("ovh-api-services").service("OvhApiVeeamEnterpriseV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiVeeamEnterpriseV6"),d=b("OvhApiVeeamEnterpriseV6Query"),e={response:function(a){return c.removeAll(),d.removeAll(),a.data}},f=a("/veeam/veeamEnterprise/:serviceName",{serviceName:"@serviceName"},{query:{method:"GET",isArray:!0,cache:d},get:{method:"GET",cache:c},getServiceInfos:{url:"/veeam/veeamEnterprise/:serviceName/serviceInfos",method:"GET",cache:c},register:{url:"/veeam/veeamEnterprise/:serviceName/register",method:"POST",interceptor:e},update:{url:"/veeam/veeamEnterprise/:serviceName/update",method:"POST",interceptor:e},terminate:{url:"/veeam/veeamEnterprise/:serviceName/terminate",method:"POST",interceptor:e},confirmTermination:{url:"/veeam/veeamEnterprise/:serviceName/confirmTermination",method:"POST",interceptor:e},tasks:{url:"/veeam/veeamEnterprise/:serviceName/task",method:"GET",isArray:!0},task:{url:"/veeam/veeamEnterprise/:serviceName/task/:taskId",method:"GET",params:{taskId:"@taskId"}}});return f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiVpsAapi",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiVpsAapi"),d=a("/vps/:serviceName",{serviceName:"@serviceName"},{summary:{url:"/vps/:serviceName/summary",method:"GET",cache:c,serviceType:"aapi"}});return d.resetAllCache=function(){d.resetCache()},d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiVps",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiVpsV6")},Aapi:function(){return a.get("OvhApiVpsAapi")}}}]),angular.module("ovh-api-services").service("OvhApiVpsV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiVpsV6"),d=b("OvhApiVpsV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a}},f=a("/vps/:serviceName",{serviceName:"@serviceName"},{query:{method:"GET",isArray:!0,cache:d},get:{method:"GET",cache:c},edit:{method:"PUT",interceptor:e},getMonitoring:{url:"/vps/:serviceName/monitoring",method:"GET",period:"@period",type:"@type",cache:c},availableUpgrade:{url:"/vps/:serviceName/availableUpgrade",method:"GET",isArray:!0},version:{url:"/vps/:serviceName/version",method:"GET"}});return f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiVrackCloudProject",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiVrackCloudProjectV6")}}}]),angular.module("ovh-api-services").service("OvhApiVrackCloudProjectV6",["$resource","$cacheFactory",function(a,b){var c=b("OvhApiVrackCloudProjectV6"),d=b("OvhApiVrackCloudProjectV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a}},f=a("/vrack/:serviceName/cloudProject/:project",{},{query:{method:"GET",params:{serviceName:"@serviceName",project:"@project"},isArray:!0,cache:d},get:{method:"GET",params:{serviceName:"@serviceName",project:"@project"},cache:c},edit:{method:"PUT",params:{serviceName:"@serviceName",project:"@project"},interceptor:e},"delete":{method:"DELETE",params:{serviceName:"@serviceName",project:"@project"},interceptor:e},create:{method:"POST",url:"/vrack/:serviceName/cloudProject",params:{serviceName:"@serviceName"},interceptor:e}});return f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiVrackDedicatedCloud",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiVrackDedicatedCloudV6")}}}]),angular.module("ovh-api-services").service("OvhApiVrackDedicatedCloudV6",["$resource","$cacheFactory",function(a,b){var c=b("OvhApiVrackDedicatedCloudV6"),d=b("OvhApiVrackDedicatedCloudV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a}},f=a("/vrack/:serviceName/dedicatedCloud/:dedicatedCloud",{serviceName:"@serviceName",dedicatedCloud:"@dedicatedCloud"},{query:{method:"GET",isArray:!0,cache:d},get:{method:"GET",cache:c},edit:{method:"PUT",interceptor:e},"delete":{method:"DELETE",interceptor:e},create:{method:"POST",url:"/vrack/:serviceName/dedicatedCloud",interceptor:e}});return f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiVrackDedicatedCloudDatacenter",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiVrackDedicatedCloudDatacenterV6")}}}]),angular.module("ovh-api-services").service("OvhApiVrackDedicatedCloudDatacenterV6",["$resource","$cacheFactory","OvhApiVrack",function(a,b,c){var d=b("OvhApiVrackDedicatedCloudDatacenterV6"),e={response:function(a){return d.remove(a.config.url),c.Aapi().resetAllCache(),a}},f=a("/vrack/:serviceName/dedicatedCloudDatacenter/:datacenter",{serviceName:"@serviceName",datacenter:"@datacenter"},{allowedVrack:{method:"GET",url:"/vrack/:serviceName/dedicatedCloudDatacenter/:datacenter/allowedVrack",cache:d,isArray:!0},move:{method:"POST",url:"/vrack/:serviceName/dedicatedCloudDatacenter/:datacenter/move",interceptor:e}});return f.resetCache=function(){d.removeAll(),c.Aapi().resetAllCache()},f}]),angular.module("ovh-api-services").service("OvhApiVrackDedicatedConnect",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiVrackDedicatedConnectV6")}}}]),angular.module("ovh-api-services").service("OvhApiVrackDedicatedConnectV6",["$resource","$cacheFactory","OvhApiVrack",function(a,b,c){var d=b("OvhApiVrackDedicatedConnectV6"),e=b("OvhApiVrackDedicatedConnectV6Query"),f={response:function(a){return d.remove(a.config.url),e.removeAll(),c.Aapi().resetAllCache(),a}},g=a("/vrack/:serviceName/dedicatedConnect/:name",{serviceName:"@serviceName",name:"@name"},{query:{method:"GET",isArray:!0,cache:e},get:{method:"GET",cache:d},edit:{method:"PUT",interceptor:f},"delete":{method:"DELETE",interceptor:f},create:{method:"POST",url:"/vrack/:serviceName/dedicatedConnect",interceptor:f}});return g.resetCache=function(){d.removeAll(),c.Aapi().resetAllCache()},g.resetQueryCache=function(){e.removeAll(),c.Aapi().resetAllCache()},g}]),angular.module("ovh-api-services").service("OvhApiVrackDedicatedServer",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiVrackDedicatedServerV6")}}}]),angular.module("ovh-api-services").service("OvhApiVrackDedicatedServerV6",["$resource","$cacheFactory","OvhApiVrack",function(a,b,c){var d=b("OvhApiVrackDedicatedServerV6"),e=b("OvhApiVrackDedicatedServerV6Query"),f={response:function(a){return d.remove(a.config.url),e.removeAll(),c.Aapi().resetAllCache(),a}},g=a("/vrack/:serviceName/dedicatedServer/:dedicatedServer",{serviceName:"@serviceName",dedicatedServer:"@dedicatedServer"},{query:{method:"GET",isArray:!0,cache:e},get:{method:"GET",cache:d},edit:{method:"PUT",interceptor:f},"delete":{method:"DELETE",interceptor:f},create:{method:"POST",url:"/vrack/:serviceName/dedicatedServer",interceptor:f}});return g.resetCache=function(){d.removeAll(),c.Aapi().resetAllCache()},g.resetQueryCache=function(){e.removeAll(),c.Aapi().resetAllCache()},g}]),angular.module("ovh-api-services").service("OvhApiDedicatedServerInterface",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiDedicatedServerInterfaceV6")}}}]),angular.module("ovh-api-services").service("OvhApiDedicatedServerInterfaceV6",["$resource","$cacheFactory","OvhApiVrack",function(a,b,c){"use strict";var d=b("OvhApiDedicatedServerInterfaceV6Query"),e={response:function(a){return d.removeAll(),c.Aapi().resetAllCache(),a}},f=a("/vrack/:serviceName/dedicatedServerInterface/:dedicatedServerInterface",{serviceName:"@serviceName"},{query:{method:"GET",cache:d,isArray:!0},details:{method:"GET",cache:d,url:"/vrack/:serviceName/dedicatedServerInterfaceDetails",params:{serviceName:"@serviceName"},isArray:!0},get:{method:"GET",cache:d,isArray:!1},post:{method:"POST",interceptor:e,url:"/vrack/:serviceName/dedicatedServerInterface"},"delete":{method:"DELETE",interceptor:e}});return f.resetAllCache=function(){f.resetQueryCache(),c.Aapi().resetAllCache()},f.resetQueryCache=function(){d.removeAll(),c.Aapi().resetAllCache()},f}]),angular.module("ovh-api-services").service("OvhApiVrackIp",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiVrackIpV6")}}}]),angular.module("ovh-api-services").service("OvhApiVrackIpV6",["$resource","$cacheFactory","OvhApiVrack",function(a,b,c){var d=b("OvhApiVrackIpV6"),e=b("OvhApiVrackIpV6Query"),f={response:function(a){return d.remove(a.config.url),e.removeAll(),c.Aapi().resetAllCache(),a}},g=a("/vrack/:serviceName/ip/:ip",{serviceName:"@serviceName",ip:"@ip"},{query:{method:"GET",isArray:!0,cache:e},get:{method:"GET",cache:d},edit:{method:"PUT",interceptor:f},"delete":{method:"DELETE",interceptor:f},create:{method:"POST",url:"/vrack/:serviceName/ip",interceptor:f}});return g.resetCache=function(){d.removeAll(),c.Aapi().resetAllCache()},g.resetQueryCache=function(){e.removeAll(),c.Aapi().resetAllCache()},g}]),angular.module("ovh-api-services").service("OvhApiVrackIpLoadBalancing",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiVrackIpLoadBalancingV6")}}}]),angular.module("ovh-api-services").service("OvhApiVrackIpLoadBalancingV6",["$resource","$cacheFactory",function(a,b){var c=b("OvhApiVrackIpLoadBalancingV6"),d=b("OvhApiVrackIpLoadBalancingV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a}},f=a("/vrack/:serviceName/ipLoadbalancing/:ipLoadbalancing",{serviceName:"@serviceName",ipLoadbalancing:"@ipLoadbalancing"},{query:{method:"GET",isArray:!0,cache:d},get:{method:"GET",cache:c},edit:{method:"PUT",interceptor:e},"delete":{method:"DELETE",interceptor:e},create:{method:"POST",url:"/vrack/:serviceName/ipLoadbalancing",interceptor:e}});return f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiVrackLegacyVrack",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiVrackLegacyVrackV6")}}}]),angular.module("ovh-api-services").service("OvhApiVrackLegacyVrackV6",["$resource","$cacheFactory","OvhApiVrack",function(a,b,c){var d=b("OvhApiVrackLegacyVrackV6"),e=b("OvhApiVrackLegacyVrackV6Query"),f={response:function(a){return d.remove(a.config.url),e.removeAll(),c.Aapi().resetAllCache(),a}},g=a("/vrack/:serviceName/legacyVrack/:legacyVrack",{serviceName:"@serviceName",legacyVrack:"@legacyVrack"},{query:{method:"GET",isArray:!0,cache:e},get:{method:"GET",cache:d},edit:{method:"PUT",interceptor:f},"delete":{method:"DELETE",interceptor:f},create:{method:"POST",url:"/vrack/:serviceName/legacyVrack",interceptor:f}});return g.resetCache=function(){d.removeAll(),c.Aapi().resetAllCache()},g.resetQueryCache=function(){e.removeAll(),c.Aapi().resetAllCache()},g}]),angular.module("ovh-api-services").service("OvhApiVrackNasha",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiVrackNashaV6")}}}]),angular.module("ovh-api-services").service("OvhApiVrackNashaV6",["$resource","$cacheFactory","OvhApiVrack",function(a,b,c){var d=b("OvhApiVrackNashaV6"),e=b("OvhApiVrackNashaV6Query"),f={response:function(a){return d.remove(a.config.url),e.removeAll(),c.Aapi().resetAllCache(),a}},g=a("/vrack/:serviceName/nasha/:zpool",{serviceName:"@serviceName",zpool:"@zpool"},{query:{method:"GET",isArray:!0,cache:e},get:{method:"GET",cache:d},edit:{method:"PUT",interceptor:f},"delete":{method:"DELETE",interceptor:f},create:{method:"POST",url:"/vrack/:serviceName/nasha",interceptor:f}});return g.resetCache=function(){d.removeAll(),c.Aapi().resetAllCache()},g.resetQueryCache=function(){e.removeAll(),c.Aapi().resetAllCache()},g}]),angular.module("ovh-api-services").service("OvhApiVrackPublicCloud",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiVrackPublicCloud");return{v6:function(){return a.get("OvhApiVrackPublicCloudV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiVrackV6",["$resource","OvhApiVrackPublicCloud","OvhApiCloudProject","OvhApiVrack",function(a,b,c,d){var e={response:function(a){return b.resetCache(),c.resetCache(),d.Aapi().resetAllCache(),a}},f=a("/vrack/:serviceName",{serviceName:"@serviceName"},{project:{method:"GET",url:"/vrack/:serviceName/cloudProject/:projectId ",cache:b.cache},projects:{method:"GET",url:"/vrack/:serviceName/cloudProject",isArray:!0,cache:b.cache},addProject:{method:"POST",url:"/vrack/:serviceName/cloudProject",interceptor:e},removeProject:{method:"DELETE",url:"/vrack/:serviceName/cloudProject/:projectId ",interceptor:e}});return f}]),angular.module("ovh-api-services").service("OvhApiVrackAapi",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiVrackAapi"),d=a("/vrack/:serviceName",{serviceName:"@serviceName"},{query:{url:"/vracks",method:"GET",cache:c,serviceType:"aapi",isArray:!0},allowedServices:{url:"/vrack/:serviceName/allowedServices",method:"GET",cache:c,serviceType:"aapi",isArray:!1},services:{url:"/vrack/:serviceName/services",method:"GET",cache:c,serviceType:"aapi",isArray:!1}});return d.resetAllCache=function(){d.resetCache()},d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiVrack",["$injector",function(a){"use strict";return{Aapi:function(){return a.get("OvhApiVrackAapi")},v6:function(){return a.get("OvhApiVrackV6")},CloudProject:function(){return a.get("OvhApiVrackCloudProject")},DedicatedCloud:function(){return a.get("OvhApiVrackDedicatedCloud")},DedicatedServer:function(){return a.get("OvhApiVrackDedicatedServer")},DedicatedServerInterface:function(){return a.get("OvhApiDedicatedServerInterface")},DedicatedConnect:function(){return a.get("OvhApiVrackDedicatedConnect")},Ip:function(){return a.get("OvhApiVrackIp")},LegacyVrack:function(){return a.get("OvhApiVrackLegacyVrack")},Nasha:function(){return a.get("OvhApiVrackNasha")},IpLoadBalancing:function(){return a.get("OvhApiVrackIpLoadBalancing")}}}]),angular.module("ovh-api-services").service("OvhApiVrackV6",["$resource","$cacheFactory","OvhApiVrackAapi",function(a,b,c){var d=b("OvhApiVrackV6"),e=b("OvhApiVrackV6Query"),f={response:function(a){return d.remove(a.config.url),e.removeAll(),c.resetCache(),a}},g=a("/vrack/:serviceName",{serviceName:"@serviceName"},{schema:{method:"GET",url:"/vrack.json"},query:{method:"GET",isArray:!0,cache:e},get:{method:"GET",cache:d},edit:{method:"PUT",interceptor:f},allowedServices:{method:"GET",url:"/vrack/:serviceName/allowedServices",cache:d},tasks:{method:"GET",isArray:!0,url:"/vrack/:serviceName/task"},task:{method:"GET",url:"/vrack/:serviceName/task/:taskId"}});return g.resetCache=function(){d.removeAll()},g.resetQueryCache=function(){e.removeAll()},g}]),angular.module("ovh-api-services").service("OvhApiWorkingStatusAapi",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiWorkingStatusAapi"),d=a("/working-status/:product",{product:"@product"},{get:{method:"GET",url:"/working-status/:product",serviceType:"aapi",cache:c,isArray:!0}});return d.resetAllCache=function(){d.resetCache()},d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiWorkingStatus",["$injector",function(a){"use strict";return{Aapi:function(){return a.get("OvhApiWorkingStatusAapi")}}}]),angular.module("ovh-api-services").service("OvhApiXdslDeconsolidation",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiXdslDeconsolidationV6")},Aapi:function(){return angular.noop}}}]),angular.module("ovh-api-services").service("OvhApiXdslDeconsolidationV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApixdslDeconsolidationV6");return a("/xdsl/:xdslId",{serviceName:"@serviceName"},{terms:{method:"GET",cache:c,url:"/xdsl/:serviceName/totalDeconsolidationTerms"},requestTotalDeconsolidation:{method:"POST",url:"/xdsl/:serviceName/requestTotalDeconsolidation"}})}]),angular.module("ovh-api-services").service("OvhApiXdslDiagnosticLines",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslDiagnosticLines");return{v6:function(){return a.get("OvhApiXdslDiagnosticLinesV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslDiagnosticLinesV6",["$resource","Poller","OvhApiXdslDiagnosticLines",function(a,b,c){"use strict";var d={base:"/xdsl/:serviceName/lines/:number/diagnostic",cancel:"/xdsl/:serviceName/lines/:number/diagnostic/cancel",run:"/xdsl/:serviceName/lines/:number/diagnostic/run"},e=function(a){return c.resetCache(),a},f=a(d.base,{serviceName:"@serviceName",number:"@number"},{cancelDiagnostic:{url:d.cancel,method:"POST",isArray:!1,interceptor:e}});return f.runDiagnostic=function(a){var c=d.run.replace(/\/:(\w*)\//g,function(b,c){return"/"+a[c]+"/"});return b.poll(c,{cache:!1},{method:"post",postData:_.omit(a,["serviceName","number"]),interval:3e4,successRule:function(a){return"problem"!==a.status?!0:_.isEqual(_.get(a,"data.error",""),"monitoringTodoAlreadyExists")},errorRule:function(a){return _.isEqual(a.status,"problem")&&!_.isEqual(_.get(a,"data.error",""),"monitoringTodoAlreadyExists")},namespace:"xdsl_diagnostic_run"})},f.killPollerDiagnostic=function(){return b.kill({namespace:"xdsl_diagnostic_run"})},f}]),angular.module("ovh-api-services").service("OvhApiXdslDiagnosticAapi",["$resource","Poller",function(a,b){"use strict";var c="/xdsl/:xdslId/diagnostic",d=a(c,{xdslId:"@xdslId"});return d.poll=function(a,d){var e=c.replace(/\/:(\w*)\//g,function(a,b){return"/"+d[b]+"/"});return a.$on("$destroy",function(){b.kill({scope:a.$id})}),b.poll(e,{serviceType:"aapi"},{successRule:{status:"ok"},errorRule:{status:"error"},scope:a.$id,lastResult:404})},d}]),angular.module("ovh-api-services").service("OvhApiXdslDiagnostic",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslDiagnostic");return{v6:function(){return a.get("OvhApiXdslDiagnosticV6")},Aapi:function(){return a.get("OvhApiXdslDiagnosticAapi")},Lines:function(){return a.get("OvhApiXdslDiagnosticLines")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslDiagnosticV6",["$resource",function(a){"use strict";var b="/xdsl/:xdslId/diagnostic",c=a(b,{xdslId:"@xdslId"},{launchDiagnostic:{method:"POST",isArray:!1}});return c}]),angular.module("ovh-api-services").service("OvhApiXdslEligibility",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslEligibility");return{v6:function(){return a.get("OvhApiXdslEligibilityV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslEligibilityV6",["$resource","OvhApiXdslEligibility",function(a,b){"use strict";return a("/xdsl/eligibility",{},{getCities:{method:"GET",isArray:!0,url:"/xdsl/eligibility/cities",cache:b.cache},getStreets:{method:"GET",isArray:!0,url:"/xdsl/eligibility/streets",cache:b.cache}})}]),angular.module("ovh-api-services").service("OvhApiXdslEmailPro",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiXdslEmailProV6")}}}]),angular.module("ovh-api-services").service("OvhApiXdslEmailProV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslEmailProV6"),d=b("OvhApiXdslEmailProV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a.resource}},f=a("/xdsl/email/pro/:email",{email:"@email"},{query:{method:"GET",isArray:!0,cache:d},get:{method:"GET",interceptor:e},save:{method:"POST",interceptor:e},"delete":{method:"DELETE",interceptor:e},changePassword:{method:"POST",interceptor:e,url:"/xdsl/email/pro/:email/changePassword"}});return f.resetCache=function(){c.removeAll()},f.resetQueryCache=function(){d.removeAll()},f.resetAllCache=function(){f.resetCache(),f.resetQueryCache()},f}]),angular.module("ovh-api-services").service("OvhApiXdslEmail",["$injector",function(a){"use strict";return{Pro:function(){return a.get("OvhApiXdslEmailPro")}}}]),angular.module("ovh-api-services").service("OvhApiXdslIncident",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiXdslIncidentV6")}}}]),angular.module("ovh-api-services").service("OvhApiXdslIncidentV6",["$cacheFactory","$resource",function(a,b){"use strict";var c=a("OvhApiXdslIncidentV6");return b("/xdsl/:serviceName/incident",{serviceName:"@serviceName"},{get:{method:"GET",cache:c,isArray:!1}})}]),angular.module("ovh-api-services").service("OvhApiXdslIpsAapi",["$resource","OvhApiXdslIps",function(a,b){"use strict";var c=a("/xdsl/:xdslId/ips",{xdslId:"@xdslId",ipBlock:"@ipBlock"},{ips:{method:"GET",isArray:!0,serviceType:"aapi",cache:b.cache},reverse:{method:"GET",isArray:!0,serviceType:"aapi",url:"/xdsl/reverseDns/:ipBlock",cache:b.cache}});return c}]),angular.module("ovh-api-services").service("OvhApiXdslIps",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslIps");return{v6:function(){return a.get("OvhApiXdslIpsV6")},Aapi:function(){return a.get("OvhApiXdslIpsAapi")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslIpsV6",["$resource","OvhApiXdslIps",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/ipv6",{xdslId:"@xdslId",ipBlock:"@ipBlock",ipReverse:"@ipReverse",ip:"@ip",reverse:"@reverse",ipRange:"@ipRange"},{setIpv6:{method:"POST",interceptor:c},order:{method:"POST",url:"/xdsl/:xdslId/ips",interceptor:c},price:{method:"GET",url:"/price/xdsl/options/ipv4/:ipRange",cache:b.cache},unOrder:{method:"DELETE",url:"/xdsl/:xdslId/ips/:ip",interceptor:c},deleteReverse:{method:"DELETE",url:"/ip/:ipBlock/reverse/:ipReverse",interceptor:c},createReverse:{method:"POST",url:"/ip/:ipBlock/reverse",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslLinesDslamPortAapi",["$resource","OvhApiXdslLinesDslamPort",function(a,b){"use strict";var c=a("/xdsl/:xdslId/lines/:number/dslamPort",{xdslId:"@xdslId",number:"@number"},{getProfiles:{method:"GET",url:"/xdsl/:xdslId/lines/:number/dslamPort/availableProfiles",isArray:!0,serviceType:"aapi",cache:b.cache}});return c}]),angular.module("ovh-api-services").service("OvhApiXdslLinesDslamPort",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslLinesDslamPort");return{Aapi:function(){return a.get("OvhApiXdslLinesDslamPortAapi")},v6:function(){return a.get("OvhApiXdslLinesDslamPortV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslLinesDslamPortV6",["$resource","OvhApiXdslLinesDslamPort",function(a,b){"use strict";var c="/:basePath/xdsl/:xdslId/lines/:number/dslamPort",d={response:function(a){return b.resetCache(),a.resource}},e=a(c,{xdslId:"@xdslId",number:"@number"},{changeProfile:{method:"POST",url:c+"/changeProfile",interceptor:d},reset:{method:"POST",url:c+"/reset",interceptor:d}});return e}]),angular.module("ovh-api-services").service("OvhApiXdslLines",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslLines");return{v6:function(){return a.get("OvhApiXdslLinesV6")},v7:function(){return a.get("OvhApiXdslLinesV7")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslLinesV6",["$resource","OvhApiXdslLines",function(a,b){"use strict";return a("/xdsl/:xdslId/lines/:number",{xdslId:"@xdslId",number:"@number"},{getStatistics:{method:"GET",url:"/xdsl/:xdslId/lines/:number/statistics",cache:b.cache}})}]),angular.module("ovh-api-services").service("OvhApiXdslLinesV7",["apiv7",function(a){"use strict";var b=a("/xdsl/:serviceName/lines/:number",{serviceName:"@serviceName",number:"@number"});return b}]),angular.module("ovh-api-services").service("OvhApiXdslModemAvailableWLANChannel",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModemAvailableWLANChannel");return{v6:function(){return a.get("OvhApiXdslModemAvailableWLANChannelV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemAvailableWLANChannelV6",["$resource","OvhApiXdslModemAvailableWLANChannel",function(a,b){"use strict";return a("/xdsl/:xdslId/modem/availableWLANChannel",{xdslId:"@xdslId"},{get:{method:"GET",isArray:!0,cache:b.cache}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemBlocIp",["$cacheFactory","$injector",function(a,b){"use strict";var c=a("OvhApiXdslModemBlocIp");return{v6:function(){return b.get("OvhApiXdslModemBlocIpV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemBlocIpV6",["$resource","OvhApiXdslModemBlocIp",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/blocIp",{xdslId:"@xdslId"},{get:{method:"GET",transformResponse:function(a,b,c){return 200===c?{data:angular.fromJson(a)}:a}},post:{method:"POST",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemCallWaiting",["$cacheFactory","$injector",function(a,b){"use strict";var c=a("OvhApiXdslModemCallWaiting");return{v6:function(){return b.get("OvhApiXdslModemCallWaitingV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemCallWaitingV6",["$resource","OvhApiXdslModemCallWaiting",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/callWaiting",{xdslId:"@xdslId"},{get:{method:"GET",transformResponse:function(a,b,c){return 200===c?{data:angular.fromJson(a)}:a}},post:{method:"POST",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemDevicesAapi",["$resource","OvhApiXdslModemDevices",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/connectedDevices",{xdslId:"@xdslId"},{query:{method:"GET",url:"/xdsl/:xdslId/modem/connectedDevices",isArray:!0,serviceType:"aapi",cache:b.cache},refresh:{method:"POST",url:"/xdsl/:xdslId/modem/connectedDevices/refresh",serviceType:"aapi",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemDevices",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModemDevices");return{v6:angular.noop,Aapi:function(){return a.get("OvhApiXdslModemDevicesAapi")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemContentSharing",["$cacheFactory","$injector",function(a,b){"use strict";var c=a("OvhApiXdslModemContentSharing");return{v6:function(){return b.get("OvhApiXdslModemContentSharingV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemContentSharingV6",["$resource","OvhApiXdslModemContentSharing",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/contentSharing",{xdslId:"@xdslId"},{get:{method:"GET",transformResponse:function(a,b,c){return 200===c?{data:angular.fromJson(a)}:a}},post:{method:"POST",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemFirmware",["$injector","$cacheFactory",function(a,b){ -"use strict";var c=b("OvhApiXdslModemFirmware");return{v6:function(){return a.get("OvhApiXdslModemFirmwareV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemFirmwareV6",["$resource","OvhApiXdslModemFirmware",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/firmware",{xdslId:"@xdslId"},{get:{method:"GET",transformResponse:function(a,b,c){return 200===c?{data:angular.fromJson(a)}:a}},post:{method:"POST",interceptor:c},available:{method:"GET",url:"/xdsl/:xdslId/modem/firmwareAvailable",isArray:!0,cache:b.cache}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemFtp",["$cacheFactory","$injector",function(a,b){"use strict";var c=a("OvhApiXdslModemFtp");return{v6:function(){return b.get("OvhApiXdslModemFtpV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemFtpV6",["$resource","OvhApiXdslModemFtp",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/ftp",{xdslId:"@xdslId"},{get:{method:"GET",transformResponse:function(a,b,c){return 200===c?{data:angular.fromJson(a)}:a}},post:{method:"POST",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemIpsecAlg",["$cacheFactory","$injector",function(a,b){"use strict";var c=a("OvhApiXdslModemIpsecAlg");return{v6:function(){return b.get("OvhApiXdslModemIpsecAlgV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemIpsecAlgV6",["$resource","OvhApiXdslModemIpsecAlg",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/ipsecAlg",{xdslId:"@xdslId"},{get:{method:"GET",transformResponse:function(a,b,c){return 200===c?{data:angular.fromJson(a)}:a}},post:{method:"POST",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemLanDhcpDHCPStaticAddresses",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiXdslModemLanDhcpDHCPStaticAddressesV6")}}}]),angular.module("ovh-api-services").service("OvhApiXdslModemLanDhcpDHCPStaticAddressesV6",["$resource",function(a){"use strict";return a("/xdsl/:xdslId/modem/lan/:lanName/dhcp/:dhcpName/DHCPStaticAddresses/:MACAddress",{xdslId:"@xdslId",lanName:"@lanName",dhcpName:"@dhcpName",MACAddress:"@MACAddress"},{update:{method:"PUT"},post:{method:"POST",url:"/xdsl/:xdslId/modem/lan/:lanName/dhcp/:dhcpName/DHCPStaticAddresses"}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemLanDhcpAapi",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModemLanDhcpAapi"),d=a("/xdsl/:xdslId/modem/lan/dhcp",{xdslId:"@xdslId"},{query:{method:"GET",isArray:!0,serviceType:"aapi",cache:c}});return d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiXdslModemLanDhcp",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiXdslModemLanDhcpV6")},Aapi:function(){return a.get("OvhApiXdslModemLanDhcpAapi")},DHCPStaticAddress:function(){return a.get("OvhApiXdslModemLanDhcpDHCPStaticAddresses")}}}]),angular.module("ovh-api-services").service("OvhApiXdslModemLanDhcpV6",["$resource","$cacheFactory","OvhApiXdslModemLanDhcpAapi",function(a,b,c){"use strict";var d=b("OvhApiXdslModemLanDhcpV6"),e={response:function(a){return c.resetCache(),d.removeAll(),a.resource}};return a("/xdsl/:xdslId/modem/lan/:lanName/dhcp/:dhcpName",{xdslId:"@xdslId",lanName:"@lanName",dhcpName:"@dhcpName"},{get:{method:"GET",cache:d},query:{method:"GET",cache:d,isArray:!0},update:{method:"PUT",interceptor:e}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemLanAapi",["$resource","OvhApiXdslModemLan",function(a,b){"use strict";var c=a("/xdsl/:xdslId/modem/lan/details",{xdslId:"@xdslId"},{getLanDetails:{method:"GET",isArray:!0,serviceType:"aapi",cache:b.cache}});return c}]),angular.module("ovh-api-services").service("OvhApiXdslModemLan",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModemLan");return{v6:function(){return a.get("OvhApiXdslModemLanV6")},Aapi:function(){return a.get("OvhApiXdslModemLanAapi")},Dhcp:function(){return a.get("OvhApiXdslModemLanDhcp")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemLanV6",["$resource","OvhApiXdslModemLan",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/lan/:lanName",{xdslId:"@xdslId",lanName:"@lanName"},{get:{method:"GET",cache:b.cache},update:{method:"PUT",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemPortAapi",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModemPortAapi"),d=a("/xdsl/:xdslId/modem/portMappings",{xdslId:"@xdslId"},{query:{serviceType:"aapi",isArray:!0,cache:c}});return d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiXdslModemPort",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModemPort");return{v6:function(){return a.get("OvhApiXdslModemPortV6")},Aapi:function(){return a.get("OvhApiXdslModemPortAapi")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemPortV6",["$resource","OvhApiXdslModemPort",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/portMappings/:name",{xdslId:"@xdslId",name:"@name"},{get:{method:"GET",cache:b.cache},query:{method:"GET",isArray:!0,cache:b.cache},update:{method:"PUT",interceptor:c},post:{method:"POST",url:"/xdsl/:xdslId/modem/portMappings",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemReboot",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModemReboot");return{v6:function(){return a.get("OvhApiXdslModemRebootV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemRebootV6",["$resource",function(a){"use strict";return a("/xdsl/:xdslId/modem/reboot",{xdslId:"@xdslId"})}]),angular.module("ovh-api-services").service("OvhApiXdslModemReset",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModemReset");return{v6:function(){return a.get("OvhApiXdslModemResetV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemResetV6",["$resource",function(a){"use strict";return a("/xdsl/:xdslId/modem/reset",{xdslId:"@xdslId"},{reset:{method:"POST"}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemSipAlg",["$cacheFactory","$injector",function(a,b){"use strict";var c=a("OvhApiXdslModemSipAlg");return{v6:function(){return b.get("OvhApiXdslModemSipAlgV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemSipAlgV6",["$resource","OvhApiXdslModemSipAlg",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/sipAlg",{xdslId:"@xdslId"},{get:{method:"GET",transformResponse:function(a,b,c){return 200===c?{data:angular.fromJson(a)}:a}},post:{method:"POST",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemUpnp",["$cacheFactory","$injector",function(a,b){"use strict";var c=a("OvhApiXdslModemUpnp");return{v6:function(){return b.get("OvhApiXdslModemUpnpV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemUpnpV6",["$resource","OvhApiXdslModemUpnp",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/upnp",{xdslId:"@xdslId"},{get:{method:"GET",transformResponse:function(a,b,c){return 200===c?{data:angular.fromJson(a)}:a}},post:{method:"POST",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemWifiAapi",["$resource","OvhApiXdslModemWifi",function(a,b){"use strict";var c=a("/xdsl/:xdslId/modem/wifi/details",{xdslId:"@xdslId"},{getWifiDetails:{method:"GET",url:"/xdsl/:xdslId/modem/wifi/details",isArray:!0,serviceType:"aapi",cache:b.cache}});return c}]),angular.module("ovh-api-services").service("OvhApiXdslModemWifi",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModemWifi");return{v6:function(){return a.get("OvhApiXdslModemWifiV6")},Aapi:function(){return a.get("OvhApiXdslModemWifiAapi")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemWifiV6",["$resource","OvhApiXdslModemWifi",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/wifi/:wifiName",{xdslId:"@xdslId",wifiName:"@wifiName"},{get:{method:"GET",cache:b.cache},update:{method:"PUT",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemAapi",["$resource","Poller","OvhApiXdslModem",function(a,b,c){"use strict";var d=a("/xdsl/:xdslId/modem",{xdslId:"@xdslId"},{get:{method:"GET",cache:c.cache},query:{method:"GET",cache:c.cache,isArray:!0}});return d.poll=function(a,c){var d=["/xdsl/",c.xdslId,"/modem/tasks"].join("");return a&&a.$on("$destroy",function(){b.kill({scope:a.$id})}),b.poll(d,{serviceType:"aapi"},{successRule:{status:"ok"},errorRule:{status:"error"},namespace:c.namespace})},d}]),angular.module("ovh-api-services").service("OvhApiXdslModem",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModem");return{v6:function(){return a.get("OvhApiXdslModemV6")},Aapi:function(){return a.get("OvhApiXdslModemAapi")},resetCache:function(){c.removeAll()},ConnectedDevices:function(){return a.get("OvhApiXdslModemDevices")},Lan:function(){return a.get("OvhApiXdslModemLan")},Port:function(){return a.get("OvhApiXdslModemPort")},Reboot:function(){return a.get("OvhApiXdslModemReboot")},Reset:function(){return a.get("OvhApiXdslModemReset")},Wifi:function(){return a.get("OvhApiXdslModemWifi")},AvailableWLANChannel:function(){return a.get("OvhApiXdslModemAvailableWLANChannel")},Firmware:function(){return a.get("OvhApiXdslModemFirmware")},BlocIp:function(){return a.get("OvhApiXdslModemBlocIp")},CallWaiting:function(){return a.get("OvhApiXdslModemCallWaiting")},ContentSharing:function(){return a.get("OvhApiXdslModemContentSharing")},Ftp:function(){return a.get("OvhApiXdslModemFtp")},IpsecAlg:function(){return a.get("OvhApiXdslModemIpsecAlg")},SipAlg:function(){return a.get("OvhApiXdslModemSipAlg")},Upnp:function(){return a.get("OvhApiXdslModemUpnp")},cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemV6",["$resource","OvhApiXdslModem",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem",{xdslId:"@xdslId"},{get:{method:"GET",cache:b.cache},update:{method:"PUT",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslNotificationsAapi",["$resource","OvhApiXdslNotifications",function(a,b){"use strict";var c=a("/xdsl/:xdslId/monitoringNotifications",{xdslId:"@xdslId"},{list:{method:"GET",serviceType:"aapi",isArray:!0,cache:b.cache}});return c}]),angular.module("ovh-api-services").service("OvhApiXdslNotifications",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslNotifications");return{v6:function(){return a.get("OvhApiXdslNotificationsV6")},Aapi:function(){return a.get("OvhApiXdslNotificationsAapi")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslNotificationsV6",["$resource","OvhApiXdslNotifications",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/monitoringNotifications",{xdslId:"@xdslId",id:"@id"},{query:{method:"GET",isArray:!0,cache:b.cache},add:{method:"POST",interceptor:c},remove:{url:"/xdsl/:xdslId/monitoringNotifications/:id",method:"DELETE",interceptor:c},update:{url:"/xdsl/:xdslId/monitoringNotifications/:id",method:"PUT",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslOrderFollowupAapi",["$resource","OvhApiXdslOrderFollowup",function(a,b){"use strict";return a("/xdsl/orderFollowup",{},{query:{method:"GET",isArray:!0,serviceType:"aapi",cache:b.cache}})}]),angular.module("ovh-api-services").service("OvhApiXdslOrderFollowup",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslOrderFollowup");return{Aapi:function(){return a.get("OvhApiXdslOrderFollowupAapi")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslResiliationAapi",["$resource","OvhApiXdslResiliation",function(a,b){"use strict";return a("/xdsl/canCancelResiliation/all",{},{canCancelAll:{method:"GET",isArray:!0,serviceType:"aapi",cache:b.cache},terms:{url:"/xdsl/:serviceName/resiliationTerms",method:"GET",isArray:!1,serviceType:"aapi",cache:b.cache}})}]),angular.module("ovh-api-services").service("OvhApiXdslResiliation",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslResiliation");return{Aapi:function(){return a.get("OvhApiXdslResiliationAapi")},v6:function(){return a.get("OvhApiXdslResiliationV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslResiliationV6",["$resource",function(a){"use strict";return a("/xdsl/:serviceName/canCancelResiliation",{serviceName:"@serviceName"},{canCancelResiliation:{url:"/xdsl/:serviceName/canCancelResiliation",method:"GET",transformResponse:function(a){return{value:"true"===a}}},followUp:{url:"/xdsl/:serviceName/resiliationFollowup",method:"GET",isArray:!1},cancelResiliation:{url:"/xdsl/:serviceName/cancelResiliation",method:"POST"},resiliate:{url:"/xdsl/:serviceName/resiliate",method:"POST"},resiliationTerms:{url:"/xdsl/:serviceName/resiliationTerms",method:"GET"}})}]),angular.module("ovh-api-services").service("OvhApiXdslTasksCurrentAapi",["$resource","Poller","OvhApiXdslTasksCurrent",function(a,b,c){"use strict";var d="/xdsl/:xdslId/tasks/current",e=a(d,{xdslId:"@xdslId"},{query:{method:"GET",cache:c.cache,isArray:!0}});return e.poll=function(a,c){return a.$on("$destroy",function(){b.kill({scope:a.$id})}),b.poll(d.replace(":xdslId",c.xdslId),{serviceType:"aapi"},{successRule:{status:"ok"},errorRule:{status:"error"},scope:a.$id})},e}]),angular.module("ovh-api-services").service("OvhApiXdslTasksCurrent",["$injector",function(a){"use strict";return{v6:angular.noop,Aapi:function(){return a.get("OvhApiXdslTasksCurrentAapi")}}}]),angular.module("ovh-api-services").service("OvhApiXdslAapi",["$resource","OvhApiXdsl",function(a,b){"use strict";var c=a("/xdsl/:serviceName/statistics/:type/period/:period",{xdslId:"@xdslId",type:"@type",period:"@period"},{statistics:{method:"GET",serviceType:"aapi",cache:b.cache}});return c}]),angular.module("ovh-api-services").service("OvhApiXdsl",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdsl");return{v6:function(){return a.get("OvhApiXdslV6")},Aapi:function(){return a.get("OvhApiXdslAapi")},v7:function(){return a.get("OvhApiXdslV7")},Email:function(){return a.get("OvhApiXdslEmail")},Incident:function(){return a.get("OvhApiXdslIncident")},Lines:function(){return a.get("OvhApiXdslLines")},Modem:function(){return a.get("OvhApiXdslModem")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslV6",["$resource","OvhApiXdsl","OvhApiTelecomSidebar",function(a,b,c){"use strict";var d={response:function(a){return c.resetCache(),b.resetCache(),a.resource}};return a("/xdsl/:xdslId",{xdslId:"@id"},{query:{method:"GET",isArray:!0,cache:b.cache},put:{method:"PUT",url:"/xdsl/:xdslId",interceptor:d},getOrder:{method:"GET",url:"/xdsl/:xdslId/orderFollowup",isArray:!0,cache:b.cache},incidents:{method:"GET",cache:b.cache},requestTotalDeconsolidation:{method:"POST",url:"/xdsl/:xdslId/requestTotalDeconsolidation",interceptor:d},statistics:{method:"GET",url:"/xdsl/:xdslId/statistics",cache:b.cache},lines:{method:"GET",url:"/xdsl/:xdslId/lines",isArray:!0,cache:b.cache},eligibilityCities:{method:"GET",url:"/xdsl/eligibility/cities",isArray:!0,cancellable:!0},eligibilityStreets:{method:"GET",url:"/xdsl/eligibility/streets",isArray:!0,cancellable:!0},requestPPPLoginMail:{method:"POST",url:"/xdsl/:xdslId/requestPPPLoginMail",interceptor:d},updateInvalidOrMissingRio:{method:"POST",url:"/xdsl/:xdslId/updateInvalidOrMissingRio",interceptor:d},getTasks:{method:"GET",url:"/xdsl/:xdslId/tasks",isArray:!0},getTask:{method:"GET",url:"/xdsl/:xdslId/tasks/:taskId"}})}]),angular.module("ovh-api-services").service("OvhApiXdslV7",["apiv7",function(a){"use strict";var b=a("/xdsl/:serviceName",{serviceName:"@serviceName"});return b}]); \ No newline at end of file +"use strict";var c=b("OvhApiXdslModemFirmware");return{v6:function(){return a.get("OvhApiXdslModemFirmwareV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemFirmwareV6",["$resource","OvhApiXdslModemFirmware",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/firmware",{xdslId:"@xdslId"},{get:{method:"GET",transformResponse:function(a,b,c){return 200===c?{data:angular.fromJson(a)}:a}},post:{method:"POST",interceptor:c},available:{method:"GET",url:"/xdsl/:xdslId/modem/firmwareAvailable",isArray:!0,cache:b.cache}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemFtp",["$cacheFactory","$injector",function(a,b){"use strict";var c=a("OvhApiXdslModemFtp");return{v6:function(){return b.get("OvhApiXdslModemFtpV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemFtpV6",["$resource","OvhApiXdslModemFtp",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/ftp",{xdslId:"@xdslId"},{get:{method:"GET",transformResponse:function(a,b,c){return 200===c?{data:angular.fromJson(a)}:a}},post:{method:"POST",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemIpsecAlg",["$cacheFactory","$injector",function(a,b){"use strict";var c=a("OvhApiXdslModemIpsecAlg");return{v6:function(){return b.get("OvhApiXdslModemIpsecAlgV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemIpsecAlgV6",["$resource","OvhApiXdslModemIpsecAlg",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/ipsecAlg",{xdslId:"@xdslId"},{get:{method:"GET",transformResponse:function(a,b,c){return 200===c?{data:angular.fromJson(a)}:a}},post:{method:"POST",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemLanDhcpDHCPStaticAddresses",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiXdslModemLanDhcpDHCPStaticAddressesV6")}}}]),angular.module("ovh-api-services").service("OvhApiXdslModemLanDhcpDHCPStaticAddressesV6",["$resource",function(a){"use strict";return a("/xdsl/:xdslId/modem/lan/:lanName/dhcp/:dhcpName/DHCPStaticAddresses/:MACAddress",{xdslId:"@xdslId",lanName:"@lanName",dhcpName:"@dhcpName",MACAddress:"@MACAddress"},{update:{method:"PUT"},post:{method:"POST",url:"/xdsl/:xdslId/modem/lan/:lanName/dhcp/:dhcpName/DHCPStaticAddresses"}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemLanDhcpAapi",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModemLanDhcpAapi"),d=a("/xdsl/:xdslId/modem/lan/dhcp",{xdslId:"@xdslId"},{query:{method:"GET",isArray:!0,serviceType:"aapi",cache:c}});return d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiXdslModemLanDhcp",["$injector",function(a){"use strict";return{v6:function(){return a.get("OvhApiXdslModemLanDhcpV6")},Aapi:function(){return a.get("OvhApiXdslModemLanDhcpAapi")},DHCPStaticAddress:function(){return a.get("OvhApiXdslModemLanDhcpDHCPStaticAddresses")}}}]),angular.module("ovh-api-services").service("OvhApiXdslModemLanDhcpV6",["$resource","$cacheFactory","OvhApiXdslModemLanDhcpAapi",function(a,b,c){"use strict";var d=b("OvhApiXdslModemLanDhcpV6"),e={response:function(a){return c.resetCache(),d.removeAll(),a.resource}};return a("/xdsl/:xdslId/modem/lan/:lanName/dhcp/:dhcpName",{xdslId:"@xdslId",lanName:"@lanName",dhcpName:"@dhcpName"},{get:{method:"GET",cache:d},query:{method:"GET",cache:d,isArray:!0},update:{method:"PUT",interceptor:e}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemLanAapi",["$resource","OvhApiXdslModemLan",function(a,b){"use strict";var c=a("/xdsl/:xdslId/modem/lan/details",{xdslId:"@xdslId"},{getLanDetails:{method:"GET",isArray:!0,serviceType:"aapi",cache:b.cache}});return c}]),angular.module("ovh-api-services").service("OvhApiXdslModemLan",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModemLan");return{v6:function(){return a.get("OvhApiXdslModemLanV6")},Aapi:function(){return a.get("OvhApiXdslModemLanAapi")},Dhcp:function(){return a.get("OvhApiXdslModemLanDhcp")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemLanV6",["$resource","OvhApiXdslModemLan",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/lan/:lanName",{xdslId:"@xdslId",lanName:"@lanName"},{get:{method:"GET",cache:b.cache},update:{method:"PUT",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemPortAapi",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModemPortAapi"),d=a("/xdsl/:xdslId/modem/portMappings",{xdslId:"@xdslId"},{query:{serviceType:"aapi",isArray:!0,cache:c}});return d.resetCache=function(){c.removeAll()},d}]),angular.module("ovh-api-services").service("OvhApiXdslModemPort",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModemPort");return{v6:function(){return a.get("OvhApiXdslModemPortV6")},Aapi:function(){return a.get("OvhApiXdslModemPortAapi")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemPortV6",["$resource","OvhApiXdslModemPort",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/portMappings/:name",{xdslId:"@xdslId",name:"@name"},{get:{method:"GET",cache:b.cache},query:{method:"GET",isArray:!0,cache:b.cache},update:{method:"PUT",interceptor:c},post:{method:"POST",url:"/xdsl/:xdslId/modem/portMappings",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemReboot",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModemReboot");return{v6:function(){return a.get("OvhApiXdslModemRebootV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemRebootV6",["$resource",function(a){"use strict";return a("/xdsl/:xdslId/modem/reboot",{xdslId:"@xdslId"})}]),angular.module("ovh-api-services").service("OvhApiXdslModemReset",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModemReset");return{v6:function(){return a.get("OvhApiXdslModemResetV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemResetV6",["$resource",function(a){"use strict";return a("/xdsl/:xdslId/modem/reset",{xdslId:"@xdslId"},{reset:{method:"POST"}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemSipAlg",["$cacheFactory","$injector",function(a,b){"use strict";var c=a("OvhApiXdslModemSipAlg");return{v6:function(){return b.get("OvhApiXdslModemSipAlgV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemSipAlgV6",["$resource","OvhApiXdslModemSipAlg",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/sipAlg",{xdslId:"@xdslId"},{get:{method:"GET",transformResponse:function(a,b,c){return 200===c?{data:angular.fromJson(a)}:a}},post:{method:"POST",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemUpnp",["$cacheFactory","$injector",function(a,b){"use strict";var c=a("OvhApiXdslModemUpnp");return{v6:function(){return b.get("OvhApiXdslModemUpnpV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemUpnpV6",["$resource","OvhApiXdslModemUpnp",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/upnp",{xdslId:"@xdslId"},{get:{method:"GET",transformResponse:function(a,b,c){return 200===c?{data:angular.fromJson(a)}:a}},post:{method:"POST",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemWifiAapi",["$resource","OvhApiXdslModemWifi",function(a,b){"use strict";var c=a("/xdsl/:xdslId/modem/wifi/details",{xdslId:"@xdslId"},{getWifiDetails:{method:"GET",url:"/xdsl/:xdslId/modem/wifi/details",isArray:!0,serviceType:"aapi",cache:b.cache}});return c}]),angular.module("ovh-api-services").service("OvhApiXdslModemWifi",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModemWifi");return{v6:function(){return a.get("OvhApiXdslModemWifiV6")},Aapi:function(){return a.get("OvhApiXdslModemWifiAapi")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemWifiV6",["$resource","OvhApiXdslModemWifi",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem/wifi/:wifiName",{xdslId:"@xdslId",wifiName:"@wifiName"},{get:{method:"GET",cache:b.cache},update:{method:"PUT",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslModemAapi",["$resource","Poller","OvhApiXdslModem",function(a,b,c){"use strict";var d=a("/xdsl/:xdslId/modem",{xdslId:"@xdslId"},{get:{method:"GET",cache:c.cache},query:{method:"GET",cache:c.cache,isArray:!0}});return d.poll=function(a,c){var d=["/xdsl/",c.xdslId,"/modem/tasks"].join("");return a&&a.$on("$destroy",function(){b.kill({scope:a.$id})}),b.poll(d,{serviceType:"aapi"},{successRule:{status:"ok"},errorRule:{status:"error"},namespace:c.namespace})},d}]),angular.module("ovh-api-services").service("OvhApiXdslModem",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslModem");return{v6:function(){return a.get("OvhApiXdslModemV6")},Aapi:function(){return a.get("OvhApiXdslModemAapi")},resetCache:function(){c.removeAll()},ConnectedDevices:function(){return a.get("OvhApiXdslModemDevices")},Lan:function(){return a.get("OvhApiXdslModemLan")},Port:function(){return a.get("OvhApiXdslModemPort")},Reboot:function(){return a.get("OvhApiXdslModemReboot")},Reset:function(){return a.get("OvhApiXdslModemReset")},Wifi:function(){return a.get("OvhApiXdslModemWifi")},AvailableWLANChannel:function(){return a.get("OvhApiXdslModemAvailableWLANChannel")},Firmware:function(){return a.get("OvhApiXdslModemFirmware")},BlocIp:function(){return a.get("OvhApiXdslModemBlocIp")},CallWaiting:function(){return a.get("OvhApiXdslModemCallWaiting")},ContentSharing:function(){return a.get("OvhApiXdslModemContentSharing")},Ftp:function(){return a.get("OvhApiXdslModemFtp")},IpsecAlg:function(){return a.get("OvhApiXdslModemIpsecAlg")},SipAlg:function(){return a.get("OvhApiXdslModemSipAlg")},Upnp:function(){return a.get("OvhApiXdslModemUpnp")},cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslModemV6",["$resource","OvhApiXdslModem",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/modem",{xdslId:"@xdslId"},{get:{method:"GET",cache:b.cache},update:{method:"PUT",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslNotificationsAapi",["$resource","OvhApiXdslNotifications",function(a,b){"use strict";var c=a("/xdsl/:xdslId/monitoringNotifications",{xdslId:"@xdslId"},{list:{method:"GET",serviceType:"aapi",isArray:!0,cache:b.cache}});return c}]),angular.module("ovh-api-services").service("OvhApiXdslNotifications",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslNotifications");return{v6:function(){return a.get("OvhApiXdslNotificationsV6")},Aapi:function(){return a.get("OvhApiXdslNotificationsAapi")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslNotificationsV6",["$resource","OvhApiXdslNotifications",function(a,b){"use strict";var c={response:function(a){return b.resetCache(),a.resource}};return a("/xdsl/:xdslId/monitoringNotifications",{xdslId:"@xdslId",id:"@id"},{query:{method:"GET",isArray:!0,cache:b.cache},add:{method:"POST",interceptor:c},remove:{url:"/xdsl/:xdslId/monitoringNotifications/:id",method:"DELETE",interceptor:c},update:{url:"/xdsl/:xdslId/monitoringNotifications/:id",method:"PUT",interceptor:c}})}]),angular.module("ovh-api-services").service("OvhApiXdslOrderFollowupAapi",["$resource","OvhApiXdslOrderFollowup",function(a,b){"use strict";return a("/xdsl/orderFollowup",{},{query:{method:"GET",isArray:!0,serviceType:"aapi",cache:b.cache}})}]),angular.module("ovh-api-services").service("OvhApiXdslOrderFollowup",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslOrderFollowup");return{Aapi:function(){return a.get("OvhApiXdslOrderFollowupAapi")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslResiliationAapi",["$resource","OvhApiXdslResiliation",function(a,b){"use strict";return a("/xdsl/canCancelResiliation/all",{},{canCancelAll:{method:"GET",isArray:!0,serviceType:"aapi",cache:b.cache},terms:{url:"/xdsl/:serviceName/resiliationTerms",method:"GET",isArray:!1,serviceType:"aapi",cache:b.cache}})}]),angular.module("ovh-api-services").service("OvhApiXdslResiliation",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslResiliation");return{Aapi:function(){return a.get("OvhApiXdslResiliationAapi")},v6:function(){return a.get("OvhApiXdslResiliationV6")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslResiliationV6",["$resource",function(a){"use strict";return a("/xdsl/:serviceName/canCancelResiliation",{serviceName:"@serviceName"},{canCancelResiliation:{url:"/xdsl/:serviceName/canCancelResiliation",method:"GET",transformResponse:function(a){return{value:"true"===a}}},followUp:{url:"/xdsl/:serviceName/resiliationFollowup",method:"GET",isArray:!1},cancelResiliation:{url:"/xdsl/:serviceName/cancelResiliation",method:"POST"},resiliate:{url:"/xdsl/:serviceName/resiliate",method:"POST"},resiliationTerms:{url:"/xdsl/:serviceName/resiliationTerms",method:"GET"}})}]),angular.module("ovh-api-services").service("OvhApiXdslTasksCurrentAapi",["$resource","Poller","OvhApiXdslTasksCurrent",function(a,b,c){"use strict";var d="/xdsl/:xdslId/tasks/current",e=a(d,{xdslId:"@xdslId"},{query:{method:"GET",cache:c.cache,isArray:!0}});return e.poll=function(a,c){return a.$on("$destroy",function(){b.kill({scope:a.$id})}),b.poll(d.replace(":xdslId",c.xdslId),{serviceType:"aapi"},{successRule:{status:"ok"},errorRule:{status:"error"},scope:a.$id})},e}]),angular.module("ovh-api-services").service("OvhApiXdslTasksCurrent",["$injector",function(a){"use strict";return{v6:angular.noop,Aapi:function(){return a.get("OvhApiXdslTasksCurrentAapi")}}}]),angular.module("ovh-api-services").service("OvhApiXdslTemplateModem",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslTemplateModem");return{v6:function(){return a.get("OvhApiXdslTemplateModemV6")},resetCache:function(){c.removeAll()},cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslTemplateModemV6",["$resource","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdslTemplateModemV6"),d=b("OvhApiXdslTemplateModemV6Query"),e={response:function(a){return c.remove(a.config.url),d.removeAll(),a.resource}},f=a("/xdsl/templateModem",{xdslId:"@xdslId",name:"@name",serviceName:"@serviceName"},{query:{method:"GET",isArray:!0,cache:d},get:{method:"GET",cache:c},getBatch:{method:"GET",isArray:!0,headers:{"X-Ovh-Batch":","},url:"/xdsl/templateModem/:name",cache:c},post:{method:"POST",interceptor:e},getTemplate:{method:"GET",url:"/xdsl/templateModem/:name"},updateTemplate:{method:"PUT",url:"/xdsl/templateModem/:name",interceptor:e},deleteTemplate:{method:"DELETE",url:"/xdsl/templateModem/:name",interceptor:e}});return f.resetAllCache=function(){c.removeAll(),d.removeAll()},f}]),angular.module("ovh-api-services").service("OvhApiXdslAapi",["$resource","OvhApiXdsl",function(a,b){"use strict";var c=a("/xdsl/:serviceName/statistics/:type/period/:period",{xdslId:"@xdslId",type:"@type",period:"@period"},{statistics:{method:"GET",serviceType:"aapi",cache:b.cache}});return c}]),angular.module("ovh-api-services").service("OvhApiXdsl",["$injector","$cacheFactory",function(a,b){"use strict";var c=b("OvhApiXdsl");return{v6:function(){return a.get("OvhApiXdslV6")},Aapi:function(){return a.get("OvhApiXdslAapi")},v7:function(){return a.get("OvhApiXdslV7")},Email:function(){return a.get("OvhApiXdslEmail")},Incident:function(){return a.get("OvhApiXdslIncident")},Lines:function(){return a.get("OvhApiXdslLines")},Modem:function(){return a.get("OvhApiXdslModem")},TemplateModem:function(){return a.get("OvhApiXdslTemplateModem")},resetCache:c.removeAll,cache:c}}]),angular.module("ovh-api-services").service("OvhApiXdslV6",["$resource","OvhApiXdsl","OvhApiTelecomSidebar",function(a,b,c){"use strict";var d={response:function(a){return c.resetCache(),b.resetCache(),a.resource}};return a("/xdsl/:xdslId",{xdslId:"@id"},{query:{method:"GET",isArray:!0,cache:b.cache},put:{method:"PUT",url:"/xdsl/:xdslId",interceptor:d},getOrder:{method:"GET",url:"/xdsl/:xdslId/orderFollowup",isArray:!0,cache:b.cache},incidents:{method:"GET",cache:b.cache},requestTotalDeconsolidation:{method:"POST",url:"/xdsl/:xdslId/requestTotalDeconsolidation",interceptor:d},statistics:{method:"GET",url:"/xdsl/:xdslId/statistics",cache:b.cache},lines:{method:"GET",url:"/xdsl/:xdslId/lines",isArray:!0,cache:b.cache},eligibilityCities:{method:"GET",url:"/xdsl/eligibility/cities",isArray:!0,cancellable:!0},eligibilityStreets:{method:"GET",url:"/xdsl/eligibility/streets",isArray:!0,cancellable:!0},requestPPPLoginMail:{method:"POST",url:"/xdsl/:xdslId/requestPPPLoginMail",interceptor:d},updateInvalidOrMissingRio:{method:"POST",url:"/xdsl/:xdslId/updateInvalidOrMissingRio",interceptor:d},getTasks:{method:"GET",url:"/xdsl/:xdslId/tasks",isArray:!0},getTask:{method:"GET",url:"/xdsl/:xdslId/tasks/:taskId"},applyTemplate:{method:"POST",url:"/xdsl/:xdslId/applyTemplateToModem"}})}]),angular.module("ovh-api-services").service("OvhApiXdslV7",["apiv7",function(a){"use strict";var b=a("/xdsl/:serviceName",{serviceName:"@serviceName"});return b}]); \ No newline at end of file diff --git a/src/xdsl/templateModem/xdsl-template-modem.service.js b/src/xdsl/templateModem/xdsl-template-modem.service.js new file mode 100644 index 00000000..b6b0a031 --- /dev/null +++ b/src/xdsl/templateModem/xdsl-template-modem.service.js @@ -0,0 +1,15 @@ +angular.module("ovh-api-services").service("OvhApiXdslTemplateModem", function ($injector, $cacheFactory) { + "use strict"; + + var cache = $cacheFactory("OvhApiXdslTemplateModem"); + + return { + v6: function () { + return $injector.get("OvhApiXdslTemplateModemV6"); + }, + resetCache: function () { + cache.removeAll(); + }, + cache: cache + }; +}); diff --git a/src/xdsl/templateModem/xdsl-template-modem.v6.service.js b/src/xdsl/templateModem/xdsl-template-modem.v6.service.js new file mode 100644 index 00000000..62339dd5 --- /dev/null +++ b/src/xdsl/templateModem/xdsl-template-modem.v6.service.js @@ -0,0 +1,64 @@ +angular.module("ovh-api-services").service("OvhApiXdslTemplateModemV6", function ($resource, $cacheFactory) { + "use strict"; + + var cache = $cacheFactory("OvhApiXdslTemplateModemV6"); + var queryCache = $cacheFactory("OvhApiXdslTemplateModemV6Query"); + + var interceptor = { + response: function (response) { + cache.remove(response.config.url); + queryCache.removeAll(); + return response.resource; + } + }; + + var templateModemResource = $resource("/xdsl/templateModem", { + xdslId: "@xdslId", + name: "@name", + serviceName: "@serviceName" + }, { + query: { + method: "GET", + isArray: true, + cache: queryCache + }, + get: { + method: "GET", + cache: cache + }, + getBatch: { + method: "GET", + isArray: true, + headers: { + "X-Ovh-Batch": "," + }, + url: "/xdsl/templateModem/:name", + cache: cache + }, + post: { + method: "POST", + interceptor: interceptor + }, + getTemplate: { + method: "GET", + url: "/xdsl/templateModem/:name" + }, + updateTemplate: { + method: "PUT", + url: "/xdsl/templateModem/:name", + interceptor: interceptor + }, + deleteTemplate: { + method: "DELETE", + url: "/xdsl/templateModem/:name", + interceptor: interceptor + } + }); + + templateModemResource.resetAllCache = function () { + cache.removeAll(); + queryCache.removeAll(); + }; + + return templateModemResource; +}); diff --git a/src/xdsl/xdsl.service.js b/src/xdsl/xdsl.service.js index 9f61f1ea..8d5d143d 100644 --- a/src/xdsl/xdsl.service.js +++ b/src/xdsl/xdsl.service.js @@ -25,6 +25,9 @@ angular.module("ovh-api-services").service("OvhApiXdsl", function ($injector, $c Modem: function () { return $injector.get("OvhApiXdslModem"); }, + TemplateModem: function () { + return $injector.get("OvhApiXdslTemplateModem"); + }, resetCache: cache.removeAll, cache: cache }; diff --git a/src/xdsl/xdsl.v6.service.js b/src/xdsl/xdsl.v6.service.js index 5c51a870..990d62a7 100644 --- a/src/xdsl/xdsl.v6.service.js +++ b/src/xdsl/xdsl.v6.service.js @@ -79,6 +79,10 @@ angular.module("ovh-api-services").service("OvhApiXdslV6", function ($resource, getTask: { method: "GET", url: "/xdsl/:xdslId/tasks/:taskId" + }, + applyTemplate: { + method: "POST", + url: "/xdsl/:xdslId/applyTemplateToModem" } } );