deleteAlias(serviceName, alias) {
    return this.AliasApiService.delete({ serviceName, aliasId: alias.aliasId }, alias)
      .$promise
      .then((operation) => {
        this.resetAllCache();
        return this.LogsHelperService.handleOperation(serviceName, operation.data || operation, 'logs_aliases_delete_success', { aliasName: alias.name });
      })
      .catch(err => this.LogsHelperService.handleError('logs_aliases_delete_error', err, { aliasName: alias.name }));
  }
/**
   * delete alias
   *
   * @param {any} serviceName
   * @param {any} alias, alias object to be deleted
   * @returns promise which will be resolve to operation object
   * @memberof LogsAliasesService
   */
delete alias
@param {any} serviceName
@param {any} alias, alias object to be deleted
@returns promise which will be resolve to operation object
@memberof LogsAliasesService
delete alias @param { any } serviceName @param { any } alias alias object to be deleted @returns promise which will be resolve to operation object @memberof LogsAliasesService
deleteAlias(serviceName, alias) {
    return this.AliasApiService.delete({ serviceName, aliasId: alias.aliasId }, alias)
      .$promise
      .then((operation) => {
        this.resetAllCache();
        return this.LogsHelperService.handleOperation(serviceName, operation.data || operation, 'logs_aliases_delete_success', { aliasName: alias.name });
      })
      .catch(err => this.LogsHelperService.handleError('logs_aliases_delete_error', err, { aliasName: alias.name }));
  }
deleteAlias ( serviceName , alias ) { return this . AliasApiService . delete ( { serviceName , aliasId : alias . aliasId } , alias ) . $promise . then ( ( operation ) => { this . resetAllCache ( ) ; return this . LogsHelperService . handleOperation ( serviceName , operation . data || operation , 'logs_aliases_delete_success' , { aliasName : alias . name } ) ; } ) . catch ( err => this . LogsHelperService . handleError ( 'logs_aliases_delete_error' , err , { aliasName : alias . name } ) ) ; }
delete alias
 @param {any} serviceName
 @param {any} alias, alias object to be deleted
 @returns promise which will be resolve to operation object
 @memberof LogsAliasesService
delete alias @param { any } serviceName @param { any } alias alias object to be deleted @returns promise which will be resolve to operation object @memberof LogsAliasesService