Sha256: 2818d04aea1eba28da6db15e0f02a4dc43537d139e2d49cc22ed8c87db339cd9

Contents?: true

Size: 960 Bytes

Versions: 199

Compression:

Stored size: 960 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

199 entries across 199 versions & 1 rubygems

Version Path
katello-4.2.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.0.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.1.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.1.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.18.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.1.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.0.1.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.18.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.1.0.rc2.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.1.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.0.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-3.18.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.1.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.1.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.1.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.0.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.0.0.rc3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js