deleteLink method
Deletes an existing link. You must first disassociate the link from any devices and customer gateways.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter globalNetworkId :
The ID of the global network.
Parameter linkId :
The ID of the link.
Implementation
Future<DeleteLinkResponse> deleteLink({
required String globalNetworkId,
required String linkId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/global-networks/${Uri.encodeComponent(globalNetworkId)}/links/${Uri.encodeComponent(linkId)}',
exceptionFnMap: _exceptionFns,
);
return DeleteLinkResponse.fromJson(response);
}