blib/lib/Paws/Datasync/CreateLocationObjectStorage.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Datasync::CreateLocationObjectStorage;
3 use Moose;
4 has AccessKey => (is => 'ro', isa => 'Str');
5 has AgentArns => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1);
6 has BucketName => (is => 'ro', isa => 'Str', required => 1);
7 has SecretKey => (is => 'ro', isa => 'Str');
8 has ServerHostname => (is => 'ro', isa => 'Str', required => 1);
9 has ServerPort => (is => 'ro', isa => 'Int');
10 has ServerProtocol => (is => 'ro', isa => 'Str');
11 has Subdirectory => (is => 'ro', isa => 'Str');
12 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::Datasync::TagListEntry]');
13  
14 use MooseX::ClassAttribute;
15  
16 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLocationObjectStorage');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Datasync::CreateLocationObjectStorageResponse');
18 class_has _result_key => (isa => 'Str', is => 'ro');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::Datasync::CreateLocationObjectStorage - Arguments for method CreateLocationObjectStorage on L<Paws::Datasync>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method CreateLocationObjectStorage on the
30 L<AWS DataSync|Paws::Datasync> service. Use the attributes of this class
31 as arguments to method CreateLocationObjectStorage.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLocationObjectStorage.
34  
35 =head1 SYNOPSIS
36  
37 my $datasync = Paws->service('Datasync');
38 my $CreateLocationObjectStorageResponse =
39 $datasync->CreateLocationObjectStorage(
40 AgentArns => [
41 'MyAgentArn', ... # max: 128
42 ],
43 BucketName => 'MyObjectStorageBucketName',
44 ServerHostname => 'MyServerHostname',
45 AccessKey => 'MyObjectStorageAccessKey', # OPTIONAL
46 SecretKey => 'MyObjectStorageSecretKey', # OPTIONAL
47 ServerPort => 1, # OPTIONAL
48 ServerProtocol => 'HTTPS', # OPTIONAL
49 Subdirectory => 'MyS3Subdirectory', # OPTIONAL
50 Tags => [
51 {
52 Key => 'MyTagKey', # min: 1, max: 256
53 Value => 'MyTagValue', # min: 1, max: 256; OPTIONAL
54 },
55 ...
56 ], # OPTIONAL
57 );
58  
59 # Results:
60 my $LocationArn = $CreateLocationObjectStorageResponse->LocationArn;
61  
62 # Returns a L<Paws::Datasync::CreateLocationObjectStorageResponse> object.
63  
64 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.
65 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/datasync/CreateLocationObjectStorage>
66  
67 =head1 ATTRIBUTES
68  
69  
70 =head2 AccessKey => Str
71  
72 Optional. The access key is used if credentials are required to access
73 the self-managed object storage server. If your object storage requires
74 a user name and password to authenticate, use C<AccessKey> and
75 C<SecretKey> to provide the user name and password, respectively.
76  
77  
78  
79 =head2 B<REQUIRED> AgentArns => ArrayRef[Str|Undef]
80  
81 The Amazon Resource Name (ARN) of the agents associated with the
82 self-managed object storage server location.
83  
84  
85  
86 =head2 B<REQUIRED> BucketName => Str
87  
88 The bucket on the self-managed object storage server that is used to
89 read data from.
90  
91  
92  
93 =head2 SecretKey => Str
94  
95 Optional. The secret key is used if credentials are required to access
96 the self-managed object storage server. If your object storage requires
97 a user name and password to authenticate, use C<AccessKey> and
98 C<SecretKey> to provide the user name and password, respectively.
99  
100  
101  
102 =head2 B<REQUIRED> ServerHostname => Str
103  
104 The name of the self-managed object storage server. This value is the
105 IP address or Domain Name Service (DNS) name of the object storage
106 server. An agent uses this host name to mount the object storage server
107 in a network.
108  
109  
110  
111 =head2 ServerPort => Int
112  
113 The port that your self-managed object storage server accepts inbound
114 network traffic on. The server port is set by default to TCP 80 (HTTP)
115 or TCP 443 (HTTPS). You can specify a custom port if your self-managed
116 object storage server requires one.
117  
118  
119  
120 =head2 ServerProtocol => Str
121  
122 The protocol that the object storage server uses to communicate. Valid
123 values are HTTP or HTTPS.
124  
125 Valid values are: C<"HTTPS">, C<"HTTP">
126  
127 =head2 Subdirectory => Str
128  
129 The subdirectory in the self-managed object storage server that is used
130 to read data from.
131  
132  
133  
134 =head2 Tags => ArrayRef[L<Paws::Datasync::TagListEntry>]
135  
136 The key-value pair that represents the tag that you want to add to the
137 location. The value can be an empty string. We recommend using tags to
138 name your resources.
139  
140  
141  
142  
143 =head1 SEE ALSO
144  
145 This class forms part of L<Paws>, documenting arguments for method CreateLocationObjectStorage in L<Paws::Datasync>
146  
147 =head1 BUGS and CONTRIBUTIONS
148  
149 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
150  
151 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
152  
153 =cut
154