| 1 | package Net::Whois::Object::Route6::APNIC; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use base qw/Net::Whois::Object/; | ||
| 6 | |||
| 7 | # whois -h whois.apnic.net -t route6 | ||
| 8 | # % [whois.apnic.net] | ||
| 9 | # % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html | ||
| 10 | # | ||
| 11 | # route6: [mandatory] [single] [primary/lookup key] | ||
| 12 | # descr: [mandatory] [multiple] [ ] | ||
| 13 | # origin: [mandatory] [single] [primary/inverse key] | ||
| 14 | # country: [optional] [single] [ ] | ||
| 15 | # holes: [optional] [multiple] [ ] | ||
| 16 | # org: [optional] [multiple] [inverse key] | ||
| 17 | # member-of: [optional] [multiple] [inverse key] | ||
| 18 | # inject: [optional] [multiple] [ ] | ||
| 19 | # aggr-mtd: [optional] [single] [ ] | ||
| 20 | # aggr-bndry: [optional] [single] [ ] | ||
| 21 | # export-comps: [optional] [single] [ ] | ||
| 22 | # components: [optional] [single] [ ] | ||
| 23 | # remarks: [optional] [multiple] [ ] | ||
| 24 | # notify: [optional] [multiple] [inverse key] | ||
| 25 | # mnt-lower: [optional] [multiple] [inverse key] | ||
| 26 | # mnt-routes: [optional] [multiple] [inverse key] | ||
| 27 | # mnt-by: [mandatory] [multiple] [inverse key] | ||
| 28 | # changed: [mandatory] [multiple] [ ] | ||
| 29 | # source: [mandatory] [single] [ ] | ||
| 30 | # | ||
| 31 | # % This query was served by the APNIC Whois Service version 1.68.5 (WHOIS2) | ||
| 32 | |||
| 33 | __PACKAGE__->attributes( 'primary', [ 'route6' ] ); | ||
| 34 | __PACKAGE__->attributes( 'mandatory', [ 'route6', 'descr', 'origin', 'mnt_by', 'changed', 'source' ] ); | ||
| 35 | __PACKAGE__->attributes( 'optional', [ 'country', 'holes', 'org', 'member_of', 'inject', 'aggr_mtd', 'aggr_bndry', 'export_comps', 'components', 'remarks', 'notify', 'mnt_lower', 'mnt_routes' ] ); | ||
| 36 | __PACKAGE__->attributes( 'single', [ 'route6', 'origin', 'country', 'aggr_mtd', 'aggr_bndry', 'export_comps', 'components', 'source' ] ); | ||
| 37 | __PACKAGE__->attributes( 'multiple', [ 'descr', 'holes', 'org', 'member_of', 'inject', 'remarks', 'notify', 'mnt_lower', 'mnt_routes', 'mnt_by', 'changed' ] ); | ||
| 38 | |||
| 39 | =head1 NAME | ||
| 40 | |||
| 41 | Net::Whois::Object::Route6::APNIC - an object representation of the RPSL Route6 block | ||
| 42 | |||
| 43 | =head1 DESCRIPTION | ||
| 44 | |||
| 45 | Route6 objects are used to help configure your network's routers. Route6 objects, | ||
| 46 | in combination with the aut-num and other related objects, can be used to | ||
| 47 | describe your IPv6 routing policy in a compact form. This can help your | ||
| 48 | network identify routing policy errors and omissions more easily than by | ||
| 49 | reading long configuration files. | ||
| 50 | |||
| 51 | =head1 METHODS | ||
| 52 | |||
| 53 | =head2 B<new( %options )> | ||
| 54 | |||
| 55 | Constructor for the Net::Whois::Object::Route6::APNIC class | ||
| 56 | |||
| 57 | =cut | ||
| 58 | |||
| 59 | sub new { | ||
| 60 | my ( $class, @options ) = @_; | ||
| 61 | |||
| 62 | my $self = bless {}, $class; | ||
| 63 | $self->_init(@options); | ||
| 64 | |||
| 65 | return $self; | ||
| 66 | } | ||
| 67 | |||
| 68 | =head2 B<route6( [$route6] )> | ||
| 69 | |||
| 70 | Accessor to the route6 attribute. | ||
| 71 | Accepts an optional route6, always return the current route. | ||
| 72 | |||
| 73 | =head2 B<descr( [$descr] )> | ||
| 74 | |||
| 75 | Accessor to the descr attribute. | ||
| 76 | Accepts an optional descr line to be added to the descr array, | ||
| 77 | always return the current descr array. | ||
| 78 | |||
| 79 | =head2 B<origin( [$origin] )> | ||
| 80 | |||
| 81 | Accessor to the origin attribute. | ||
| 82 | Accepts an optional origin, always return the current origin. | ||
| 83 | |||
| 84 | =head2 B<pingable( [$pingable] )> | ||
| 85 | |||
| 86 | Accessor to the pingable attribute. | ||
| 87 | Accepts an optional pingable line to be added to the pingable array, | ||
| 88 | always return the current pingable array. | ||
| 89 | |||
| 90 | An IPv4 or an IPv6 address allowing a network operator to advertise an IP address of a node | ||
| 91 | that should be reachable from outside networks. This node can be | ||
| 92 | used as a destination address for diagnostic tests. | ||
| 93 | The IP address must be within the address range of the prefix | ||
| 94 | containing this attribute. | ||
| 95 | |||
| 96 | =head2 B<ping_hdl( [$ping_hdl] )> | ||
| 97 | |||
| 98 | Accessor to the ping_hdl attribute. | ||
| 99 | Accepts an optional ping_hdl line to be added to the ping_hdl array, | ||
| 100 | always return the current ping_hdl array. | ||
| 101 | |||
| 102 | References a person or role capable of responding to queries | ||
| 103 | concerning the IP address(es) specified in the 'pingable' | ||
| 104 | attribute. | ||
| 105 | |||
| 106 | =head2 B<holes( [$hole] )> | ||
| 107 | |||
| 108 | Accessor to the holes attribute. | ||
| 109 | Accepts an optional hole to be added to the holes array, | ||
| 110 | always return the current holes array. | ||
| 111 | |||
| 112 | =head2 B<org( [$org] )> | ||
| 113 | |||
| 114 | Accessor to the org attribute. | ||
| 115 | Accepts an optional org, always return the current org. | ||
| 116 | |||
| 117 | Points to an existing organisation object representing the entity that | ||
| 118 | holds the resource. | ||
| 119 | |||
| 120 | The 'ORG-' string followed by 2 to 4 characters, followed by up to 5 digits | ||
| 121 | followed by a source specification. The first digit must not be "0". | ||
| 122 | Source specification starts with "-" followed by source name up to | ||
| 123 | 9-character length. | ||
| 124 | |||
| 125 | =head2 B<member_of( [$member_of] )> | ||
| 126 | |||
| 127 | Accessor to the member_of attribute. | ||
| 128 | Accepts an optional member_of value to be added to the member_of array, | ||
| 129 | always return the current member_of array. | ||
| 130 | |||
| 131 | =head2 B<inject( [$inject] )> | ||
| 132 | |||
| 133 | Accessor to the inject attribute. | ||
| 134 | Accepts an optional inject value to be added to the inject array, | ||
| 135 | always return the current inject array. | ||
| 136 | |||
| 137 | =head2 B<aggr_mtd( [$aggr_mtd] )> | ||
| 138 | |||
| 139 | Accessor to the aggr_mtd attribute. | ||
| 140 | Accepts an optional aggr_mtd value to be added to the aggr_mtd array, | ||
| 141 | always return the current aggr_mtd. | ||
| 142 | |||
| 143 | =head2 B<aggr_bndry( [$aggr_bndry] )> | ||
| 144 | |||
| 145 | Accessor to the aggr_bndry attribute. | ||
| 146 | Accepts an optional aggr_bndry value to be added to the aggr_bndry array, | ||
| 147 | always return the current aggr_bndry. | ||
| 148 | |||
| 149 | =head2 B<export_comps( [$export_comp] )> | ||
| 150 | |||
| 151 | Accessor to the export_comps attribute. | ||
| 152 | Accepts an optional export_comp value to be added the export_comps array, | ||
| 153 | always return the current export_comps. | ||
| 154 | |||
| 155 | =head2 B<components( [$component] )> | ||
| 156 | |||
| 157 | Accessor to the components attribute. | ||
| 158 | Accepts an optional component to be added to the components array, | ||
| 159 | always return the current components. | ||
| 160 | |||
| 161 | =head2 B<remarks( [$remark] )> | ||
| 162 | |||
| 163 | Accessor to the remarks attribute. | ||
| 164 | Accepts an optional remark to be added to the remarks array, | ||
| 165 | always return the current 'remarks' array. | ||
| 166 | |||
| 167 | =head2 B<notify( [$notify] )> | ||
| 168 | |||
| 169 | Accessor to the notify attribute. | ||
| 170 | Accepts an optional notify value to be added to the notify array, | ||
| 171 | always return the current notify array. | ||
| 172 | |||
| 173 | =head2 B<mnt_lower( [$mnt_lower] )> | ||
| 174 | |||
| 175 | Accessor to the mnt_lower attribute. | ||
| 176 | Accepts an optional mnt_lower value to be added to the mnt_lower array, | ||
| 177 | always return the current mnt_lower array. | ||
| 178 | |||
| 179 | =head2 B<mnt_routes( [$mnt_route] )> | ||
| 180 | |||
| 181 | Accessor to the mnt_routes attribute. | ||
| 182 | Accepts an optional mnt_route to be added to the mnt_routes array, | ||
| 183 | always return the current mnt_routes array. | ||
| 184 | |||
| 185 | =head2 B<mnt_by( [$mnt_by] )> | ||
| 186 | |||
| 187 | Accessor to the mnt_by attribute. | ||
| 188 | Accepts an optional mnt_by value to be added to the mnt_by array, | ||
| 189 | always return the current mnt_by array. | ||
| 190 | |||
| 191 | =head2 B<changed( [$changed] )> | ||
| 192 | |||
| 193 | Accessor to the changed attribute. | ||
| 194 | Accepts an optional changed value to be added to the changed array, | ||
| 195 | always return the current changed array. | ||
| 196 | |||
| 197 | =head2 B<source( [$source] )> | ||
| 198 | |||
| 199 | Accessor to the source attribute. | ||
| 200 | Accepts an optional source, always return the current source. | ||
| 201 | |||
| 202 | =head2 B<country( [$country] )> | ||
| 203 | |||
| 204 | Accessor to the country attribute. | ||
| 205 | Accepts an optional country, always return the current country. | ||
| 206 | Two letter ISO 3166 code of the country or economy where the admin-c is based. | ||
| 207 | |||
| 208 | Please use UPPERCASE letters. | ||
| 209 | |||
| 210 | =cut | ||
| 211 | |||
| 212 | 1; |