updateWirelessGateway method

Future<void> updateWirelessGateway({
  1. required String id,
  2. String? description,
  3. List<List<String>>? joinEuiFilters,
  4. double? maxEirp,
  5. String? name,
  6. List<String>? netIdFilters,
})

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,
  );
}