File Coverage

blib/lib/Net/Whois/Object/Inet6Num.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 18 18 100.0


line stmt bran cond sub pod time code
1             package Net::Whois::Object::Inet6Num;
2              
3 1     1   84679 use strict;
  1         14  
  1         34  
4 1     1   6 use warnings;
  1         2  
  1         37  
5 1     1   6 use base qw/Net::Whois::Object/;
  1         2  
  1         615  
6              
7             #######################################################################################
8             # The following lines where auto-generated by 'perl whois_to_attribute.pl Inet6Num'
9              
10             # % This is the RIPE Database query service.
11             # % The objects are in RPSL format.
12             # %
13             # % The RIPE Database is subject to Terms and Conditions.
14             # % See http://www.ripe.net/db/support/db-terms-conditions.pdf
15             #
16             # inet6num: [mandatory] [single] [primary/lookup key]
17             # netname: [mandatory] [single] [lookup key]
18             # descr: [optional] [multiple] [ ]
19             # country: [mandatory] [multiple] [ ]
20             # geoloc: [optional] [single] [ ]
21             # language: [optional] [multiple] [ ]
22             # org: [optional] [single] [inverse key]
23             # sponsoring-org: [optional] [single] [ ]
24             # admin-c: [mandatory] [multiple] [inverse key]
25             # tech-c: [mandatory] [multiple] [inverse key]
26             # abuse-c: [optional] [single] [inverse key]
27             # status: [mandatory] [single] [ ]
28             # assignment-size:[optional] [single] [ ]
29             # remarks: [optional] [multiple] [ ]
30             # notify: [optional] [multiple] [inverse key]
31             # mnt-by: [mandatory] [multiple] [inverse key]
32             # mnt-lower: [optional] [multiple] [inverse key]
33             # mnt-routes: [optional] [multiple] [inverse key]
34             # mnt-domains: [optional] [multiple] [inverse key]
35             # mnt-irt: [optional] [multiple] [inverse key]
36             # created: [generated] [single] [ ]
37             # last-modified: [generated] [single] [ ]
38             # source: [mandatory] [single] [ ]
39             #
40             # % This query was served by the RIPE Database Query Service version 1.99 (BLAARKOP)
41             #
42             #
43             __PACKAGE__->attributes( 'primary', [ 'inet6num' ] );
44             __PACKAGE__->attributes( 'mandatory', [ 'inet6num', 'netname', 'country', 'admin_c', 'tech_c', 'status', 'mnt_by', 'source' ] );
45             __PACKAGE__->attributes( 'optional', [ 'descr', 'geoloc', 'language', 'org', 'sponsoring_org', 'abuse_c', 'assignment_size', 'remarks', 'notify', 'mnt_lower', 'mnt_routes', 'mnt_domains', 'mnt_irt', 'created', 'last_modified' ] );
46             __PACKAGE__->attributes( 'single', [ 'inet6num', 'netname', 'geoloc', 'org', 'sponsoring_org', 'abuse_c', 'status', 'assignment_size', 'created', 'last_modified', 'source' ] );
47             __PACKAGE__->attributes( 'multiple', [ 'descr', 'country', 'language', 'admin_c', 'tech_c', 'remarks', 'notify', 'mnt_by', 'mnt_lower', 'mnt_routes', 'mnt_domains', 'mnt_irt' ] );
48              
49             # End of auto-generated lines
50             #######################################################################################
51              
52             =head1 NAME
53              
54             Net::Whois::Object::Inet6Num - an object representation of a RPSL Inet6Num block
55              
56             =head1 DESCRIPTION
57              
58             An inet6num object contains information on allocations and assignments
59             of IPv6 address space.
60              
61             =head1 METHODS
62              
63             =head2 new ( @options )
64              
65             Constructor for the Net::Whois::Object::Inet6Num class
66              
67             =cut
68              
69             sub new {
70 1     1 1 5 my ( $class, @options ) = @_;
71              
72 1         3 my $self = bless {}, $class;
73 1         11 $self->_init(@options);
74              
75 1         3 return $self;
76             }
77              
78             =head2 B
79              
80             Accessor to the inet6num attribute.
81             Accepts an optional inet6num value, always return the current inet6num value.
82              
83             The inet6num attribute specifies a range of IPv6 addresses that the
84             inet6num object presents. The range may be a single address.
85              
86             Addresses can only be expressed in prefix notation
87              
88             =head2 B
89              
90             Accessor to the netname attribute.
91             Accepts an optional netname, always return the current netname.
92              
93             The netname attribute is the name of a range of IP address space. It is
94             recommended that the same netname is used for any set of assignment ranges
95             used for a common purpose.
96              
97             =head2 B
98              
99             Accessor to the descr attribute.
100             Accepts an optional descr to be added to the descr array,
101             always return the current descr array.
102              
103             Description of the organization allocated or assigned the address space shown
104             in the inet6num.
105              
106             =head2 B
107              
108             Accessor to the country attribute.
109             Accepts an optional country to be added to the country array,
110             always return the current country array.
111              
112             The country attribute identifies the country. It has never been specified
113             if this is the country where the addresses are used, where the issuing
114             organisation is based or some transit country in between. There are no rules
115             defined for this attribute. It cannot therefore be used in any reliable way to
116             map IP addresses to countries.
117              
118             =head2 B
119              
120             Accessor to the geoloc attribute.
121             Accepts an optional geoloc, always return the current geoloc.
122              
123             The location coordinates for the resource
124              
125             Location coordinates of the resource. Can take one of the following forms:
126             [-90,90][-180,180]
127              
128             =head2 B
129              
130             Accessor to the language attribute.
131             Accepts an optional language to be added to the language array,
132             always return the current language array.
133              
134             Identifies the language.
135              
136             Valid two-letter ISO 639-1 language code.
137              
138             =head2 B
139              
140             Accessor to the org attribute.
141             Accepts an optional org, always return the current org.
142              
143             Only a single value for the org attribute is allowed in the inet6num
144             object. This is to ensure only one organisation is responsible for this
145             resource.
146              
147             =head2 B
148              
149             Accessor to the admin_c attribute.
150             Accepts an optional contact to be added to the admin_c array,
151             always return the current admin_c array.
152              
153             The NIC-handle of an on-site contact 'person' object. As more than one person
154             often fulfills a role function, there may be more than one admin_c listed.
155              
156             An administrative contact (admin_c) must be someone who is physically
157             located at the site of the network.
158              
159             =head2 B
160              
161             Accessor to the tech_c attribute.
162             Accepts an optional contact to be added to the tech_c array,
163             always return the current tech_c array.
164              
165             The NIC-handle of a technical contact 'person' or 'role' object. As more than
166             one person often fulfills a role function, there may be more than one tech_c
167             listed.
168              
169             A technical contact (tech_c) must be a person responsible for the
170             day-to-day operation of the network, but does not need to be
171              
172             =head2 B
173              
174             Accessor to the status attribute.
175             Accepts an optional status, always return the current status.
176              
177             The status attribute indicates where the address range represented by an
178             inet6num object sits in a hierarchy and how it is used.
179              
180             Status can have one of these values:
181              
182             =over 4
183              
184             =item ALLOCATED-BY-RIR
185              
186             =item ALLOCATED-BY-LIR
187              
188             =item ASSIGNED
189              
190             =item ASSIGNED ANYCAST
191              
192             =item ASSIGNED PI
193              
194             =back
195              
196             =head2 B
197              
198             Accessor to the remarks attribute.
199             Accepts an optional remark to be added to the remarks array,
200             always return the current remarks array.
201              
202             General remarks. May include a URL or instructions on where to send abuse
203             complaints.
204              
205             =head2 B
206              
207             Accessor to the notify attribute.
208             Accepts an optional notify value to be added to the notify array,
209             always return the current notify array.
210              
211             The email address to which notifications of changes to this object should be
212             sent.
213              
214             =head2 B
215              
216             Accessor to the mnt_by attribute.
217             Accepts an optional mnt_by value to be added to the mnt_by array,
218             always return the current mnt_by array.
219              
220             =head2 B
221              
222             Accessor to the mnt_lower attribute.
223             Accepts an optional mnt_lower value to be added to the mnt_lower array,
224             always return the current mnt_lower array.
225              
226             Sometimes there is a hierarchy of maintainers. In these cases, mnt-lower is
227             used as well as 'mnt-by.'
228              
229             =head2 B
230              
231             Accessor to the mnt_routes attribute.
232             Accepts an optional mnt_route to be added to the mnt_routes array,
233             always return the current mnt_routes array.
234              
235             The identifier of a registered Mntner object used to control the creation of
236             Route6 objects associated with the address range specified by the Inet6num
237             object.
238              
239             =head2 B
240              
241             Accessor to the mnt_domains attribute.
242             Accepts an optional mnt_route to be added to the mnt_domains array,
243             always return the current mnt_domains array.
244              
245             The identifier of a registered Mntner object used to control the creation of
246             Domain objects associated with the address range specified by the Inet6num
247             object.
248              
249             =head2 B
250              
251             Accessor to the mnt_irt attribute.
252             Accepts an optional mnt_irt to be added to the mnt_irt array,
253             always return the current mnt_irt array.
254              
255             mnt_irt references an Irt object. Authorisation is required from the Irt
256             object to be able to add this reference.
257              
258             =head2 B
259              
260             Accessor to the changed attribute.
261             Accepts an optional changed value to be added to the changed array,
262             always return the current changed array.
263              
264             The email address of who last updated the database object and the date it
265             occurred.
266              
267             Every time a change is made to a database object, this attribute will show
268             the email address of the person who made those changes.
269             Please use the address format specified in RFC 822 - Standard for
270             the Format of ARPA Internet Text Message and provide the date
271             format using one of the following two formats: YYYYMMDD or YYMMDD.
272              
273             =head2 B
274              
275             Accessor to the source attribute.
276             Accepts an optional source, always return the current source.
277              
278             The database where the object is registered.
279              
280             =cut
281              
282             1;