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