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