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

Commit

Permalink
feat(cloud.project.ai): add training platform initialization (#300)
Browse files Browse the repository at this point in the history
Co-authored-by: Maël LE GAL <[email protected]>
Co-authored-by: Adrien Carreira <[email protected]>
Co-authored-by: Antoine Leblanc <[email protected]>
  • Loading branch information
4 people authored Jul 24, 2020
1 parent 4bc40fa commit ec6a7ac
Show file tree
Hide file tree
Showing 18 changed files with 119 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiCapabilities', ($injector) => ({
Serving: () => $injector.get('OvhApiCloudProjectAiCapabilitiesServing'),
Training: () => $injector.get('OvhApiCloudProjectAiCapabilitiesTraining'),
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiCapabilitiesTraining', ($injector) => ({
Region: () => $injector.get('OvhApiCloudProjectAiCapabilitiesTrainingRegion'),
PresetImage: () => $injector.get('OvhApiCloudProjectAiCapabilitiesTrainingPresetImage'),
Feature: () => $injector.get('OvhApiCloudProjectAiCapabilitiesTrainingFeature'),
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiCapabilitiesTrainingFeature', ($injector) => ({
v6: () => $injector.get('OvhApiCloudProjectAiCapabilitiesTrainingFeatureV6'),
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiCapabilitiesTrainingFeatureV6', ($resource) => {
const resource = $resource('/cloud/project/:serviceName/ai/capabilities/training/feature', {
serviceName: '@serviceName',
});

return resource;
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiCapabilitiesTrainingPresetImage', ($injector) => ({
v6: () => $injector.get('OvhApiCloudProjectAiCapabilitiesTrainingPresetImageV6'),
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiCapabilitiesTrainingPresetImageV6', ($resource) => {
const resource = $resource('/cloud/project/:serviceName/ai/capabilities/training/presetImage', {
serviceName: '@serviceName',
});

return resource;
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiCapabilitiesTrainingRegion', ($injector) => ({
v6: () => $injector.get('OvhApiCloudProjectAiCapabilitiesTrainingRegionV6'),
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiCapabilitiesTrainingRegionV6', ($resource) => {
const resource = $resource('/cloud/project/:serviceName/ai/capabilities/training/region', {
serviceName: '@serviceName',
});

return resource;
});
1 change: 1 addition & 0 deletions src/api/cloud/project/ai/cloud-project-ai.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ angular
.service('OvhApiCloudProjectAi', ($injector) => ({
Serving: () => $injector.get('OvhApiCloudProjectAiServing'),
Capabilities: () => $injector.get('OvhApiCloudProjectAiCapabilities'),
Training: () => $injector.get('OvhApiCloudProjectAiTraining'),
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiTrainingAuthorization', ($injector) => ({
v6: () => $injector.get('OvhApiCloudProjectAiTrainingAuthorizationV6'),
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiTrainingAuthorizationV6', ($resource) => $resource('/cloud/project/:serviceName/ai/training/authorization', {
serviceName: '@serviceName',
}, {
save: {
method: 'POST',
hasBody: false,
},
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiTraining', ($injector) => ({
Job: () => $injector.get('OvhApiCloudProjectAiTrainingJob'),
Data: () => $injector.get('OvhApiCloudProjectAiTrainingData'),
Registry: () => $injector.get('OvhApiCloudProjectAiTrainingRegistry'),
Authorization: () => $injector.get('OvhApiCloudProjectAiTrainingAuthorization'),
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiTrainingData', ($injector) => ({
v6: () => $injector.get('OvhApiCloudProjectAiTrainingDataV6'),
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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',
},
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiTrainingJob', ($injector) => ({
v6: () => $injector.get('OvhApiCloudProjectAiTrainingJobV6'),
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiTrainingJobV6', ($resource) => $resource('/cloud/project/:serviceName/ai/training/job/:jobId', {
serviceName: '@serviceName',
jobId: '@jobId',
}, {
kill: {
method: 'POST',
url: '/cloud/project/:serviceName/ai/training/job/:jobId/kill',
},
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiTrainingRegistry', ($injector) => ({
v6: () => $injector.get('OvhApiCloudProjectAiTrainingRegistryV6'),
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiTrainingRegistryV6', ($resource) => {
const resource = $resource('/cloud/project/:serviceName/ai/training/registry', {
serviceName: '@serviceName',
});
return resource;
});

0 comments on commit ec6a7ac

Please sign in to comment.