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

Commit

Permalink
feat(cdn dedicated): add /cdn/dedicated and /order/cdn/dedicated reso…
Browse files Browse the repository at this point in the history
…urces
  • Loading branch information
Jisay authored and antleblanc committed Jun 15, 2018
1 parent 6a8d760 commit 1e84215
Show file tree
Hide file tree
Showing 15 changed files with 316 additions and 13 deletions.
157 changes: 157 additions & 0 deletions dist/ovh-api-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ angular.module("ovh-api-services").service("OvhApiCdnDedicated", ["$injector", "
v6: function () {
return $injector.get("OvhApiCdnDedicatedV6");
},
Domains: function () {
return $injector.get("OvhApiCdnDedicatedDomains");
},
Ssl: function () {
return $injector.get("OvhApiCdnDedicatedSsl");
},
Expand All @@ -71,6 +74,113 @@ angular.module("ovh-api-services").service("OvhApiCdnDedicatedV6", ["$resource",
method: "GET",
isArray: true,
cache: OvhApiCdnDedicated.cache
},
quota: {
method: "GET",
url: "/cdn/dedicated/:serviceName/quota",
isArray: true
},
swsGetStatistics: {
method: "GET",
url: "/sws/dedicated/cdn/:serviceName/statistics",
serviceType: "aapi",
isArray: false
},
swsGetAllBackends: {
method: "GET",
url: "/sws/dedicated/cdn/:serviceName/backends",
serviceType: "aapi",
isArray: false
}
});
}]);

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

return {
v6: function () {
return $injector.get("OvhApiCdnDedicatedDomainsBackendsV6");
}
};
}]);

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

return $resource("/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 ($injector) {
"use strict";

return {
v6: function () {
return $injector.get("OvhApiCdnDedicatedDomainsCacheRulesV6");
}
};
}]);

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

return $resource("/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 ($injector) {
"use strict";

return {
v6: function () {
return $injector.get("OvhApiCdnDedicatedDomainsV6");
},
Backends: function () {
return $injector.get("OvhApiCdnDedicatedDomainsBackends");
},
CacheRules: function () {
return $injector.get("OvhApiCdnDedicatedDomainsCacheRules");
}
};
}]);

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

return $resource("/cdn/dedicated/:serviceName/domains/:domain", {
serviceName: "@serviceName",
domain: "@domain"
}, {
flush: {
method: "POST",
url: "/cdn/dedicated/:serviceName/domains/:domain/flush"
},
statistics: {
method: "GET",
url: "/cdn/dedicated/:serviceName/domains/:domain/statistics"
},
update: {
method: "PUT"
}
});
}]);
Expand Down Expand Up @@ -9081,6 +9191,53 @@ angular.module("ovh-api-services").service("OvhApiOrderCatalogFormattedV6", ["$r
return resource;
}]);

angular.module("ovh-api-services").service("OvhApiOrderCdnDedicatedBackend", ["$injector", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiOrderCdnDedicatedBackendV6");
}
};
}]);

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

return $resource("/order/cdn/dedicated/:serviceName/backend/:duration", {
serviceName: "@serviceName",
duration: "@duration"
});
}]);

angular.module("ovh-api-services").service("OvhApiOrderCdnDedicated", ["$injector", function ($injector) {
"use strict";
return {
Backend: function () {
return $injector.get("OvhApiOrderCdnDedicatedBackend");
},
v6: function () {
return $injector.get("OvhApiOrderCdnDedicatedV6");
}
};
}]);

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

return $resource("/order/cdn/dedicated/:serviceName", {
serviceName: "@serviceName"
});
}]);

angular.module("ovh-api-services").service("OvhApiOrderCdn", ["$injector", function ($injector) {
"use strict";
return {
Dedicated: function () {
return $injector.get("OvhApiOrderCdnDedicated");
}
};
}]);

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

Expand Down
26 changes: 13 additions & 13 deletions dist/ovh-api-services.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/cdn/dedicated/cdn-dedicated.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ angular.module("ovh-api-services").service("OvhApiCdnDedicated", function ($inje
v6: function () {
return $injector.get("OvhApiCdnDedicatedV6");
},
Domains: function () {
return $injector.get("OvhApiCdnDedicatedDomains");
},
Ssl: function () {
return $injector.get("OvhApiCdnDedicatedSsl");
},
Expand Down
17 changes: 17 additions & 0 deletions src/cdn/dedicated/cdn-dedicated.v6.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@ angular.module("ovh-api-services").service("OvhApiCdnDedicatedV6", function ($re
method: "GET",
isArray: true,
cache: OvhApiCdnDedicated.cache
},
quota: {
method: "GET",
url: "/cdn/dedicated/:serviceName/quota",
isArray: true
},
swsGetStatistics: {
method: "GET",
url: "/sws/dedicated/cdn/:serviceName/statistics",
serviceType: "aapi",
isArray: false
},
swsGetAllBackends: {
method: "GET",
url: "/sws/dedicated/cdn/:serviceName/backends",
serviceType: "aapi",
isArray: false
}
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular.module("ovh-api-services").service("OvhApiCdnDedicatedDomainsBackends", function ($injector) {
"use strict";

return {
v6: function () {
return $injector.get("OvhApiCdnDedicatedDomainsBackendsV6");
}
};
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
angular.module("ovh-api-services").service("OvhApiCdnDedicatedDomainsBackendsV6", function ($resource) {
"use strict";

return $resource("/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"
}
}
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular.module("ovh-api-services").service("OvhApiCdnDedicatedDomainsCacheRules", function ($injector) {
"use strict";

return {
v6: function () {
return $injector.get("OvhApiCdnDedicatedDomainsCacheRulesV6");
}
};
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
angular.module("ovh-api-services").service("OvhApiCdnDedicatedDomainsV6", function ($resource) {
"use strict";

return $resource("/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"
}
});
});
15 changes: 15 additions & 0 deletions src/cdn/dedicated/domains/cdn-dedicated-domains.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
angular.module("ovh-api-services").service("OvhApiCdnDedicatedDomains", function ($injector) {
"use strict";

return {
v6: function () {
return $injector.get("OvhApiCdnDedicatedDomainsV6");
},
Backends: function () {
return $injector.get("OvhApiCdnDedicatedDomainsBackends");
},
CacheRules: function () {
return $injector.get("OvhApiCdnDedicatedDomainsCacheRules");
}
};
});
20 changes: 20 additions & 0 deletions src/cdn/dedicated/domains/cdn-dedicated-domains.service.v6.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
angular.module("ovh-api-services").service("OvhApiCdnDedicatedDomainsV6", function ($resource) {
"use strict";

return $resource("/cdn/dedicated/:serviceName/domains/:domain", {
serviceName: "@serviceName",
domain: "@domain"
}, {
flush: {
method: "POST",
url: "/cdn/dedicated/:serviceName/domains/:domain/flush"
},
statistics: {
method: "GET",
url: "/cdn/dedicated/:serviceName/domains/:domain/statistics"
},
update: {
method: "PUT"
}
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
angular.module("ovh-api-services").service("OvhApiOrderCdnDedicatedBackend", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiOrderCdnDedicatedBackendV6");
}
};
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
angular.module("ovh-api-services").service("OvhApiOrderCdnDedicatedBackendV6", function ($resource) {
"use strict";

return $resource("/order/cdn/dedicated/:serviceName/backend/:duration", {
serviceName: "@serviceName",
duration: "@duration"
});
});
11 changes: 11 additions & 0 deletions src/order/cdn/dedicated/order-cdn-dedicated.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
angular.module("ovh-api-services").service("OvhApiOrderCdnDedicated", function ($injector) {
"use strict";
return {
Backend: function () {
return $injector.get("OvhApiOrderCdnDedicatedBackend");
},
v6: function () {
return $injector.get("OvhApiOrderCdnDedicatedV6");
}
};
});
7 changes: 7 additions & 0 deletions src/order/cdn/dedicated/order-cdn-dedicated.v6.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
angular.module("ovh-api-services").service("OvhApiOrderCdnDedicatedV6", function ($resource) {
"use strict";

return $resource("/order/cdn/dedicated/:serviceName", {
serviceName: "@serviceName"
});
});
8 changes: 8 additions & 0 deletions src/order/cdn/order-cdn.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
angular.module("ovh-api-services").service("OvhApiOrderCdn", function ($injector) {
"use strict";
return {
Dedicated: function () {
return $injector.get("OvhApiOrderCdnDedicated");
}
};
});

0 comments on commit 1e84215

Please sign in to comment.