updateGatewayWithHttpInfo method

Future<Response> updateGatewayWithHttpInfo(
  1. String id,
  2. GatewayRequestBody GatewayRequestBody
)

Update a gateway by ID

Note: This method returns the HTTP Response.

Parameters:

  • String id (required): Path param: id

  • GaGatewaysPostRequest gaGatewaysPostRequest (required):

Implementation

Future<Response> updateGatewayWithHttpInfo(
  String id,
  GatewayRequestBody GatewayRequestBody,
) async {
  // ignore: prefer_const_declarations
  final path = r'/ga/gateways/{id}'.replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody = GatewayRequestBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'PUT',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}