updateGatewayModelWithHttpInfo method
Future<Response>
updateGatewayModelWithHttpInfo(
- String id,
- GatewayModelsRequestBody GatewayModelsRequestBody
Update an existing gateway model by ID
Note: This method returns the HTTP Response.
Parameters:
-
String id (required): Path param: id
-
GatewayModelsRequestBodyGatewayModelsRequestBody (required):
Implementation
Future<Response> updateGatewayModelWithHttpInfo(
String id,
GatewayModelsRequestBody GatewayModelsRequestBody,
) async {
// ignore: prefer_const_declarations
final path = r'/ga/gateway-models/{id}'.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = GatewayModelsRequestBody;
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,
);
}