Sha256: dab5657d01b9033c9af0e195327371d0c89db4b37387f7d843abaf4eceedfd3b

Contents?: true

Size: 916 Bytes

Versions: 9

Compression:

Stored size: 916 Bytes

Contents

/**
 * @ngdoc factory
 * @name  Bastion.host-collections.factory:HostCollection
 *
 * @requires BastionResource
 *
 * @description
 *   Provides a BastionResource for host collections.
 */
angular.module('Bastion.host-collections').factory('HostCollection',
    ['BastionResource', function (BastionResource) {

        return BastionResource('/katello/api/host_collections/:id/:action', {id: '@id'}, {
            get: {method: 'GET', params: {fields: 'full'}},
            update: {method: 'PUT'},
            copy: {method: 'POST', params: {action: 'copy'}},
            contentHosts: {method: 'GET', params: {action: 'systems'}},
            removeContentHosts: {method: 'PUT', params: {action: 'remove_systems'}},
            addContentHosts: {method: 'PUT', params: {action: 'add_systems'}},
            autocomplete: {method: 'GET', isArray: true, params: {id: 'auto_complete_search'}}
        });

    }]
);

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-2.4.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-2.4.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-2.4.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-2.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-2.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-2.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-2.4.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-2.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-2.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js