The ssh method is missing on the pipelines namespace.
Expected:
new Client()->repositories()->workspaces('xyz')->pipelines('repo')->ssh()->keyPair()->...
Actual:

Work around:
use Bitbucket\Api\Repositories\Workspaces\PipelinesConfig\Ssh;
new Ssh($client, 'workspace', 'repo')->keyPair()->...etc