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

Commit

Permalink
fix(iplb): add ssl order
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Manson committed Nov 22, 2017
1 parent f1d73cc commit 9a9a53f
Show file tree
Hide file tree
Showing 12 changed files with 425 additions and 11 deletions.
212 changes: 212 additions & 0 deletions dist/ovh-api-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -4700,6 +4700,10 @@ angular.module("ovh-api-services").service("OvhApiIpLoadBalancingLexi", ["$resou
method: "GET",
url: "/ipLoadbalancing/:serviceName/serviceInfos",
cache: cache
},
freeCertificate: {
method: "POST",
url: "/ipLoadbalancing/:serviceName/freeCertificate"
}
});

Expand Down Expand Up @@ -6246,6 +6250,211 @@ angular.module("ovh-api-services").service("OvhApiNewAccount", ["$injector", fun
};
}]);

angular.module("ovh-api-services").service("OvhApiOrderCartItemConfigurationLexi", ["$resource", "$cacheFactory", function ($resource, $cacheFactory) {

"use strict";

// Cache to invalidate
var queryCache = $cacheFactory("OvhApiOrderCartItemConfigurationLexiQuery");
var cache = $cacheFactory("OvhApiOrderCartItemConfigurationLexi");

var interceptor = {
response: function (response) {
orderCartItemConfiguration.resetQueryCache();
return response.data;
}
};

var orderCartItemConfiguration = $resource("/order/cart/:cartId/item/:itemId/configuration/:configurationId", {
cartId: "@cartId",
itemId: "@itemId",
configurationId: "@configurationId"
}, {
query: { method: "GET", cache: queryCache },
get: { method: "GET", cache: cache },
post: { method: "POST", interceptor: interceptor }
});

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

orderCartItemConfiguration.resetQueryCache = function () {
queryCache.removeAll();
};

return orderCartItemConfiguration;
}]);

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

"use strict";
return {
Lexi: function () {
return $injector.get("OvhApiOrderCartItemConfigurationLexi");
}
};
}]);

angular.module("ovh-api-services").service("OvhApiOrderCartItemLexi", ["$resource", "$cacheFactory", function ($resource, $cacheFactory) {

"use strict";

// Cache to invalidate
var queryCache = $cacheFactory("OvhApiOrderCartItemLexiQuery");
var cache = $cacheFactory("OvhApiOrderCartItemLexi");

var interceptor = {
response: function (response) {
orderCartItem.resetQueryCache();
return response.data;
}
};

var orderCartItem = $resource("/order/cart/:cartId/item/:itemId", {
cartId: "@cartId",
itemId: "@itemId"
}, {
query: { method: "GET", cache: queryCache },
get: { method: "GET", cache: cache },
put: { method: "PUT", interceptor: interceptor }
});

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

orderCartItem.resetQueryCache = function () {
queryCache.removeAll();
};

return orderCartItem;
}]);

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

"use strict";
return {
Configuration: function () {
return $injector.get("OvhApiOrderCartItemConfiguration");
},
Lexi: function () {
return $injector.get("OvhApiOrderCartItemLexi");
}
};
}]);

angular.module("ovh-api-services").service("OvhApiOrderCartLexi", ["$resource", "$cacheFactory", function ($resource, $cacheFactory) {

"use strict";

// Cache to invalidate
var queryCache = $cacheFactory("OvhApiOrderCartLexiQuery");
var cache = $cacheFactory("OvhApiOrderCartLexi");

var interceptor = {
response: function (response) {
orderCart.resetQueryCache();
return response.data;
}
};

var orderCart = $resource("/order/cart/:cartId", {
cartId: "@cartId"
}, {
query: { method: "GET", isArray: true, cache: queryCache },
get: { method: "GET", cache: cache, isArray: false },
post: {
method: "POST",
interceptor: interceptor,
url: "/order/cart"
},
put: { method: "PUT", interceptor: interceptor },
"delete": { method: "DELETE", interceptor: interceptor },
assign: {
method: "POST",
url: "/order/cart/:cartId/assign"
},
checkout: {
method: "POST",
url: "/order/cart/:cartId/checkout"
}
});

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

orderCart.resetQueryCache = function () {
queryCache.removeAll();
};

return orderCart;
}]);

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

"use strict";
return {
Item: function () {
return $injector.get("OvhApiOrderCartItem");
},
Product: function () {
return $injector.get("OvhApiOrderCartProduct");
},
ServiceOption: function () {
return $injector.get("OvhApiOrderCartServiceOption");
},
Lexi: function () {
return $injector.get("OvhApiOrderCartLexi");
}
};
}]);

angular.module("ovh-api-services").service("OvhApiOrderCartServiceOptionLexi", ["$resource", "$cacheFactory", function ($resource, $cacheFactory) {

"use strict";

// Cache to invalidate
var queryCache = $cacheFactory("OvhApiOrderCartServiceOptionLexiQuery");
var cache = $cacheFactory("OvhApiOrderCartServiceOptionLexi");

var interceptor = {
response: function (response) {
orderCartServiceOption.resetQueryCache();
return response.data;
}
};

var orderCartServiceOption = $resource("/order/cartServiceOption/:productName/:serviceName", {
productName: "@productName",
serviceName: "@serviceName"
}, {
get: { method: "GET", cache: cache, isArray: true },
post: { method: "POST", interceptor: interceptor }
});

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

orderCartServiceOption.resetQueryCache = function () {
queryCache.removeAll();
};

return orderCartServiceOption;
}]);

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

"use strict";
return {
Lexi: function () {
return $injector.get("OvhApiOrderCartServiceOptionLexi");
}
};
}]);

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

Expand Down Expand Up @@ -6516,6 +6725,9 @@ angular.module("ovh-api-services").service("OvhApiOrder", ["$injector", function
Sms: function () {
return $injector.get("OvhApiOrderSms");
},
Cart: function () {
return $injector.get("OvhApiOrderCart");
},
Lexi: function () {
return $injector.get("OvhApiOrderLexi");
}
Expand Down
20 changes: 9 additions & 11 deletions dist/ovh-api-services.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/ipLoadBalancing/ipLoadBalancing.lexi.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ angular.module("ovh-api-services").service("OvhApiIpLoadBalancingLexi", function
method: "GET",
url: "/ipLoadbalancing/:serviceName/serviceInfos",
cache: cache
},
freeCertificate: {
method: "POST",
url: "/ipLoadbalancing/:serviceName/freeCertificate"
}
});

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
angular.module("ovh-api-services").service("OvhApiOrderCartItemConfigurationLexi", function ($resource, $cacheFactory) {

"use strict";

// Cache to invalidate
var queryCache = $cacheFactory("OvhApiOrderCartItemConfigurationLexiQuery");
var cache = $cacheFactory("OvhApiOrderCartItemConfigurationLexi");

var interceptor = {
response: function (response) {
orderCartItemConfiguration.resetQueryCache();
return response.data;
}
};

var orderCartItemConfiguration = $resource("/order/cart/:cartId/item/:itemId/configuration/:configurationId", {
cartId: "@cartId",
itemId: "@itemId",
configurationId: "@configurationId"
}, {
query: { method: "GET", cache: queryCache },
get: { method: "GET", cache: cache },
post: { method: "POST", interceptor: interceptor }
});

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

orderCartItemConfiguration.resetQueryCache = function () {
queryCache.removeAll();
};

return orderCartItemConfiguration;
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular.module("ovh-api-services").service("OvhApiOrderCartItemConfiguration", function ($injector) {

"use strict";
return {
Lexi: function () {
return $injector.get("OvhApiOrderCartItemConfigurationLexi");
}
};
});
34 changes: 34 additions & 0 deletions src/order/cart/item/order-cart-item.lexi.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
angular.module("ovh-api-services").service("OvhApiOrderCartItemLexi", function ($resource, $cacheFactory) {

"use strict";

// Cache to invalidate
var queryCache = $cacheFactory("OvhApiOrderCartItemLexiQuery");
var cache = $cacheFactory("OvhApiOrderCartItemLexi");

var interceptor = {
response: function (response) {
orderCartItem.resetQueryCache();
return response.data;
}
};

var orderCartItem = $resource("/order/cart/:cartId/item/:itemId", {
cartId: "@cartId",
itemId: "@itemId"
}, {
query: { method: "GET", cache: queryCache },
get: { method: "GET", cache: cache },
put: { method: "PUT", interceptor: interceptor }
});

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

orderCartItem.resetQueryCache = function () {
queryCache.removeAll();
};

return orderCartItem;
});
12 changes: 12 additions & 0 deletions src/order/cart/item/order-cart-item.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
angular.module("ovh-api-services").service("OvhApiOrderCartItem", function ($injector) {

"use strict";
return {
Configuration: function () {
return $injector.get("OvhApiOrderCartItemConfiguration");
},
Lexi: function () {
return $injector.get("OvhApiOrderCartItemLexi");
}
};
});
47 changes: 47 additions & 0 deletions src/order/cart/order-cart.lexi.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
angular.module("ovh-api-services").service("OvhApiOrderCartLexi", function ($resource, $cacheFactory) {

"use strict";

// Cache to invalidate
var queryCache = $cacheFactory("OvhApiOrderCartLexiQuery");
var cache = $cacheFactory("OvhApiOrderCartLexi");

var interceptor = {
response: function (response) {
orderCart.resetQueryCache();
return response.data;
}
};

var orderCart = $resource("/order/cart/:cartId", {
cartId: "@cartId"
}, {
query: { method: "GET", isArray: true, cache: queryCache },
get: { method: "GET", cache: cache, isArray: false },
post: {
method: "POST",
interceptor: interceptor,
url: "/order/cart"
},
put: { method: "PUT", interceptor: interceptor },
"delete": { method: "DELETE", interceptor: interceptor },
assign: {
method: "POST",
url: "/order/cart/:cartId/assign"
},
checkout: {
method: "POST",
url: "/order/cart/:cartId/checkout"
}
});

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

orderCart.resetQueryCache = function () {
queryCache.removeAll();
};

return orderCart;
});
Loading

0 comments on commit 9a9a53f

Please sign in to comment.