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.serving): add serving engine endpoints (#266)
Browse files Browse the repository at this point in the history
Signed-off-by: acarreir <[email protected]>
  • Loading branch information
XciD authored and marie-j committed Dec 13, 2019
1 parent 7012032 commit 84e7f78
Show file tree
Hide file tree
Showing 16 changed files with 122 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api/cloud/project/cloud-project.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ angular.module('ovh-api-services').service('OvhApiCloudProject', ($injector, $ca
Io() {
return $injector.get('OvhApiCloudProjectIo');
},
Serving() {
return $injector.get('OvhApiCloudProjectServing');
},
Ip() {
return $injector.get('OvhApiCloudProjectIp');
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiServingCapabilities', ($injector) => ({
Region: () => $injector.get('OvhApiCloudProjectAiServingCapabilitiesRegion'),
PresetImage: () => $injector.get('OvhApiCloudProjectAiServingCapabilitiesPresetImage'),
Flavor: () => $injector.get('OvhApiCloudProjectAiServingCapabilitiesFlavor'),
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiServingCapabilitiesFlavor', ($injector) => ({
v6: () => $injector.get('OvhApiCloudProjectAiServingCapabilitiesFlavorV6'),
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiServingCapabilitiesFlavorV6', ($resource) => {
const resource = $resource('/cloud/project/:serviceName/ai/serving/:namespaceId/capabilities/flavor', {
serviceName: '@serviceName',
namespaceId: '@namespaceId',
});

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

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

return resource;
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiServing', ($injector) => ({
v6: () => $injector.get('OvhApiCloudProjectAiServingV6'),
Model: () => $injector.get('OvhApiCloudProjectAiServingModel'),
Token: () => $injector.get('OvhApiCloudProjectAiServingToken'),
Registry: () => $injector.get('OvhApiCloudProjectAiServingRegistry'),
Capabilities: () => $injector.get('OvhApiCloudProjectAiServingCapabilities'),
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiServingV6', ($resource) => $resource('/cloud/project/:serviceName/ai/serving/:namespaceId', {
serviceName: '@serviceName',
namespaceId: '@namespaceId',
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiServingModel', ($injector) => ({
v6: () => $injector.get('OvhApiCloudProjectAiServingModelV6'),
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiServingModelV6', ($resource) => {
const resource = $resource('/cloud/project/:serviceName/ai/serving/:namespaceId/model/:modelId', {
serviceName: '@serviceName',
namespaceId: '@namespaceId',
modelId: '@modelId',
}, {
edit: {
method: 'PUT',
},
});
return resource;
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiServingRegistry', ($injector) => ({
v6: () => $injector.get('OvhApiCloudProjectAiServingRegistryV6'),
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiServingRegistryV6', ($resource) => {
const resource = $resource('/cloud/project/:serviceName/ai/serving/:namespaceId/registry', {
serviceName: '@serviceName',
namespaceId: '@namespaceId',
});
return resource;
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiServingToken', ($injector) => ({
v6: () => $injector.get('OvhApiCloudProjectAiServingTokenV6'),
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
angular
.module('ovh-api-services')
.service('OvhApiCloudProjectAiServingTokenV6', ($resource) => {
const resource = $resource('/cloud/project/:serviceName/ai/serving/:namespaceId/token/:tokenId', {
serviceName: '@serviceName',
namespaceId: '@namespaceId',
tokenId: '@tokenId',
}, {
edit: {
method: 'PUT',
},
});
return resource;
});

0 comments on commit 84e7f78

Please sign in to comment.