createStream(serviceName, stream) {
    return this.StreamsApiService.create({ serviceName },
      {
        coldStorageCompression: stream.coldStorageCompression,
        coldStorageContent: stream.coldStorageContent,
        coldStorageEnabled: stream.coldStorageEnabled,
        coldStorageNotifyEnabled: stream.coldStorageNotifyEnabled,
        coldStorageRetention: stream.coldStorageRetention,
        coldStorageTarget: stream.coldStorageTarget,
        description: stream.description,
        indexingEnabled: stream.indexingEnabled,
        optionId: stream.optionId,
        title: stream.title,
        webSocketEnabled: stream.webSocketEnabled,
      })
      .$promise
      .then((operation) => {
        this.resetAllCache();
        return this.LogsHelperService.handleOperation(serviceName, operation.data || operation, 'logs_stream_create_success', { streamName: stream.title });
      })
      .catch(err => this.LogsHelperService.handleError('logs_stream_create_error', err, { streamName: stream.title }));
  }
/**
   * create new stream
   *
   * @param {any} serviceName
   * @param {any} stream, stream object to be created
   * @returns promise which will be resolve to operation object
   * @memberof LogsStreamsService
   */
create new stream
@param {any} serviceName
@param {any} stream, stream object to be created
@returns promise which will be resolve to operation object
@memberof LogsStreamsService
create new stream @param { any } serviceName @param { any } stream stream object to be created @returns promise which will be resolve to operation object @memberof LogsStreamsService
createStream(serviceName, stream) {
    return this.StreamsApiService.create({ serviceName },
      {
        coldStorageCompression: stream.coldStorageCompression,
        coldStorageContent: stream.coldStorageContent,
        coldStorageEnabled: stream.coldStorageEnabled,
        coldStorageNotifyEnabled: stream.coldStorageNotifyEnabled,
        coldStorageRetention: stream.coldStorageRetention,
        coldStorageTarget: stream.coldStorageTarget,
        description: stream.description,
        indexingEnabled: stream.indexingEnabled,
        optionId: stream.optionId,
        title: stream.title,
        webSocketEnabled: stream.webSocketEnabled,
      })
      .$promise
      .then((operation) => {
        this.resetAllCache();
        return this.LogsHelperService.handleOperation(serviceName, operation.data || operation, 'logs_stream_create_success', { streamName: stream.title });
      })
      .catch(err => this.LogsHelperService.handleError('logs_stream_create_error', err, { streamName: stream.title }));
  }
createStream ( serviceName , stream ) { return this . StreamsApiService . create ( { serviceName } , { coldStorageCompression : stream . coldStorageCompression , coldStorageContent : stream . coldStorageContent , coldStorageEnabled : stream . coldStorageEnabled , coldStorageNotifyEnabled : stream . coldStorageNotifyEnabled , coldStorageRetention : stream . coldStorageRetention , coldStorageTarget : stream . coldStorageTarget , description : stream . description , indexingEnabled : stream . indexingEnabled , optionId : stream . optionId , title : stream . title , webSocketEnabled : stream . webSocketEnabled , } ) . $promise . then ( ( operation ) => { this . resetAllCache ( ) ; return this . LogsHelperService . handleOperation ( serviceName , operation . data || operation , 'logs_stream_create_success' , { streamName : stream . title } ) ; } ) . catch ( err => this . LogsHelperService . handleError ( 'logs_stream_create_error' , err , { streamName : stream . title } ) ) ; }
create new stream
 @param {any} serviceName
 @param {any} stream, stream object to be created
 @returns promise which will be resolve to operation object
 @memberof LogsStreamsService
create new stream @param { any } serviceName @param { any } stream stream object to be created @returns promise which will be resolve to operation object @memberof LogsStreamsService