Sha256: 44c5063b86162936b8837ba36aae366c7b2febce05a8b77432cc69accfcf2c02

Contents?: true

Size: 1.05 KB

Versions: 19

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'}},
            productContent: {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

19 entries across 19 versions & 1 rubygems

Version Path
katello-3.3.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.3.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.3.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.3.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.3.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.3.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.3.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.2.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.2.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.2.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.2.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.2.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.2.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.1.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.1.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.1.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
katello-3.1.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js