Mattermost/V4/API/Resource/S3.pm

filter: Statementstmt 62.5% 5 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod 0.0% 0 / 1 totaltotal 54.5% 6 / 11 CC 1 SCAR 4.1
CC
1
Cov
62%
test
2.0
BEGIN
1.0
CRAP 1.5
« Mattermost/V4/API/Object/Audit.pm ↑ Summary Mattermost/V4/API/Resource/Files.pm »
1 package WebService::Mattermost::V4::API::Resource::S3;
2  
3 # ABSTRACT: Wrapped API methods for the S3 API endpoints.
4  
5 12 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 12 extends 'WebService::Mattermost::V4::API::Resource';
8  
9 ################################################################################
10  
11 sub test {
12 0 ▶ my $self = shift;
Subroutine test: not called CC=1 SCAR=6.9
Pod undocumented
13 0 my $args = shift;
14  
15 0 return $self->_single_view_post({
16 endpoint => 'test',
17 view => 'Status',
18 });
19 }
20  
21 ################################################################################
22  
23 12 1;
24  
25 __END__
26  
27 =pod
28  
29 =encoding UTF-8
30  
31 =head1 NAME
32  
33 WebService::Mattermost::V4::API::Resource::S3 - Wrapped API methods for the S3 API endpoints.
34  
35 =head1 VERSION
36  
37 version 0.28
38  
39 =head1 DESCRIPTION
40  
41 =head2 USAGE
42  
43 use WebService::Mattermost;
44  
45 my $mm = WebService::Mattermost->new({
46 authenticate => 1,
47 username => 'me@somewhere.com',
48 password => 'hunter2',
49 base_url => 'https://my.mattermost.server.com/api/v4/',
50 });
51  
52 my $resource = $mm->api->s3;
53  
54 =head2 METHODS
55  
56 =over 4
57  
58 =item C<send_test()>
59  
60 L<Test AWS S3 connection|https://api.mattermost.com/#tag/system%2Fpaths%2F~1file~1s3_test%2Fpost>
61  
62 There are many available parameters for this API call which may require reading
63 of the API documentation.
64  
65 Providing no parameters will use the ones set on your Mattermost server.
66  
67 my $response = $resource->test({
68 # Optional parameters:
69 ServiceSettings => {},
70 TeamSettings => {},
71 SqlSettings => {},
72 LogSettings => {},
73 PasswordSettings => {},
74 FileSettings => {},
75 EmailSettings => {},
76 RateLimitSettings => {},
77 PrivacySettings => {},
78 SupportSettings => {},
79 GitLabSettings => {},
80 GoogleSettings => {},
81 Office365Settings => {},
82 LdapSettings => {},
83 ComplianceSettings => {},
84 LocalizationSettings => {},
85 SamlSettings => {},
86 NativeAppSettings => {},
87 ClusterSettings => {},
88 MetricsSettings => {},
89 AnalyticsSettings => {},
90 WebrtcSettings => {},
91 });
92  
93 =back
94  
95 =head1 AUTHOR
96  
97 Mike Jones <mike@netsplit.org.uk>
98  
99 =head1 COPYRIGHT AND LICENSE
100  
101 This software is Copyright (c) 2020 by Mike Jones.
102  
103 This is free software, licensed under:
104  
105 The MIT (X11) License
106  
107 =cut
« Mattermost/V4/API/Object/Audit.pm ↑ Summary Mattermost/V4/API/Resource/Files.pm »