File Coverage

blib/lib/Net/Whois/Object/Mntner.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::Mntner;
2              
3 1     1   74516 use strict;
  1         28  
  1         29  
4 1     1   5 use warnings;
  1         2  
  1         27  
5 1     1   5 use base qw/Net::Whois::Object/;
  1         2  
  1         562  
6              
7             #######################################################################################
8             # The following lines where auto-generated by 'perl whois_to_attribute.pl Mntner'
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             # mntner: [mandatory] [single] [primary/lookup key]
17             # descr: [mandatory] [multiple] [ ]
18             # org: [optional] [multiple] [inverse key]
19             # admin-c: [mandatory] [multiple] [inverse key]
20             # tech-c: [optional] [multiple] [inverse key]
21             # upd-to: [mandatory] [multiple] [inverse key]
22             # mnt-nfy: [optional] [multiple] [inverse key]
23             # auth: [mandatory] [multiple] [inverse key]
24             # remarks: [optional] [multiple] [ ]
25             # notify: [optional] [multiple] [inverse key]
26             # abuse-mailbox: [optional] [multiple] [inverse key]
27             # mnt-by: [mandatory] [multiple] [inverse key]
28             # referral-by: [optional] [single] [ ]
29             # changed: [mandatory] [multiple] [ ]
30             # created: [generated] [single] [ ]
31             # last-modified: [generated] [single] [ ]
32             # source: [mandatory] [single] [ ]
33             #
34             # % This query was served by the RIPE Database Query Service version 1.79.2 (DB-3)
35             #
36             #
37             __PACKAGE__->attributes( 'primary', [ 'mntner' ] );
38             __PACKAGE__->attributes( 'mandatory', [ 'mntner', 'descr', 'admin_c', 'upd_to', 'auth', 'mnt_by', 'changed', 'source' ] );
39             __PACKAGE__->attributes( 'optional', [ 'org', 'tech_c', 'mnt_nfy', 'remarks', 'notify', 'abuse_mailbox', 'referral_by', 'created', 'last_modified' ] );
40             __PACKAGE__->attributes( 'single', [ 'mntner', 'referral_by', 'created', 'last_modified', 'source' ] );
41             __PACKAGE__->attributes( 'multiple', [ 'descr', 'org', 'admin_c', 'tech_c', 'upd_to', 'mnt_nfy', 'auth', 'remarks', 'notify', 'abuse_mailbox', 'mnt_by', 'changed' ] );
42              
43             # End of auto-generated lines
44             #######################################################################################
45              
46             =head1 NAME
47              
48             Net::Whois::Object::Mntner - an object representation of the RPSL Mntner block
49              
50             =head1 DESCRIPTION
51              
52             Objects in the RIPE Database may be protected using Mntner (pronounced
53             "maintainer") objects. A Mntner object specifies authentication
54             information required to authorise creation, deletion or modification
55             of the objects protected by the Mntner.
56              
57             Objects are protected by a Mntner, if they contain a reference to the Mntner
58             in the object. This is done by including a mnt-by attribute. Other
59             attributes offer hierarchical protection. The mnt-by attribute is mandatory
60             in all object types. Most users set the mnt-by value in a Mntner to
61             reference itself.
62              
63             =head1 METHODS
64              
65             =head2 B
66              
67             Constructor for the Net::Whois::Object::Mntner class
68              
69             =cut
70              
71             sub new {
72 1     1 1 5 my ( $class, @options ) = @_;
73              
74 1         3 my $self = bless {}, $class;
75 1         9 $self->_init(@options);
76              
77 1         3 return $self;
78             }
79              
80             =head2 B
81              
82             Accessor to the mntner attribute.
83             Accepts an optional mntner value to be added to the mntner array,
84             always return the current mntner.
85              
86             The unique name of a mntner object. APNIC recommends the following formats:
87              
88             Maintainer for resource registrations:
89              
90             --
91              
92             EXAMPLE
93             MAINT-WF-SPARKYNET
94              
95             =head2 B
96              
97             Accessor to the descr attribute.
98             Accepts an optional descr line to be added to the descr array,
99             always return the current descr array.
100              
101             A short description of the mntner object and the name of the organization
102             associated with it.
103              
104             =head2 B
105              
106             Accessor to the org attribute.
107             Accepts an optional org value to be added to the org array,
108             always return the current org array.
109              
110             The organisation this object is bound to.
111              
112             =head2 B
113              
114             Accessor to the admin_c attribute.
115             Accepts an optional contact to be added to the admin_c array,
116             always return the current admin_c array.
117              
118             The NIC-handle of an on-site contact Person object. As more than one
119             person often fulfills a role function, there may be more than one admin_c
120             listed.
121              
122             An administrative contact (admin_c) must be someone who is
123             physically located at the site of the network.
124              
125             =head2 B
126              
127             Accessor to the tech_c attribute.
128             Accepts an optional contact to be added to the tech_c array,
129             always return the current tech_c array.
130              
131             The NIC-handle of a technical contact Person or Role object. As more than
132             one person often fulfills a role function, there may be more than one tech_c
133             listed.
134              
135             A technical contact (tech_c) must be a person responsible for the
136             day-to-day operation of the network, but does not need to be
137             physically located at the site of the network.
138              
139             =head2 B
140              
141             Accessor to the upd_to attribute.
142             Accepts an optional upd_to value to be added to the upd_to array,
143             always return the current upd_to array.
144              
145             The upd_to attribute specifies the email address to be notified when an
146             attempt to update an object protected by this Mntner is unsuccessful.
147              
148             =head2 B
149              
150             Accessor to the mnt_nfy attribute.
151             Accepts an optional mnt_nfy value to be added to the mnt_nfy array,
152             always return the current mnt_nfy array.
153              
154             The mnt_nfy attribute specifies the email address to be notified when an
155             object protected by this Mntner is successfully updated.
156              
157             =head2 B
158              
159             Accessor to the auth attribute.
160             Accepts an optional auth value to be added to the auth array,
161             always return the current auth array.
162              
163             The auth attribute defines an authentication scheme to be used. . Any of
164             the current authentication schemes used by the RIPE Database are allowed.
165              
166             =head2 B
167              
168             Accessor to the remarks attribute.
169             Accepts an optional remark to be addedt to the remarks array,
170             always return the current remarks array.
171              
172             General remarks. May include a URL or email address.
173              
174             =head2 B
175              
176             Accessor to the notify attribute.
177             Accepts an optional notify value to be added to the notify array,
178             always return the current notify array.
179              
180             The email address to which notifications of changes to this object should
181             be sent.
182              
183             =head2 B
184              
185             Accessor to the mnt_by attribute.
186             Accepts an optional mnt_by value to be added to the mnt_by array,
187             always return the current mnt_by array.
188              
189             Lists a registered Mntner used to authorize and authenticate changes to
190             this object.
191              
192             Most users set the mnt-by value in a Mntner to reference itself.
193              
194             =head2 B
195              
196             Accessor to the auth_override attribute.
197             Accepts an optional auth_override, always return the current auth_override.
198              
199             Routing Policy System Security specification defines an auth_override attribute
200             in the Mntner object template. Together with referral-by attribute, they allow
201             for a Mntner to be modified if it becomes unresponsive.
202             As this is not part of the core functionality of the RIPE Database,
203             it has not been implemented in the current version of the database.
204              
205             =head2 B
206              
207             Accessor to the referral_by attribute.
208             Accepts an optional referral_by, always return the current referral_by.
209              
210             Routing Policy System Security specification defines an auth_override attribute
211             in the Mntner object template. Together with referral-by attribute, they allow
212             for a Mntner to be modified if it becomes unresponsive.
213             As this is not part of the core functionality of the RIPE Database,
214             it has not been implemented in the current version of the database.
215              
216             =head2 B
217              
218             Accessor to the changed attribute.
219             Accepts an optional changed value to be added to the changed array,
220             always return the current changed array.
221              
222             The email address of who last updated the database object and the date it
223             occurred.
224              
225             Every time a change is made to a database object, this attribute will show
226             the email address of the person who made those changes.
227             Please use the address format specified in RFC 822 - Standard for
228             the Format of ARPA Internet Text Message and provide the date
229             format using one of the following two formats: YYYYMMDD or YYMMDD.
230              
231             =head2 B
232              
233             Accessor to the source attribute.
234             Accepts an optional source, always return the current source.
235              
236             The name of the database from which the data was obtained.
237              
238             =head2 B
239              
240             Accessor to the country attribute.
241             Accepts an optional value, always return the current 'country'.
242             Two letter ISO 3166 code of the country or economy where the admin-c is based.
243              
244             Please use UPPERCASE letters.
245              
246             =head2 B
247              
248             Accessor to the abuse_mailbox attribute.
249             Accepts an optional abuse_mailbox value to be added to the abuse_mailbox array,
250             always return the current abuse_mailbox array.
251              
252             =cut
253              
254             1;