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

feat(cloud.project.serving): add serving engine endpoints #266

Merged
merged 5 commits into from
Dec 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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',
XciD marked this conversation as resolved.
Show resolved Hide resolved
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;
});