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.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.15.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.14.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.14.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.14.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.14.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.12.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.11.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
katello-4.11.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js