function isActionable(id) {
      return api.getLoadBalancer(id).then(function onLoad(response) {
        if (['ACTIVE', 'ERROR'].indexOf(response.data.provisioning_status) < 0) {
          return $q.reject();
        }
      });
    }
/**
     * @ngdoc method
     * @name horizon.dashboard.project.lbaasv2.loadbalancers.service.isActionable
     * @description Returns a promise that is resolved if the load balancer is in a state that
     * allows for it or child resources to be updated or deleted.
     * @param id The load balancer id.
     * @returns {Promise}
     */
@ngdoc method
@name horizon.dashboard.project.lbaasv2.loadbalancers.service.isActionable
@description Returns a promise that is resolved if the load balancer is in a state that
allows for it or child resources to be updated or deleted.
@param id The load balancer id.
@returns {Promise}
@ngdoc method @name horizon . dashboard . project . lbaasv2 . loadbalancers . service . isActionable @description Returns a promise that is resolved if the load balancer is in a state that allows for it or child resources to be updated or deleted . @param id The load balancer id . @returns { Promise }
function isActionable(id) {
      return api.getLoadBalancer(id).then(function onLoad(response) {
        if (['ACTIVE', 'ERROR'].indexOf(response.data.provisioning_status) < 0) {
          return $q.reject();
        }
      });
    }
function isActionable ( id ) { return api . getLoadBalancer ( id ) . then ( function onLoad ( response ) { if ( [ 'ACTIVE' , 'ERROR' ] . indexOf ( response . data . provisioning_status ) < 0 ) { return $q . reject ( ) ; } } ) ; }
@ngdoc method
 @name horizon.dashboard.project.lbaasv2.loadbalancers.service.isActionable
 @description Returns a promise that is resolved if the load balancer is in a state that
 allows for it or child resources to be updated or deleted.
@ngdoc method @name horizon . dashboard . project . lbaasv2 . loadbalancers . service . isActionable @description Returns a promise that is resolved if the load balancer is in a state that allows for it or child resources to be updated or deleted .