line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
=encoding utf-8 |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
=head1 NAME |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
Webservice::OVH::Order::Domain |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 SYNOPSIS |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
use Webservice::OVH; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my $ovh = Webservice::OVH->new_from_json("credentials.json"); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
my $available_domains = $ovh->order->domain->zone->existing; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 DESCRIPTION |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Only Helper Object to Web Api Sub-Object. |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 METHODS |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=cut |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
use strict; |
25
|
36
|
|
|
36
|
|
235
|
use warnings; |
|
36
|
|
|
|
|
63
|
|
|
36
|
|
|
|
|
929
|
|
26
|
36
|
|
|
36
|
|
161
|
use Carp qw{ carp croak }; |
|
36
|
|
|
|
|
66
|
|
|
36
|
|
|
|
|
862
|
|
27
|
36
|
|
|
36
|
|
159
|
|
|
36
|
|
|
|
|
87
|
|
|
36
|
|
|
|
|
2066
|
|
28
|
|
|
|
|
|
|
our $VERSION = 0.47; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
use Webservice::OVH::Order::Domain::Zone; |
31
|
36
|
|
|
36
|
|
13207
|
|
|
36
|
|
|
|
|
88
|
|
|
36
|
|
|
|
|
4268
|
|
32
|
|
|
|
|
|
|
=head2 _new |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Internal Method to create the Domain object. |
35
|
|
|
|
|
|
|
This method is not ment to be called directly. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=over |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=item * Parameter: $api_wrapper - ovh api wrapper object, $module - root object |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=item * Return: L<Webservice::OVH::Order::Domain> |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=item * Synopsis: Webservice::OVH::Order::Domain->_new($ovh_api_wrapper, $module); |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=back |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=cut |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
my ( $class, %params ) = @_; |
51
|
|
|
|
|
|
|
|
52
|
0
|
|
|
0
|
|
|
die "Missing module" unless $params{module}; |
53
|
|
|
|
|
|
|
die "Missing wrapper" unless $params{wrapper}; |
54
|
0
|
0
|
|
|
|
|
|
55
|
0
|
0
|
|
|
|
|
my $module = $params{module}; |
56
|
|
|
|
|
|
|
my $api_wrapper = $params{wrapper}; |
57
|
0
|
|
|
|
|
|
|
58
|
0
|
|
|
|
|
|
my $zone = Webservice::OVH::Order::Domain::Zone->_new( wrapper => $api_wrapper, module => $module ); |
59
|
|
|
|
|
|
|
|
60
|
0
|
|
|
|
|
|
my $self = bless { _module => $module, _api_wrapper => $api_wrapper, _zone => $zone }, $class; |
61
|
|
|
|
|
|
|
|
62
|
0
|
|
|
|
|
|
return $self; |
63
|
|
|
|
|
|
|
} |
64
|
0
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head2 zone |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Gives acces to the /order/domain/zone methods of the ovh api |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=over |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=item * Return: L<Webservice::OVH::Order::Domain::Zone> |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=item * Synopsis: $ovh->order->domain->zone |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=back |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=cut |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
my ($self) = @_; |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
return $self->{_zone}; |
83
|
0
|
|
|
0
|
1
|
|
} |
84
|
|
|
|
|
|
|
|
85
|
0
|
|
|
|
|
|
1; |