From 25d1aedca5303b0d6873ee8ac6d790bcdfad4b26 Mon Sep 17 00:00:00 2001 From: Adrien Carreira Date: Fri, 16 Oct 2020 10:06:24 +0200 Subject: [PATCH] feat(cloud.project.ai.training): remove data and add registryId parameter (#314) Co-authored-by: Adrien Carreira BREAKING CHANGE: remove `OvhApiCloudProjectAiTrainingData` service remove `Data` property from `OvhApiCloudProjectAiTraining` service --- .../ai/training/cloud-project-ai-training.service.js | 1 - .../data/cloud-project-ai-training-data.service.js | 5 ----- .../data/cloud-project-ai-training-data.v6.service.js | 11 ----------- .../cloud-project-ai-training-registry.v6.service.js | 10 ++++------ 4 files changed, 4 insertions(+), 23 deletions(-) delete mode 100644 src/api/cloud/project/ai/training/data/cloud-project-ai-training-data.service.js delete mode 100644 src/api/cloud/project/ai/training/data/cloud-project-ai-training-data.v6.service.js diff --git a/src/api/cloud/project/ai/training/cloud-project-ai-training.service.js b/src/api/cloud/project/ai/training/cloud-project-ai-training.service.js index 3a12956f..4b651387 100644 --- a/src/api/cloud/project/ai/training/cloud-project-ai-training.service.js +++ b/src/api/cloud/project/ai/training/cloud-project-ai-training.service.js @@ -2,7 +2,6 @@ angular .module('ovh-api-services') .service('OvhApiCloudProjectAiTraining', ($injector) => ({ Job: () => $injector.get('OvhApiCloudProjectAiTrainingJob'), - Data: () => $injector.get('OvhApiCloudProjectAiTrainingData'), Registry: () => $injector.get('OvhApiCloudProjectAiTrainingRegistry'), Authorization: () => $injector.get('OvhApiCloudProjectAiTrainingAuthorization'), })); diff --git a/src/api/cloud/project/ai/training/data/cloud-project-ai-training-data.service.js b/src/api/cloud/project/ai/training/data/cloud-project-ai-training-data.service.js deleted file mode 100644 index 35f77dc6..00000000 --- a/src/api/cloud/project/ai/training/data/cloud-project-ai-training-data.service.js +++ /dev/null @@ -1,5 +0,0 @@ -angular - .module('ovh-api-services') - .service('OvhApiCloudProjectAiTrainingData', ($injector) => ({ - v6: () => $injector.get('OvhApiCloudProjectAiTrainingDataV6'), - })); diff --git a/src/api/cloud/project/ai/training/data/cloud-project-ai-training-data.v6.service.js b/src/api/cloud/project/ai/training/data/cloud-project-ai-training-data.v6.service.js deleted file mode 100644 index ca3deb5b..00000000 --- a/src/api/cloud/project/ai/training/data/cloud-project-ai-training-data.v6.service.js +++ /dev/null @@ -1,11 +0,0 @@ -angular - .module('ovh-api-services') - .service('OvhApiCloudProjectAiTrainingDataV6', ($resource) => $resource('/cloud/project/:serviceName/ai/training/data/:dataId', { - serviceName: '@serviceName', - dataId: '@dataId', - }, { - sync: { - method: 'POST', - url: '/cloud/project/:serviceName/ai/training/data/:dataId/sync', - }, - })); diff --git a/src/api/cloud/project/ai/training/registry/cloud-project-ai-training-registry.v6.service.js b/src/api/cloud/project/ai/training/registry/cloud-project-ai-training-registry.v6.service.js index ad328901..62f06756 100644 --- a/src/api/cloud/project/ai/training/registry/cloud-project-ai-training-registry.v6.service.js +++ b/src/api/cloud/project/ai/training/registry/cloud-project-ai-training-registry.v6.service.js @@ -1,8 +1,6 @@ angular .module('ovh-api-services') - .service('OvhApiCloudProjectAiTrainingRegistryV6', ($resource) => { - const resource = $resource('/cloud/project/:serviceName/ai/training/registry', { - serviceName: '@serviceName', - }); - return resource; - }); + .service('OvhApiCloudProjectAiTrainingRegistryV6', ($resource) => $resource('/cloud/project/:serviceName/ai/training/registry/:registryId', { + serviceName: '@serviceName', + registryId: '@registryId', + }));