restorePhoneNumber method

Future<RestorePhoneNumberResponse> restorePhoneNumber({
  1. required String phoneNumberId,
})

Moves a phone number from the Deletion queue back into the phone number Inventory.

May throw BadRequestException. May throw ForbiddenException. May throw NotFoundException. May throw ResourceLimitExceededException. May throw ServiceFailureException. May throw ServiceUnavailableException. May throw ThrottledClientException. May throw UnauthorizedClientException.

Parameter phoneNumberId : The phone number.

Implementation

Future<RestorePhoneNumberResponse> restorePhoneNumber({
  required String phoneNumberId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri:
        '/phone-numbers/${Uri.encodeComponent(phoneNumberId)}?operation=restore',
    exceptionFnMap: _exceptionFns,
  );
  return RestorePhoneNumberResponse.fromJson(response);
}