NAME

WWW::VastAI::Role::OperationMap - Central Vast.ai API operation mapping used by WWW::VastAI

VERSION

version 0.001

DESCRIPTION

This role keeps the Vast.ai endpoint definitions in one place. It follows the same broad idea as an OpenAPI-backed client, but uses a lightweight static operation map instead of loading a full OpenAPI schema at runtime.

METHODS

request_op

my $data = $client->request_op(
    'getInstance',
    path => { id => 12345 },
);

Dispatches a named API operation using the configured HTTP role. Operations can target the standard /api/v0 base, /api/v1, or the run.vast.ai service.

SUPPORT

Issues

Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-www-vastai/issues.

IRC

Join #kubernetes on irc.perl.org or message Getty directly.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <torsten@raudssus.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.