GoogleFunctionRequestHelper

Contains methods used to get correlationIds, commands and bodies from the Google Function requests.

Description

The GoogleFunctionRequestHelper class contains methods used to get correlationIds, commands and bodies from the Google Function requests.

Static methods

getCorrelationId

Returns a correlationId from the Google Function request.

public static getCorrelationId(req: any): string

  • req: any - Google Function request.
  • returns: string - returned correlationId from request.

getCommand

Returns a command from the Google Function request.

public static getCommand(req: any): string

  • req: any - Google Function request.
  • returns: string - returned command from request.

getParametrs

Returns a body from the Google Function http request.

public static getParametrs(req: any): Parameters

  • req: any - Google Function request.
  • returns: Parameters - returned body from request.