File Coverage

blib/lib/Net/Whois/Object/AsSet.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::AsSet;
2              
3 2     2   60097 use strict;
  2         14  
  2         55  
4 2     2   11 use warnings;
  2         5  
  2         51  
5 2     2   11 use base qw/Net::Whois::Object/;
  2         3  
  2         743  
6              
7             #######################################################################################
8             # The following lines where auto-generated by 'perl whois_to_attribute.pl AsSet'
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             # as-set: [mandatory] [single] [primary/lookup key]
17             # descr: [mandatory] [multiple] [ ]
18             # members: [optional] [multiple] [ ]
19             # mbrs-by-ref: [optional] [multiple] [inverse key]
20             # remarks: [optional] [multiple] [ ]
21             # org: [optional] [multiple] [inverse key]
22             # tech-c: [mandatory] [multiple] [inverse key]
23             # admin-c: [mandatory] [multiple] [inverse key]
24             # notify: [optional] [multiple] [inverse key]
25             # mnt-by: [mandatory] [multiple] [inverse key]
26             # mnt-lower: [optional] [multiple] [inverse key]
27             # changed: [mandatory] [multiple] [ ]
28             # created: [generated] [single] [ ]
29             # last-modified: [generated] [single] [ ]
30             # source: [mandatory] [single] [ ]
31             #
32             # % This query was served by the RIPE Database Query Service version 1.79.2 (DB-4)
33             #
34             #
35             __PACKAGE__->attributes( 'primary', [ 'as_set' ] );
36             __PACKAGE__->attributes( 'mandatory', [ 'as_set', 'descr', 'tech_c', 'admin_c', 'mnt_by', 'changed', 'source' ] );
37             __PACKAGE__->attributes( 'optional', [ 'members', 'mbrs_by_ref', 'remarks', 'org', 'notify', 'mnt_lower', 'created', 'last_modified' ] );
38             __PACKAGE__->attributes( 'single', [ 'as_set', 'created', 'last_modified', 'source' ] );
39             __PACKAGE__->attributes( 'multiple', [ 'descr', 'members', 'mbrs_by_ref', 'remarks', 'org', 'tech_c', 'admin_c', 'notify', 'mnt_by', 'mnt_lower', 'changed' ] );
40              
41             # End of auto-generated lines
42             #######################################################################################
43              
44             =head1 NAME
45              
46             Net::Whois::Object::AsSet - an object representation of a RPSL AsSet block
47              
48             =head1 DESCRIPTION
49              
50             An as-set object defines a set of aut-num objects.
51             It defines a group of Autonomous Systems with the same routing policies.
52              
53             =head1 METHODS
54              
55             =head2 new ( @options )
56              
57             Constructor for the Net::Whois::Object::AsSet class
58              
59             =cut
60              
61             sub new {
62 2     2 1 6 my ( $class, @options ) = @_;
63              
64 2         7 my $self = bless {}, $class;
65 2         15 $self->_init(@options);
66              
67 2         13 return $self;
68             }
69              
70             =head2 B
71              
72             Accessor to the as_set attribute.
73             Accepts an optional as_set, always return the current as_set value.
74              
75             The as_set attribute defines the name of the set. It is an RPSL name that
76             starts with "as-" or as_set names and AS numbers separated by colon (':').
77             The later form is called Hierarchical form, the former non-hierarchical.
78             There must be at least one set-name within the hierarchical form that starts
79             with 'as-'.
80              
81              
82             =head2 B
83              
84             Accessor to the descr attribute.
85             Accepts an optional descr to be added to the descr array,
86             always return the current descr array.
87              
88             A short description related to the object's purpose.
89              
90             =head2 B
91              
92             Accessor to the members attribute.
93             Accepts an optional member to be added to the members array,
94             always return the current 'members' array.
95              
96             The members attribute lists the members of the set. It can be either a list
97             of AS Numbers, or other as-set names.
98              
99             =head2 B
100              
101             Accessor to the mbrs_by_ref attribute.
102             Accepts an optional mbr to be added to the mbrs_by_ref array,
103             always return the current mbrs_by_ref array.
104              
105             The identifier of a registered 'mntner' object that can be used to add members
106             to the as-set indirectly.
107              
108             The mbrs_by_ref attribute can be used in all "set" objects; it allows
109             indirect population of a set. If this attribute is used, the set also includes
110             objects of the corresponding type (aut-num objects for as-set, for example)
111             that are protected by one of these maintainers and whose "member-of:"
112             attributes refer to the name of the set. If the value of a mbrs_by_ref
113             attribute is ANY, any object of the corresponding type referring to the set is
114             a member of the set. If the mbrs_by_ref attribute is missing, the set is
115             defined explicitly by the members attribute.
116              
117             =head2 B
118              
119             Accessor to the remarks attribute.
120             Accepts an optional remark to be added to the remarks array,
121             always return the current remarks array.
122              
123             Information about the object that cannot be stated in other attributes.
124             May include a URL or email address.
125              
126             =head2 B
127              
128             Accessor to the org attribute.
129             Accepts an optional org, always return the current org.
130              
131             Points to an existing organisation object representing the entity that
132             holds the resource.
133              
134             The 'ORG-' string followed by 2 to 4 characters, followed by up to 5 digits
135             followed by a source specification. The first digit must not be "0".
136             Source specification starts with "-" followed by source name up to
137             9-character length.
138              
139             =head2 B
140              
141             Accessor to the tech_c attribute.
142             Accepts an optional tech_c to be added to the tech_c array,
143             always return the current tech_c array.
144              
145             The NIC-handle of a technical contact 'person' or 'role' object. As more than
146             one person often fulfills a role function, there may be more than one tech-c
147             listed.
148              
149             A technical contact (tech-c) must be a person responsible for the
150             day-to-day operation of the network, but does not need to be
151             physically located at the site of the network.
152              
153             =head2 B
154              
155             Accessor to the admin_c attribute.
156             Accepts an optional admin_c to be added to the admin_c array,
157             always return the current admin_c array.
158              
159             The NIC-handle of an on-site contact 'person' object. As more than one person
160             often fulfills a role function, there may be more than one admin-c listed.
161              
162             An administrative contact (admin-c) must be someone who is physically
163             located at the site of the network.
164              
165             =head2 B
166              
167             Accessor to the notify attribute.
168             Accepts an optional notify value to be added to the notify array,
169             always return the current notify array.
170              
171             The email address to which notifications of changes to this object will be
172             sent.
173              
174             =head2 B
175              
176             Accessor to the mnt_by attribute.
177             Accepts an optional mnt to be added to the mnt_by array,
178             always return the current mnt_by array.
179              
180             Lists a registered 'mntner' used to authorize and authenticate changes to this
181             object.
182              
183             When your database details are protected by a 'mntner' object, then
184             only persons with access to the security information of that 'mntner'
185             object will be able to change details.
186              
187             =head2 B
188              
189             Accessor to the mnt_lower attribute.
190             Accepts an optional mnt to be added to the mnt_lower array,
191             always return the current mnt_lower array.
192              
193             Specifies the identifier of a registered mntner object used
194             for hierarchical authorisation. Protects creation of objects
195             directly (one level) below in the hierarchy of an object type.
196             The authentication method of this maintainer object will then
197             be used upon creation of any object directly below the object
198             that contains the "mnt-lower:" attribute.
199              
200             =head2 B
201              
202             Accessor to the changed attribute.
203             Accepts an optional changed value to be added to the changed array,
204             always return the current changed array.
205              
206             The email address of who last updated the database object and the date it
207             occurred.
208              
209             Every time a change is made to a database object, this attribute will show
210             the email address of the person who made those changes.
211             Please use the address format specified in RFC 822 - Standard for
212             the Format of ARPA Internet Text Message and provide the date
213             format using one of the following two formats: YYYYMMDD or YYMMDD.
214              
215             =head2 B
216              
217             Accessor to the source attribute.
218             Accepts an optional source, always return the current source.
219              
220             The database where the object is registered.
221              
222             =cut
223              
224             1;