patchLambda method

Future<ClientResponse<LambdaResponse, Errors>> patchLambda(
  1. String lambdaId,
  2. LambdaRequest request
)

Updates, via PATCH, the lambda with the given Id.

@param {String} lambdaId The Id of the lambda to update. @param {LambdaRequest} request The request that contains just the new lambda information. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<LambdaResponse, Errors>> patchLambda(
    String lambdaId, LambdaRequest request) {
  return _start<LambdaResponse, Errors>()
      .withUri('/api/lambda')
      .withUriSegment(lambdaId)
      .withJSONBody(request)
      .withMethod('PATCH')
      .withResponseHandler(
          defaultResponseHandlerBuilder((d) => LambdaResponse.fromJson(d)))
      .go();
}