setWanConfigWithHttpInfo method
Edit the WAN configuration
Edits the WAN configuration. If the configuration fails, the entire proccess is rolled back and an error will be returned.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> setWanConfigWithHttpInfo(
WanConfig wanConfig, {
String? uuidToken,
}) async {
// ignore: prefer_const_declarations
final path = uuidToken != null
? '${LbSetupEnvironment.getApiEndpoint(iotUuid: uuidToken)}/network/wan/config'
: '/network/wan/config';
// ignore: prefer_final_locals
Object? postBody = wanConfig;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}