updateWirelessGateway method
Updates properties of a wireless gateway.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter id :
The ID of the resource to update.
Parameter description :
A new description of the resource.
Parameter maxEirp :
The MaxEIRP value.
Parameter name :
The new name of the resource.
Implementation
Future<void> updateWirelessGateway({
required String id,
String? description,
List<List<String>>? joinEuiFilters,
double? maxEirp,
String? name,
List<String>? netIdFilters,
}) async {
_s.validateNumRange(
'maxEirp',
maxEirp,
0,
30,
);
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
if (joinEuiFilters != null) 'JoinEuiFilters': joinEuiFilters,
if (maxEirp != null) 'MaxEirp': maxEirp,
if (name != null) 'Name': name,
if (netIdFilters != null) 'NetIdFilters': netIdFilters,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/wireless-gateways/${Uri.encodeComponent(id)}',
exceptionFnMap: _exceptionFns,
);
}