line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DNS::Hetzner::API::Records; |
2
|
|
|
|
|
|
|
$DNS::Hetzner::API::Records::VERSION = '0.05'; |
3
|
|
|
|
|
|
|
# ABSTRACT: Records |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# --- |
6
|
|
|
|
|
|
|
# This class is auto-generated by bin/get_hetzner_info.pl |
7
|
|
|
|
|
|
|
# --- |
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
1123
|
use v5.24; |
|
2
|
|
|
|
|
8
|
|
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
11
|
use Moo; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
12
|
|
12
|
2
|
|
|
2
|
|
610
|
use Types::Standard qw(:all); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
17
|
|
13
|
|
|
|
|
|
|
|
14
|
2
|
|
|
2
|
|
98819
|
use Mojo::Base -strict, -signatures; |
|
2
|
|
|
|
|
47
|
|
|
2
|
|
|
|
|
30
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
extends 'DNS::Hetzner::APIBase'; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
with 'MooX::Singleton'; |
19
|
|
|
|
|
|
|
|
20
|
2
|
|
|
2
|
|
595
|
use DNS::Hetzner::Schema; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
987
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
has endpoint => ( is => 'ro', isa => Str, default => sub { 'records' } ); |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
1
|
|
sub list ($self, %params) { |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
25
|
0
|
|
|
|
|
|
return $self->_do( 'GetRecords', \%params, '', { type => 'get' } ); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
0
|
1
|
|
sub create ($self, %params) { |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
return $self->_do( 'CreateRecord', \%params, '', { type => 'post' } ); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
0
|
1
|
|
sub bulk_create ($self, %params) { |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
33
|
0
|
|
|
|
|
|
return $self->_do( 'BulkCreateRecords', \%params, '/bulk', { type => 'post' } ); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
0
|
1
|
|
sub bulk_update ($self, %params) { |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
37
|
0
|
|
|
|
|
|
return $self->_do( 'BulkUpdateRecords', \%params, '/bulk', { type => 'put' } ); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
0
|
1
|
|
sub delete ($self, %params) { |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
41
|
0
|
|
|
|
|
|
return $self->_do( 'DeleteRecord', \%params, '/:RecordID', { type => 'delete' } ); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
0
|
|
|
0
|
1
|
|
sub get ($self, %params) { |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
45
|
0
|
|
|
|
|
|
return $self->_do( 'GetRecord', \%params, '/:RecordID', { type => 'get' } ); |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
0
|
|
|
0
|
1
|
|
sub update ($self, %params) { |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
49
|
0
|
|
|
|
|
|
return $self->_do( 'UpdateRecord', \%params, '/:RecordID', { type => 'put' } ); |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
__END__ |