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

Commit

Permalink
feat(cloud): add workflow backup routes
Browse files Browse the repository at this point in the history
  • Loading branch information
marie-j committed Sep 6, 2018
1 parent 236a89b commit 0f3fcf1
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 13 deletions.
53 changes: 53 additions & 0 deletions dist/ovh-api-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -1734,6 +1734,59 @@ angular.module("ovh-api-services").service("OvhApiCloudProjectRegionV6", ["$reso

}]);

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

"use strict";

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

}]);

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

var queryCache = $cacheFactory("OvhApiCloudProjectRegionWorkflowBackupV6Query");

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

var backup = $resource("/cloud/project/:serviceName/region/:regionName/workflow/backup/:backupName", {
serviceName: "@serviceName",
regionName: "@regionName"
}, {
query: { method: "GET", cache: queryCache, isArray: true },
save: { method: "POST", interceptor: interceptor },
"delete": { method: "DELETE", interceptor: interceptor }
});

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

return backup;

}]);

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

"use strict";

return {
Backup: function () {
return $injector.get("OvhApiCloudProjectRegionWorkflowBackup");
}
};

}]);

angular.module("ovh-api-services").service("OvhApiCloudProjectServiceInfos", ["$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.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
angular.module("ovh-api-services").service("OvhApiCloudProjectRegionWorkflowBackup", function ($injector) {

"use strict";

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

});
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
angular.module("ovh-api-services").service("OvhApiCloudProjectRegionWorkflowBackupV6", function ($resource, $cacheFactory) {
"use strict";

var queryCache = $cacheFactory("OvhApiCloudProjectRegionWorkflowBackupV6Query");

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

var backup = $resource("/cloud/project/:serviceName/region/:regionName/workflow/backup/:backupName", {
serviceName: "@serviceName",
regionName: "@regionName"
}, {
query: { method: "GET", cache: queryCache, isArray: true },
save: { method: "POST", interceptor: interceptor },
"delete": { method: "DELETE", interceptor: interceptor }
});

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

return backup;

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

"use strict";

return {
Backup: function () {
return $injector.get("OvhApiCloudProjectRegionWorkflowBackup");
}
};

});

0 comments on commit 0f3fcf1

Please sign in to comment.