Hetzner/API/Zones.pm

filter: Statementstmt 71.4% 20 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 42.8% 6 / 14 Podpod 100% 8 / 8 totaltotal 68.0% 34 / 50 CC 1 SCAR 4.5
CC
1
Cov
71%
list
2.0
create
2.0
validate_file_plain
2.0
CRAP 1.6
« Hetzner/Schema.pm ↑ Summary Hetzner/API/Records.pm »
1 package DNS::Hetzner::API::Zones;
2 2 $DNS::Hetzner::API::Zones::VERSION = '0.05';
3 # ABSTRACT: Zones
4  
5 # ---
6 # This class is auto-generated by bin/get_hetzner_info.pl
7 # ---
8  
9 2 ▶use v5.24;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 2 ▶use Types::Standard qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 2 ▶use Mojo::Base -strict, -signatures;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 2 extends 'DNS::Hetzner::APIBase';
17  
18 2 with 'MooX::Singleton';
19  
20 2 ▶use DNS::Hetzner::Schema;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 1 ▶has endpoint => ( is => 'ro', isa => Str, default => sub { 'zones' } );
Subroutine __ANON__: called CC=1 SCAR=0.0
23  
24 0 ▶sub list ($self, %params) {
Subroutine list: not called CC=1 SCAR=6.9
Pod documented
25 0 return $self->_do( 'GetZones', \%params, '', { type => 'get' } );
26 }
27  
28 0 ▶sub create ($self, %params) {
Subroutine create: not called CC=1 SCAR=6.9
Pod documented
29 0 return $self->_do( 'CreateZone', \%params, '', { type => 'post' } );
30 }
31  
32 0 ▶sub validate_file_plain ($self, %params) {
Subroutine validate_file_plain: not called CC=1 SCAR=6.9
Pod documented
33 0 return $self->_do( 'ValidateZoneFilePlain', \%params, '/file/validate', { type => 'post' } );
34 }
35  
36 0 ▶sub delete ($self, %params) {
Subroutine delete: not called CC=1 SCAR=6.9
Pod documented
37 0 return $self->_do( 'DeleteZone', \%params, '/:ZoneID', { type => 'delete' } );
38 }
39  
40 0 ▶sub get ($self, %params) {
Subroutine get: not called CC=1 SCAR=6.9
Pod documented
41 0 return $self->_do( 'GetZone', \%params, '/:ZoneID', { type => 'get' } );
42 }
43  
44 0 ▶sub update ($self, %params) {
Subroutine update: not called CC=1 SCAR=6.9
Pod documented
45 0 return $self->_do( 'UpdateZone', \%params, '/:ZoneID', { type => 'put' } );
46 }
47  
48 0 ▶sub export_file ($self, %params) {
Subroutine export_file: not called CC=1 SCAR=6.9
Pod documented
49 0 return $self->_do( 'ExportZoneFile', \%params, '/:ZoneID/export', { type => 'get' } );
50 }
51  
52 0 ▶sub import_file_plain ($self, %params) {
Subroutine import_file_plain: not called CC=1 SCAR=6.9
Pod documented
53 0 return $self->_do( 'ImportZoneFilePlain', \%params, '/:ZoneID/import', { type => 'post' } );
54 }
55  
56  
57 2 1;
58  
59 __END__
« Hetzner/Schema.pm ↑ Summary Hetzner/API/Records.pm »