| 1 | package WebService::CloudFlare::Host::Request::UserCreate; | ||
| 2 | use Moose; | ||
| 3 | with 'WebService::CloudFlare::Host::Role::Request'; | ||
| 4 | |||
| 5 | has 'req_map' => ( | ||
| 6 | is => 'ro', | ||
| 7 | isa => 'HashRef[Str]', | ||
| 8 | init_arg => undef, | ||
| 9 | default => sub {{ | ||
| 10 | act => 'action', | ||
| 11 | cloudflare_email => 'email', | ||
| 12 | cloudflare_pass => 'pass', | ||
| 13 | cloudflare_username => 'user', | ||
| 14 | unique_id => 'unique_id', | ||
| 15 | clobber_unique_id => 'clobber', | ||
| 16 | }}, | ||
| 17 | ); | ||
| 18 | |||
| 19 | has 'action' => ( | ||
| 20 | is => 'ro', | ||
| 21 | isa => 'Str', | ||
| 22 | init_arg => undef, | ||
| 23 | default => 'user_create' | ||
| 24 | ); | ||
| 25 | |||
| 26 | |||
| 27 | has [qw/ email pass /] | ||
| 28 | => (is => 'ro', isa => 'Str', required => 1); | ||
| 29 | |||
| 30 | has [qw/user unique_id clobber/] | ||
| 31 | => (is => 'ro', isa => 'Str', required => 0); | ||
| 32 | |||
| 33 | 1; |