diff --git a/src/api/cloud/project/containerRegistry/cloud-project-containerRegistry.service.js b/src/api/cloud/project/containerRegistry/cloud-project-containerRegistry.service.js index 27043101..0eec14dc 100644 --- a/src/api/cloud/project/containerRegistry/cloud-project-containerRegistry.service.js +++ b/src/api/cloud/project/containerRegistry/cloud-project-containerRegistry.service.js @@ -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'); }, diff --git a/src/api/cloud/project/containerRegistry/cloud-project-containerRegistry.v6.service.js b/src/api/cloud/project/containerRegistry/cloud-project-containerRegistry.v6.service.js index 4a100b5e..7a1f0d72 100644 --- a/src/api/cloud/project/containerRegistry/cloud-project-containerRegistry.v6.service.js +++ b/src/api/cloud/project/containerRegistry/cloud-project-containerRegistry.v6.service.js @@ -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 () { diff --git a/src/api/cloud/project/containerRegistry/plan/cloud-project-containerRegistry-plan.service.js b/src/api/cloud/project/containerRegistry/plan/cloud-project-containerRegistry-plan.service.js new file mode 100644 index 00000000..d86744f3 --- /dev/null +++ b/src/api/cloud/project/containerRegistry/plan/cloud-project-containerRegistry-plan.service.js @@ -0,0 +1,5 @@ +angular.module('ovh-api-services').service('OvhApiCloudProjectContainerRegistryPlan', ($injector) => ({ + v6() { + return $injector.get('OvhApiCloudProjectContainerRegistryPlanV6'); + }, +})); diff --git a/src/api/cloud/project/containerRegistry/plan/cloud-project-containerRegistry-plan.v6.service.js b/src/api/cloud/project/containerRegistry/plan/cloud-project-containerRegistry-plan.v6.service.js new file mode 100644 index 00000000..635f1ea6 --- /dev/null +++ b/src/api/cloud/project/containerRegistry/plan/cloud-project-containerRegistry-plan.v6.service.js @@ -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', + }, +}));