createAlias(serviceName, alias) {
    return this.AliasApiService.create({ serviceName },
      {
        description: alias.description,
        optionId: alias.optionId,
        suffix: alias.suffix,
      })
      .$promise
      .then((operation) => {
        this.resetAllCache();
        return this.LogsHelperService.handleOperation(serviceName, operation.data || operation, 'logs_aliases_create_success', { aliasName: alias.suffix });
      })
      .catch(err => this.LogsHelperService.handleError('logs_aliases_create_error', err, { aliasName: alias.suffix }));
  }
/**
   * create new alias
   *
   * @param {any} serviceName
   * @param {any} alias, alias object to be created
   * @returns promise which will be resolve to operation object
   * @memberof LogsAliasesService
   */
create new alias
@param {any} serviceName
@param {any} alias, alias object to be created
@returns promise which will be resolve to operation object
@memberof LogsAliasesService
create new alias @param { any } serviceName @param { any } alias alias object to be created @returns promise which will be resolve to operation object @memberof LogsAliasesService
createAlias(serviceName, alias) {
    return this.AliasApiService.create({ serviceName },
      {
        description: alias.description,
        optionId: alias.optionId,
        suffix: alias.suffix,
      })
      .$promise
      .then((operation) => {
        this.resetAllCache();
        return this.LogsHelperService.handleOperation(serviceName, operation.data || operation, 'logs_aliases_create_success', { aliasName: alias.suffix });
      })
      .catch(err => this.LogsHelperService.handleError('logs_aliases_create_error', err, { aliasName: alias.suffix }));
  }
createAlias ( serviceName , alias ) { return this . AliasApiService . create ( { serviceName } , { description : alias . description , optionId : alias . optionId , suffix : alias . suffix , } ) . $promise . then ( ( operation ) => { this . resetAllCache ( ) ; return this . LogsHelperService . handleOperation ( serviceName , operation . data || operation , 'logs_aliases_create_success' , { aliasName : alias . suffix } ) ; } ) . catch ( err => this . LogsHelperService . handleError ( 'logs_aliases_create_error' , err , { aliasName : alias . suffix } ) ) ; }
create new alias
 @param {any} serviceName
 @param {any} alias, alias object to be created
 @returns promise which will be resolve to operation object
 @memberof LogsAliasesService
create new alias @param { any } serviceName @param { any } alias alias object to be created @returns promise which will be resolve to operation object @memberof LogsAliasesService