File Coverage

blib/lib/Paws/WorkDocs/CreateUser.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::WorkDocs::CreateUser;
3 1     1   668 use Moose;
  1         4  
  1         12  
4             has AuthenticationToken => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'Authentication');
5             has EmailAddress => (is => 'ro', isa => 'Str');
6             has GivenName => (is => 'ro', isa => 'Str', required => 1);
7             has OrganizationId => (is => 'ro', isa => 'Str');
8             has Password => (is => 'ro', isa => 'Str', required => 1);
9             has StorageRule => (is => 'ro', isa => 'Paws::WorkDocs::StorageRuleType');
10             has Surname => (is => 'ro', isa => 'Str', required => 1);
11             has TimeZoneId => (is => 'ro', isa => 'Str');
12             has Username => (is => 'ro', isa => 'Str', required => 1);
13              
14 1     1   11353 use MooseX::ClassAttribute;
  1         4  
  1         11  
15              
16             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateUser');
17             class_has _api_uri => (isa => 'Str', is => 'ro', default => '/api/v1/users');
18             class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
19             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::WorkDocs::CreateUserResponse');
20             class_has _result_key => (isa => 'Str', is => 'ro');
21             1;
22              
23             ### main pod documentation begin ###
24              
25             =head1 NAME
26              
27             Paws::WorkDocs::CreateUser - Arguments for method CreateUser on Paws::WorkDocs
28              
29             =head1 DESCRIPTION
30              
31             This class represents the parameters used for calling the method CreateUser on the
32             Amazon WorkDocs service. Use the attributes of this class
33             as arguments to method CreateUser.
34              
35             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateUser.
36              
37             As an example:
38              
39             $service_obj->CreateUser(Att1 => $value1, Att2 => $value2, ...);
40              
41             Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
42              
43             =head1 ATTRIBUTES
44              
45              
46             =head2 AuthenticationToken => Str
47              
48             Amazon WorkDocs authentication token. This field should not be set when
49             using administrative API actions, as in accessing the API using AWS
50             credentials.
51              
52              
53              
54             =head2 EmailAddress => Str
55              
56             The email address of the user.
57              
58              
59              
60             =head2 B<REQUIRED> GivenName => Str
61              
62             The given name of the user.
63              
64              
65              
66             =head2 OrganizationId => Str
67              
68             The ID of the organization.
69              
70              
71              
72             =head2 B<REQUIRED> Password => Str
73              
74             The password of the user.
75              
76              
77              
78             =head2 StorageRule => L<Paws::WorkDocs::StorageRuleType>
79              
80             The amount of storage for the user.
81              
82              
83              
84             =head2 B<REQUIRED> Surname => Str
85              
86             The surname of the user.
87              
88              
89              
90             =head2 TimeZoneId => Str
91              
92             The time zone ID of the user.
93              
94              
95              
96             =head2 B<REQUIRED> Username => Str
97              
98             The login name of the user.
99              
100              
101              
102              
103             =head1 SEE ALSO
104              
105             This class forms part of L<Paws>, documenting arguments for method CreateUser in L<Paws::WorkDocs>
106              
107             =head1 BUGS and CONTRIBUTIONS
108              
109             The source code is located here: https://github.com/pplu/aws-sdk-perl
110              
111             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
112              
113             =cut
114