| 603 | } |
| 604 | |
| 605 | arrow::Result<FlightEndpoint> FlightClient::RenewFlightEndpoint( |
| 606 | const FlightCallOptions& options, const RenewFlightEndpointRequest& request) { |
| 607 | ARROW_ASSIGN_OR_RAISE(auto body, request.SerializeToBuffer()); |
| 608 | Action action{ActionType::kRenewFlightEndpoint.type, std::move(body)}; |
| 609 | ARROW_ASSIGN_OR_RAISE(auto stream, DoAction(options, action)); |
| 610 | ARROW_ASSIGN_OR_RAISE(auto result, stream->Next()); |
| 611 | ARROW_ASSIGN_OR_RAISE(auto renewed_endpoint, |
| 612 | FlightEndpoint::Deserialize(std::string_view(*result->body))); |
| 613 | ARROW_RETURN_NOT_OK(stream->Drain()); |
| 614 | return renewed_endpoint; |
| 615 | } |
| 616 | |
| 617 | arrow::Result<std::vector<ActionType>> FlightClient::ListActions( |
| 618 | const FlightCallOptions& options) { |