From 672b5d017e61d6fd53acc74ac58926dc6f7a399d Mon Sep 17 00:00:00 2001 From: Marie JONES Date: Thu, 14 Nov 2019 16:51:34 +0100 Subject: [PATCH] feat(cloud.project.kube): add call for flavors Signed-off-by: Marie JONES --- src/api/cloud/project/kube/cloud-project-kube.service.js | 3 +++ .../project/kube/flavors/cloud-project-kube-node.service.js | 5 +++++ .../kube/flavors/cloud-project-kube-node.v6.service.js | 6 ++++++ 3 files changed, 14 insertions(+) create mode 100644 src/api/cloud/project/kube/flavors/cloud-project-kube-node.service.js create mode 100644 src/api/cloud/project/kube/flavors/cloud-project-kube-node.v6.service.js diff --git a/src/api/cloud/project/kube/cloud-project-kube.service.js b/src/api/cloud/project/kube/cloud-project-kube.service.js index 588b2653..45adeb5e 100644 --- a/src/api/cloud/project/kube/cloud-project-kube.service.js +++ b/src/api/cloud/project/kube/cloud-project-kube.service.js @@ -5,6 +5,9 @@ angular.module('ovh-api-services').service('OvhApiCloudProjectKube', ($injector) v6() { return $injector.get('OvhApiCloudProjectKubeV6'); }, + Flavors() { + return $injector.get('OvhApiCloudProjectKubeFlavors'); + }, Node() { return $injector.get('OvhApiCloudProjectKubeNode'); }, diff --git a/src/api/cloud/project/kube/flavors/cloud-project-kube-node.service.js b/src/api/cloud/project/kube/flavors/cloud-project-kube-node.service.js new file mode 100644 index 00000000..da771a18 --- /dev/null +++ b/src/api/cloud/project/kube/flavors/cloud-project-kube-node.service.js @@ -0,0 +1,5 @@ +angular.module('ovh-api-services').service('OvhApiCloudProjectKubeFlavors', ($injector) => ({ + v6() { + return $injector.get('OvhApiCloudProjectKubeFlavorsV6'); + }, +})); diff --git a/src/api/cloud/project/kube/flavors/cloud-project-kube-node.v6.service.js b/src/api/cloud/project/kube/flavors/cloud-project-kube-node.v6.service.js new file mode 100644 index 00000000..bd09ddc7 --- /dev/null +++ b/src/api/cloud/project/kube/flavors/cloud-project-kube-node.v6.service.js @@ -0,0 +1,6 @@ +angular + .module('ovh-api-services') + .service('OvhApiCloudProjectKubeFlavorsV6', ($resource) => $resource('/cloud/project/:serviceName/kube/:kubeId/flavors', { + serviceName: '@serviceName', + kubeId: '@kubeId', + }));