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

Commit

Permalink
Release v3.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
euhmeuh authored and CDS Agent committed Oct 11, 2018
1 parent 2aec679 commit 8e2658b
Show file tree
Hide file tree
Showing 4 changed files with 231 additions and 13 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ovh-api-services",
"description": "Contains all angular $resource for OVH API.",
"version": "3.17.1",
"version": "3.18.0",
"main": "./dist/ovh-api-services.min.js",
"repository": {
"type": "git",
Expand Down
217 changes: 217 additions & 0 deletions dist/ovh-api-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -6738,6 +6738,144 @@ angular.module("ovh-api-services").service("OvhApiFreeFaxV7", ["apiv7", function

}]);

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

return {
v6: function () {
return $injector.get("OvhApiHostingPrivateDatabaseV6");
},
Whitelist: function () {
return $injector.get("OvhApiHostingPrivateDatabaseWhitelist");
}
};
}]);

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

var cache = $cacheFactory("OvhApiHostingPrivateDatabaseV6Cache");

var interceptor = {
response: function (response) {
cache.removeAll();
return response;
}
};

var resource = $resource("/hosting/privateDatabase/:serviceName", {
serviceName: "@serviceName"
}, {
query: {
method: "GET",
isArray: true,
cache: cache
},
get: {
method: "GET",
cache: cache
},
put: {
method: "PUT",
interceptor: interceptor
},
availableOrderCapacities: {
method: "GET",
url: "/hosting/privateDatabase/availableOrderCapacities",
params: {
offer: "@offer"
}
}
});

resource.resetAllCache = function () {
resource.resetCache();
};

resource.resetCache = function () {
cache.removeAll();
};

return resource;
}]);

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

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

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

var cache = $cacheFactory("OvhApiHostingPrivateDatabaseWhitelistV6Cache");

var interceptor = {
response: function (response) {
cache.removeAll();
return response;
}
};

var resource = $resource("/hosting/privateDatabase/:serviceName/whitelist", {
serviceName: "@serviceName"
}, {
query: {
method: "GET",
isArray: true,
cache: cache,
params: {
ip: "@ip",
service: "@service",
sftp: "@sftp"
}
},
post: {
method: "POST",
interceptor: interceptor
},
getIp: {
method: "GET",
url: "/hosting/privateDatabase/:serviceName/whitelist/:ip",
params: {
ip: "@ip"
},
cache: cache
},
putIp: {
method: "PUT",
url: "/hosting/privateDatabase/:serviceName/whitelist/:ip",
params: {
ip: "@ip",
whitelist: "@whitelist"
},
interceptor: interceptor
},
deleteIp: {
method: "DELETE",
url: "/hosting/privateDatabase/:serviceName/whitelist/:ip",
params: {
ip: "@ip"
},
interceptor: interceptor
}
});

resource.resetAllCache = function () {
resource.resetCache();
};

resource.resetCache = function () {
cache.removeAll();
};

return resource;
}]);

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

Expand Down Expand Up @@ -10794,6 +10932,85 @@ angular.module("ovh-api-services").service("OvhApiOrderFreefaxV6", ["$resource",
});
}]);

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

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

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

return $resource("/order/hosting/privateDatabase/:serviceName", {
serviceName: "@serviceName"
}, {
query: {
method: "GET",
isArray: true
},
get: {
method: "GET",
isArray: true
},
getNew: {
method: "GET",
url: "/order/hosting/privateDatabase/:serviceName/new",
isArray: true,
params: {
datacenter: "@datacenter",
offer: "@offer",
ram: "@ram",
version: "@version"
}
},
getNewDetails: {
method: "GET",
url: "/order/hosting/privateDatabase/:serviceName/new/:duration",
params: {
duration: "@duration",
datacenter: "@datacenter",
offer: "@offer",
ram: "@ram",
version: "@version"
}
},
orderNew: {
method: "POST",
url: "/order/hosting/privateDatabase/:serviceName/new/:duration",
params: {
duration: "@duration"
}
},
getRam: {
method: "GET",
url: "/order/hosting/privateDatabase/:serviceName/ram",
isArray: true,
params: {
ram: "@ram"
}
},
getRamDetails: {
method: "GET",
url: "/order/hosting/privateDatabase/:serviceName/ram/:duration",
params: {
duration: "@duration",
ram: "@ram"
}
},
orderRam: {
method: "POST",
url: "/order/hosting/privateDatabase/:serviceName/ram/:duration",
params: {
duration: "@duration"
}
}
});
}]);

angular.module("ovh-api-services").service("OvhApiOrderLicenseOfficeNew", ["$injector", function ($injector) {

"use strict";
Expand Down
23 changes: 12 additions & 11 deletions dist/ovh-api-services.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ovh-api-services",
"version": "3.17.1",
"version": "3.18.0",
"description": "Contains all angular $resource for OVH API.",
"main": "./dist/ovh-api-services.min.js",
"repository": "ovh-ux/ovh-api-services",
Expand Down

0 comments on commit 8e2658b

Please sign in to comment.