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.container-registry): add plan and capabilities (#275)
Browse files Browse the repository at this point in the history
Signed-off-by: Marie JONES <[email protected]>
  • Loading branch information
marie-j authored and FredericEspiau committed Jan 28, 2020
1 parent 7aad615 commit a44663c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ angular.module('ovh-api-services').service('OvhApiCloudProjectContainerRegistry'
v6() {
return $injector.get('OvhApiCloudProjectContainerRegistryV6');
},
Plan() {
return $injector.get('OvhApiCloudProjectContainerRegistryPlan');
},
Users() {
return $injector.get('OvhApiCloudProjectContainerRegistryUsers');
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ angular.module('ovh-api-services').service('OvhApiCloudProjectContainerRegistryV
method: 'DELETE',
interceptor,
},
getCapabilities: {
method: 'GET',
url: '/cloud/project/:serviceName/capabilities/containerRegistry',
},
});

registryResource.resetCache = function () {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular.module('ovh-api-services').service('OvhApiCloudProjectContainerRegistryPlan', ($injector) => ({
v6() {
return $injector.get('OvhApiCloudProjectContainerRegistryPlanV6');
},
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
angular.module('ovh-api-services').service('OvhApiCloudProjectContainerRegistryPlanV6', ($resource) => $resource('/cloud/project/:serviceName/containerRegistry/:registryID/plan', {
serviceName: '@serviceName',
registryID: '@registryID',
}, {
update: {
method: 'PUT',
},
getCapabilities: {
method: 'GET',
url: '/cloud/project/:serviceName/containerRegistry/:registryID/capabilities/plan',
},
}));

0 comments on commit a44663c

Please sign in to comment.