CloudFunctionRequestHelper

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

Description

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

Static methods

getTraceId

Returns a traceId from the Google Function request.

staticmethod get_trace_id(req: flask.Request): str

  • req: flask.Request - Google Function request.
  • returns: str - returned traceId from request.

get_command

Returns a command from the Google Function request.

staticmethod get_command(req: flask.Request): str

  • req: flask.Request - Google Function request.
  • returns: str - returned command from request.

get_parameters

Returns a body from the Google Function http request.

staticmethod get_parameters(req: flask.Request): Parameters