2020-06-09 02:43:32 +00:00
|
|
|
angular.module('portainer.azure').factory('Subscription', [
|
|
|
|
'$resource',
|
|
|
|
'API_ENDPOINT_ENDPOINTS',
|
|
|
|
'EndpointProvider',
|
|
|
|
function SubscriptionFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
|
|
|
|
'use strict';
|
|
|
|
return $resource(
|
2020-07-20 21:08:20 +00:00
|
|
|
API_ENDPOINT_ENDPOINTS + '/:endpointId/azure/subscriptions/:id',
|
2020-06-09 02:43:32 +00:00
|
|
|
{
|
|
|
|
endpointId: EndpointProvider.endpointID,
|
|
|
|
'api-version': '2016-06-01',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: { method: 'GET' },
|
2020-07-20 21:08:20 +00:00
|
|
|
get: { method: 'GET', params: { id: '@id' } },
|
2020-06-09 02:43:32 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
},
|
|
|
|
]);
|