NAME

WWW::Hetzner::Role::HasAction - Entity role exposing a creation action

VERSION

version 0.101

SYNOPSIS

package WWW::Hetzner::Cloud::Server;
use Moo;
with 'WWW::Hetzner::Role::HasAction';

# after create()
print $server->action->command, "\n";       # e.g. "create_server"
print scalar @{ $server->next_actions }, "\n";

DESCRIPTION

Shared attributes for entities whose creation endpoint returns a singular action (and optionally next_actions) alongside the resource itself. The owning API controller populates them from its create response; they are not maintained afterwards.

action

The WWW::Hetzner::Action returned by create, or undef when the API did not emit one. Reflects creation state only: the consuming entity's own refresh method, where it defines one, does not update it.

next_actions

Arrayref of WWW::Hetzner::Action objects returned by create as next_actions. Empty arrayref when the API did not emit any.

SEE ALSO

SUPPORT

Issues

Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-www-hetzner/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.