Sha256: f94dd6d936628a401ab1edc8169767dc2b44364bde7952dd9b7b9b7fc038d9a8

Contents?: true

Size: 1.05 KB

Versions: 199

Compression:

Stored size: 1.05 KB

Contents

/**
 * @ngdoc service
 * @name  Bastion.content-hosts.factory:ContentHost
 *
 * @requires BastionResource
 *
 * @description
 *   Provides a BastionResource for one or more content hosts.
 */
angular.module('Bastion.hosts').factory('HostSubscription',
    ['BastionResource', function (BastionResource) {

        return BastionResource('api/v2/hosts/:id/subscriptions/:action/', {id: '@id'}, {
            events: {method: 'GET', params: {action: 'events'}},
            autoAttach: {method: 'PUT', params: {action: 'auto_attach'}},
            removeSubscriptions: {method: 'put', isArray: false, params: {action: 'remove_subscriptions'}},
            addSubscriptions: {method: 'put', isArray: false, params: {action: 'add_subscriptions'}},
            repositorySets: {method: 'get', isArray: false, params: {action: 'product_content'}},
            contentOverride: {method: 'put', isArray: false, params: {action: 'content_override'}},
            releaseVersions: {method: 'get', isArray: false, params: {action: 'available_release_versions'}}
        });

    }]
);

Version data entries

199 entries across 199 versions & 1 rubygems

Version Path
katello-4.10.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.9.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.10.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.10.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.8.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.9.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.8.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.9.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.7.6 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.8.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.9.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.9.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.8.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.7.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.8.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.8.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.7.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.8.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.7.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-4.7.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js