Sha256: dfd3956ae786ed188269c21d01ec47f7302bfdf4041b1be35149b1e572065c19

Contents?: true

Size: 912 Bytes

Versions: 134

Compression:

Stored size: 912 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', 'CurrentOrganization', function (BastionResource, CurrentOrganization) {

        return BastionResource('katello/api/v2/host_collections/:id/:action', {id: '@id', 'organization_id': CurrentOrganization}, {
            get: {method: 'GET', params: {fields: 'full'}},
            update: {method: 'PUT'},
            copy: {method: 'POST', params: {action: 'copy'}},
            removeHosts: {method: 'PUT', params: {action: 'remove_hosts'}},
            addHosts: {method: 'PUT', params: {action: 'add_hosts'}},
            autocomplete: {method: 'GET', isArray: true, params: {id: 'auto_complete_search'}}
        });

    }]
);

Version data entries

134 entries across 134 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.15.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.14.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.14.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.14.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.14.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.12.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.11.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-4.11.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js