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

Commit

Permalink
feat(dedicatedcloud.datacenter.zerto): on premises new routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérémy DE CESARE committed Jun 14, 2019
1 parent 6ab0643 commit ea3240a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -1,37 +1,25 @@
angular.module("ovh-api-services").service("OvhApiDedicatedCloudDatacenterZertoV6", function ($cacheFactory, $resource) {
angular.module("ovh-api-services").service("OvhApiDedicatedCloudDatacenterZertoV6", function ($resource) {
"use strict";

var cache = $cacheFactory("OvhApiDedicatedCloudDatacenterZertoV6");
var interceptor = {
response: function (response) {
cache.removeAll();
return response;
}
};

var zertoResource = $resource("/dedicatedCloud/:serviceName/datacenter/:datacenterId/disasterRecovery/zerto", {
serviceName: "@serviceName",
datacenterId: "@datacenterId"
}, {
disable: {
url: "/dedicatedCloud/:serviceName/datacenter/:datacenterId/disasterRecovery/zerto/disable",
method: "POST",
interceptor: interceptor
method: "POST"
},
enable: {
url: "/dedicatedCloud/:serviceName/datacenter/:datacenterId/disasterRecovery/zerto/enable",
method: "POST",
interceptor: interceptor
method: "POST"
},
generateZsspPassword: {
url: "/dedicatedCloud/:serviceName/datacenter/:datacenterId/disasterRecovery/zerto/generateZsspPassword",
method: "POST",
interceptor: interceptor
method: "POST"
},
state: {
url: "/dedicatedCloud/:serviceName/datacenter/:datacenterId/disasterRecovery/zerto/state",
method: "POST",
interceptor: interceptor
method: "POST"
}
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
angular.module("ovh-api-services").service("OvhApiDedicatedCloudDatacenterZertoSingleV6", function ($cacheFactory, $resource) {
angular.module("ovh-api-services").service("OvhApiDedicatedCloudDatacenterZertoSingleV6", function ($resource) {
"use strict";

var cache = $cacheFactory("OvhApiDedicatedCloudDatacenterZertoSingleV6");
var interceptor = {
response: function (response) {
cache.removeAll();
return response;
}
};

var zertoSingleResource = $resource("/dedicatedCloud/:serviceName/datacenter/:datacenterId/disasterRecovery/zertoSingle", {
serviceName: "@serviceName",
datacenterId: "@datacenterId"
}, {
disable: {
url: "/dedicatedCloud/:serviceName/datacenter/:datacenterId/disasterRecovery/zertoSingle/disable",
method: "POST",
interceptor: interceptor
method: "POST"
},
enable: {
url: "/dedicatedCloud/:serviceName/datacenter/:datacenterId/disasterRecovery/zertoSingle/enable",
method: "POST",
interceptor: interceptor
method: "POST"
},
configureVpn: {
url: "/dedicatedCloud/:serviceName/datacenter/:datacenterId/disasterRecovery/zertoSingle/configureVpn",
method: "POST"
},
getDefaultLocalVraNetwork: {
url: "/dedicatedCloud/:serviceName/datacenter/:datacenterId/disasterRecovery/zertoSingle/defaultLocalVraNetwork",
method: "GET"
}
});

Expand Down

0 comments on commit ea3240a

Please sign in to comment.