Sha256: d12e5863927bbec0cb3ea7827641f5004ee275e4c662b6002eed68bdc5eaa58f

Contents?: true

Size: 961 Bytes

Versions: 18

Compression:

Stored size: 961 Bytes

Contents

/**
 * @ngdoc factory
 * @name  Bastion.sync-plans.factory:SyncPlan
 *
 * @requires BastionResource
 * @requires CurrentOrganization
 *
 * @description
 *   Provides a BastionResource for product or list of repositories.
 */
angular.module('Bastion.sync-plans').factory('SyncPlan',
    ['BastionResource', 'CurrentOrganization',
    function (BastionResource, CurrentOrganization) {

        return BastionResource('/katello/api/v2/organizations/:organizationId/sync_plans/:id/:action',
            {id: '@id', organizationId: CurrentOrganization}, {
                autocomplete: {method: 'GET', isArray: true, params: {id: 'auto_complete_search'}},
                update: { method: 'PUT' },
                sync: { method: 'PUT', params: {action: 'sync'}},
                addProducts: {method: 'PUT', params: {action: 'add_products'}},
                removeProducts: {method: 'PUT', params: {action: 'remove_products'}}
            }
        );

    }]
);

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
katello-3.5.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.4.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.4.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.4.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.4.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.3.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.3.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.3.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.3.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.3.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.3.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.3.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js