updateAlias(serviceName, alias) {
    return this.AliasApiService.update({ serviceName, aliasId: alias.aliasId },
      {
        description: alias.description,
        optionId: alias.optionId,
      })
      .$promise
      .then((operation) => {
        this.resetAllCache();
        return this.LogsHelperService.handleOperation(serviceName, operation.data || operation, 'logs_aliases_update_success', { aliasName: alias.name });
      })
      .catch(err => this.LogsHelperService.handleError('logs_aliases_update_error', err, { aliasName: alias.name }));
  }
/**
   * update alias
   *
   * @param {any} serviceName
   * @param {any} alias, alias object to be updated
   * @returns promise which will be resolve to operation object
   * @memberof LogsAliasesService
   */
update alias
@param {any} serviceName
@param {any} alias, alias object to be updated
@returns promise which will be resolve to operation object
@memberof LogsAliasesService
update alias @param { any } serviceName @param { any } alias alias object to be updated @returns promise which will be resolve to operation object @memberof LogsAliasesService
updateAlias(serviceName, alias) {
    return this.AliasApiService.update({ serviceName, aliasId: alias.aliasId },
      {
        description: alias.description,
        optionId: alias.optionId,
      })
      .$promise
      .then((operation) => {
        this.resetAllCache();
        return this.LogsHelperService.handleOperation(serviceName, operation.data || operation, 'logs_aliases_update_success', { aliasName: alias.name });
      })
      .catch(err => this.LogsHelperService.handleError('logs_aliases_update_error', err, { aliasName: alias.name }));
  }
updateAlias ( serviceName , alias ) { return this . AliasApiService . update ( { serviceName , aliasId : alias . aliasId } , { description : alias . description , optionId : alias . optionId , } ) . $promise . then ( ( operation ) => { this . resetAllCache ( ) ; return this . LogsHelperService . handleOperation ( serviceName , operation . data || operation , 'logs_aliases_update_success' , { aliasName : alias . name } ) ; } ) . catch ( err => this . LogsHelperService . handleError ( 'logs_aliases_update_error' , err , { aliasName : alias . name } ) ) ; }
update alias
 @param {any} serviceName
 @param {any} alias, alias object to be updated
 @returns promise which will be resolve to operation object
 @memberof LogsAliasesService
update alias @param { any } serviceName @param { any } alias alias object to be updated @returns promise which will be resolve to operation object @memberof LogsAliasesService