| 1 | package WebService::CloudFlare::Host::Request::UserLookup; | ||
| 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 | 'unique_id' => 'unique_id', | ||
| 13 | }}, | ||
| 14 | ); | ||
| 15 | |||
| 16 | has 'action' => ( | ||
| 17 | is => 'ro', | ||
| 18 | isa => 'Str', | ||
| 19 | init_arg => undef, | ||
| 20 | default => 'user_lookup' | ||
| 21 | ); | ||
| 22 | |||
| 23 | |||
| 24 | has [qw/ email unique_id /] | ||
| 25 | => (is => 'ro', isa => 'Str', required => 0); | ||
| 26 | |||
| 27 | 1; |