File Coverage

blib/lib/Kubernetes/REST/Call/v1/Core/CreateNamespace.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod n/a
total 18 18 100.0


line stmt bran cond sub pod time code
1             package Kubernetes::REST::Call::v1::Core::CreateNamespace;
2 1     1   552 use Moo;
  1         3  
  1         7  
3 1     1   331 use Types::Standard qw/Bool Defined Str/;
  1         3  
  1         14  
4              
5            
6             has body => (is => 'ro', isa => Defined,required => 1);
7            
8             has dryRun => (is => 'ro', isa => Str);
9            
10             has includeUninitialized => (is => 'ro', isa => Bool);
11            
12             has pretty => (is => 'ro', isa => Str);
13            
14             sub _body_params { [
15            
16 1     1   5 { name => 'body' },
17            
18             ] }
19             sub _url_params { [
20            
21 1     1   3 ] }
22              
23             sub _query_params { [
24            
25 1     1   5 { name => 'dryRun' },
26            
27             { name => 'includeUninitialized' },
28            
29             { name => 'pretty' },
30            
31             ] }
32              
33 1     1   3 sub _url { '/api/v1/namespaces' }
34 1     1   18 sub _method { 'POST' }
35             1;