function octaviaBarbicanAPI(apiService, toastService) {
    var service = {
      getCertificates: getCertificates,
      getSecrets: getSecrets
    };

    return service;

    ///////////////

    // SSL Certificate Containers

    /**
     * @name horizon.app.core.openstack-service-api.octavia-barbican.getCertificates
     * @description
     * Get a list of SSL certificate containers.
     *
     * @param {boolean} quiet
     * The listing result is an object with property "items". Each item is
     * a certificate container.
     */

    function getCertificates(quiet) {
      var promise = apiService.get('/api/octavia-barbican/certificates/');
      return quiet ? promise : promise.error(function handleError() {
        toastService.add('error', gettext('Unable to retrieve SSL certificates.'));
      });
    }

    // Secrets

    /**
     * @name horizon.app.core.openstack-service-api.octavia-barbican.getSecrets
     * @description
     * Get a list of secrets.
     *
     * @param {boolean} quiet
     * The listing result is an object with property "items". Each item is
     * a secret.
     */

    function getSecrets(quiet) {
      var promise = apiService.get('/api/octavia-barbican/secrets/');
      return quiet ? promise : promise.error(function handleError() {
        toastService.add('error', gettext('Unable to retrieve secrets.'));
      });
    }

  }
/**
   * @ngdoc service
   * @name horizon.app.core.openstack-service-api.octavia-barbican
   * @description Provides direct pass through to barbican with NO abstraction.
   * @param apiService The horizon core API service.
   * @param toastService The horizon toast service.
   * @returns The octavia barbican service API.
   */
@ngdoc service
@name horizon.app.core.openstack-service-api.octavia-barbican
@description Provides direct pass through to barbican with NO abstraction.
@param apiService The horizon core API service.
@param toastService The horizon toast service.
@returns The octavia barbican service API.
@ngdoc service @name horizon . app . core . openstack - service - api . octavia - barbican @description Provides direct pass through to barbican with NO abstraction . @param apiService The horizon core API service . @param toastService The horizon toast service . @returns The octavia barbican service API .
function octaviaBarbicanAPI(apiService, toastService) {
    var service = {
      getCertificates: getCertificates,
      getSecrets: getSecrets
    };
    return service;
    function getCertificates(quiet) {
      var promise = apiService.get('/api/octavia-barbican/certificates/');
      return quiet ? promise : promise.error(function handleError() {
        toastService.add('error', gettext('Unable to retrieve SSL certificates.'));
      });
    }
    function getSecrets(quiet) {
      var promise = apiService.get('/api/octavia-barbican/secrets/');
      return quiet ? promise : promise.error(function handleError() {
        toastService.add('error', gettext('Unable to retrieve secrets.'));
      });
    }
  }
function octaviaBarbicanAPI ( apiService , toastService ) { var service = { getCertificates : getCertificates , getSecrets : getSecrets } ; return service ; function getCertificates ( quiet ) { var promise = apiService . get ( '/api/octavia-barbican/certificates/' ) ; return quiet ? promise : promise . error ( function handleError ( ) { toastService . add ( 'error' , gettext ( 'Unable to retrieve SSL certificates.' ) ) ; } ) ; } function getSecrets ( quiet ) { var promise = apiService . get ( '/api/octavia-barbican/secrets/' ) ; return quiet ? promise : promise . error ( function handleError ( ) { toastService . add ( 'error' , gettext ( 'Unable to retrieve secrets.' ) ) ; } ) ; } }
@ngdoc service
 @name horizon.app.core.openstack-service-api.octavia-barbican
 @description Provides direct pass through to barbican with NO abstraction.
@ngdoc service @name horizon . app . core . openstack - service - api . octavia - barbican @description Provides direct pass through to barbican with NO abstraction .
/////////////// // SSL Certificate Containers /**
     * @name horizon.app.core.openstack-service-api.octavia-barbican.getCertificates
     * @description
     * Get a list of SSL certificate containers.
     *
     * @param {boolean} quiet
     * The listing result is an object with property "items". Each item is
     * a certificate container.
     */ // Secrets /**
     * @name horizon.app.core.openstack-service-api.octavia-barbican.getSecrets
     * @description
     * Get a list of secrets.
     *
     * @param {boolean} quiet
     * The listing result is an object with property "items". Each item is
     * a secret.
     */