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 ssl resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisay committed May 9, 2018
2 parents 4c17877 + 9801687 commit 1887652
Show file tree
Hide file tree
Showing 10 changed files with 157 additions and 11 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.3.1",
"version": "3.5.0",
"main": "./dist/ovh-api-services.min.js",
"repository": {
"type": "git",
Expand Down
75 changes: 75 additions & 0 deletions dist/ovh-api-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -6314,11 +6314,40 @@ angular.module("ovh-api-services").service("OvhApiIpLoadBalancingZoneV6", ["$res
return ipLoadBalancingZone;
}]);

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

var cache = $cacheFactory("OvhApiLicenseAapi");

var licenses = $resource("/sws/license", {}, {
get: {
method: "GET",
url: "/sws/license?filterType",
serviceType: "aapi",
cache: cache,
isArray: false,
params: {
count: "@count",
offset: "@offset"
}
}
});

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

return licenses;
}]);

angular.module("ovh-api-services").service("OvhApiLicense", ["$injector", function ($injector) {
"use strict";
return {
Office: function () {
return $injector.get("OvhApiLicenseOffice");
},
Aapi: function () {
return $injector.get("OvhApiLicenseAapi");
}
};
}]);
Expand Down Expand Up @@ -6793,6 +6822,49 @@ angular.module("ovh-api-services").service("OvhApiMeBillV6", ["$resource", "$cac
return userBillResource;
}]);

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

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

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

return $resource("/me/billing/invoicesByPostalMail", {}, {
get: {
method: "GET",
isArray: false,
transformResponse: function (data) {
// because $resource returns a promise due to boolean type of data
return {
data: angular.fromJson(data)
};
}
},
post: {
method: "POST",
params: {
enable: "@enable"
}
}
});
}]);

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

return {
InvoicesByPostalMail: function () {
return $injector.get("OvhApiMeBillingInvoicesByPostalMail");
}
};
}]);

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

Expand Down Expand Up @@ -7229,6 +7301,9 @@ angular.module("ovh-api-services").service("OvhApiMe", ["$injector", function ($
Bill: function () {
return $injector.get("OvhApiMeBill");
},
Billing: function () {
return $injector.get("OvhApiMeBilling");
},
Order: function () {
return $injector.get("OvhApiMeOrder");
},
Expand Down
18 changes: 9 additions & 9 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.3.1",
"version": "3.5.0",
"description": "Contains all angular $resource for OVH API.",
"main": "./dist/ovh-api-services.min.js",
"repository": "ovh-ux/ovh-api-services",
Expand Down
25 changes: 25 additions & 0 deletions src/license/license.aapi.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
angular.module("ovh-api-services").service("OvhApiLicenseAapi", function ($resource, $cacheFactory) {
"use strict";

var cache = $cacheFactory("OvhApiLicenseAapi");

var licenses = $resource("/sws/license", {}, {
get: {
method: "GET",
url: "/sws/license?filterType",
serviceType: "aapi",
cache: cache,
isArray: false,
params: {
count: "@count",
offset: "@offset"
}
}
});

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

return licenses;
});
3 changes: 3 additions & 0 deletions src/license/license.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ angular.module("ovh-api-services").service("OvhApiLicense", function ($injector)
return {
Office: function () {
return $injector.get("OvhApiLicenseOffice");
},
Aapi: function () {
return $injector.get("OvhApiLicenseAapi");
}
};
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular.module("ovh-api-services").service("OvhApiMeBillingInvoicesByPostalMail", function ($injector) {
"use strict";

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

return $resource("/me/billing/invoicesByPostalMail", {}, {
get: {
method: "GET",
isArray: false,
transformResponse: function (data) {
// because $resource returns a promise due to boolean type of data
return {
data: angular.fromJson(data)
};
}
},
post: {
method: "POST",
params: {
enable: "@enable"
}
}
});
});
9 changes: 9 additions & 0 deletions src/me/billing/me-billing.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular.module("ovh-api-services").service("OvhApiMeBilling", function ($injector) {
"use strict";

return {
InvoicesByPostalMail: function () {
return $injector.get("OvhApiMeBillingInvoicesByPostalMail");
}
};
});
3 changes: 3 additions & 0 deletions src/me/me.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ angular.module("ovh-api-services").service("OvhApiMe", function ($injector) {
Bill: function () {
return $injector.get("OvhApiMeBill");
},
Billing: function () {
return $injector.get("OvhApiMeBilling");
},
Order: function () {
return $injector.get("OvhApiMeOrder");
},
Expand Down

0 comments on commit 1887652

Please sign in to comment.