mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
28 lines
433 B
Perl
28 lines
433 B
Perl
package Percona::WebAPI::Resource::Agent;
|
|
|
|
use Mo;
|
|
|
|
with 'Percona::WebAPI::Representation::JSON';
|
|
with 'Percona::WebAPI::Representation::HashRef';
|
|
|
|
has 'id' => (
|
|
is => 'ro',
|
|
isa => 'Str',
|
|
required => 1,
|
|
);
|
|
|
|
has 'hostname' => (
|
|
is => 'ro',
|
|
isa => 'Str',
|
|
required => 1,
|
|
);
|
|
|
|
has 'versions' => (
|
|
is => 'ro',
|
|
isa => 'Maybe[HashRef]',
|
|
required => 0,
|
|
default => undef,
|
|
);
|
|
|
|
1;
|