| 1 | package Net::Whois::Object::PeeringSet::APNIC; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use base qw/Net::Whois::Object/; | ||
| 6 | |||
| 7 | # whois -h whois.apnic.net -t peering-set | ||
| 8 | # % [whois.apnic.net] | ||
| 9 | # % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html | ||
| 10 | # | ||
| 11 | # peering-set: [mandatory] [single] [primary/lookup key] | ||
| 12 | # descr: [mandatory] [multiple] [ ] | ||
| 13 | # peering: [optional] [multiple] [ ] | ||
| 14 | # mp-peering: [optional] [multiple] [ ] | ||
| 15 | # remarks: [optional] [multiple] [ ] | ||
| 16 | # org: [optional] [multiple] [inverse key] | ||
| 17 | # tech-c: [mandatory] [multiple] [inverse key] | ||
| 18 | # admin-c: [mandatory] [multiple] [inverse key] | ||
| 19 | # notify: [optional] [multiple] [inverse key] | ||
| 20 | # mnt-by: [mandatory] [multiple] [inverse key] | ||
| 21 | # mnt-lower: [optional] [multiple] [inverse key] | ||
| 22 | # changed: [mandatory] [multiple] [ ] | ||
| 23 | # source: [mandatory] [single] [ ] | ||
| 24 | # | ||
| 25 | # % This query was served by the APNIC Whois Service version 1.68.5 (WHOIS1) | ||
| 26 | |||
| 27 | |||
| 28 | __PACKAGE__->attributes( 'primary', [ 'peering_set' ] ); | ||
| 29 | __PACKAGE__->attributes( 'mandatory', [ 'peering_set', 'descr', 'tech_c', 'admin_c', 'mnt_by', 'changed', 'source' ] ); | ||
| 30 | __PACKAGE__->attributes( 'optional', [ 'peering', 'mp_peering', 'remarks', 'org', 'notify', 'mnt_lower' ] ); | ||
| 31 | __PACKAGE__->attributes( 'single', [ 'peering_set', 'source' ] ); | ||
| 32 | __PACKAGE__->attributes( 'multiple', [ 'descr', 'peering', 'mp_peering', 'remarks', 'org', 'tech_c', 'admin_c', 'notify', 'mnt_by', 'mnt_lower', 'changed' ] ); | ||
| 33 | |||
| 34 | |||
| 35 | =head1 NAME | ||
| 36 | |||
| 37 | Net::Whois::Object::PeeringSet::APNIC - an object representation of the RPSL PeeringSet block | ||
| 38 | |||
| 39 | =head1 DESCRIPTION | ||
| 40 | |||
| 41 | A peering-set object defines a set of peerings that are listed in its | ||
| 42 | "peering:" attributes. The "peering-set:" attribute defines the name | ||
| 43 | of the set. It is an RPSL name that starts with "prng-". | ||
| 44 | |||
| 45 | =head1 METHODS | ||
| 46 | |||
| 47 | =head2 B<new( %options )> | ||
| 48 | |||
| 49 | Constructor for the Net::Whois::Object::PeeringSet::APNIC class | ||
| 50 | |||
| 51 | =cut | ||
| 52 | |||
| 53 | sub new { | ||
| 54 | my ( $class, @options ) = @_; | ||
| 55 | |||
| 56 | my $self = bless {}, $class; | ||
| 57 | $self->_init(@options); | ||
| 58 | |||
| 59 | return $self; | ||
| 60 | } | ||
| 61 | |||
| 62 | =head2 B<peering_set( [$peering_set] )> | ||
| 63 | |||
| 64 | Accessor to the peering_set attribute (the name of the filter set). | ||
| 65 | Accepts an optional peering_set, always return the current peering_set. | ||
| 66 | |||
| 67 | The peering_set must begin with 'PRNG-'. | ||
| 68 | |||
| 69 | =head2 B<descr( [$descr] )> | ||
| 70 | |||
| 71 | Accessor to the descr attribute. | ||
| 72 | Accepts an optional descr line to be added to the descr array, | ||
| 73 | always return the current descr array. | ||
| 74 | |||
| 75 | =head2 B<peering( [$peering] )> | ||
| 76 | |||
| 77 | Accessor to the peering attribute. | ||
| 78 | Accepts an optional peering value to be added to the peering array, | ||
| 79 | always return the current peering array. | ||
| 80 | |||
| 81 | =head2 B<remarks( [$remark] )> | ||
| 82 | |||
| 83 | Accessor to the remarks attribute. | ||
| 84 | Accepts an optional remark to be added to the remarks array, | ||
| 85 | always return the current remarks array. | ||
| 86 | |||
| 87 | =head2 B<org( [$org] )> | ||
| 88 | |||
| 89 | Accessor to the org attribute. | ||
| 90 | Accepts an optional org, always return the current org. | ||
| 91 | |||
| 92 | Points to an existing organisation object representing the entity that | ||
| 93 | holds the resource. | ||
| 94 | |||
| 95 | The 'ORG-' string followed by 2 to 4 characters, followed by up to 5 digits | ||
| 96 | followed by a source specification. The first digit must not be "0". | ||
| 97 | Source specification starts with "-" followed by source name up to | ||
| 98 | 9-character length. | ||
| 99 | |||
| 100 | =head2 B<tech_c( [$contact] )> | ||
| 101 | |||
| 102 | Accessor to the tech_c attribute. | ||
| 103 | Accepts an optional contact to be added to the tech_c array, | ||
| 104 | always return the current tech_c array. | ||
| 105 | |||
| 106 | =head2 B<admin_c( [$contact] )> | ||
| 107 | |||
| 108 | Accessor to the admin_c attribute. | ||
| 109 | Accepts an optional contact to be added to the admin_c array, | ||
| 110 | always return the current admin_c array. | ||
| 111 | |||
| 112 | =head2 B<notify( [$notify] )> | ||
| 113 | |||
| 114 | Accessor to the notify attribute. | ||
| 115 | Accepts an optional notify value to be added to the notify array, | ||
| 116 | always return the current notify array. | ||
| 117 | |||
| 118 | =head2 B<mnt_by( [$mnt_by] )> | ||
| 119 | |||
| 120 | Accessor to the mnt_by attribute. | ||
| 121 | Accepts an optional mnt_by value to be added to the mnt_by array, | ||
| 122 | always return the current 'mnt_by' array. | ||
| 123 | |||
| 124 | =head2 B<changed( [$changed] )> | ||
| 125 | |||
| 126 | Accessor to the changed attribute. | ||
| 127 | Accepts an optional changed value to be added to the changed array, | ||
| 128 | always return the current changed array. | ||
| 129 | |||
| 130 | =head2 B<source( [$source] )> | ||
| 131 | |||
| 132 | Accessor to the source attribute. | ||
| 133 | Accepts an optional source, always return the current source. | ||
| 134 | |||
| 135 | =head2 B<mp_peering( [$mp_peering] )> | ||
| 136 | |||
| 137 | Accessor to the mp_peering attribute. | ||
| 138 | Accepts an optional mp_peering value to be added to the mp_peering array, | ||
| 139 | always return the current mp_peering array. | ||
| 140 | |||
| 141 | =head2 B<mnt_lower( [$mnt_lower] )> | ||
| 142 | |||
| 143 | Accessor to the mnt_lower attribute. | ||
| 144 | Accepts an optional mnt_lower value to be added to the mnt_lower array, | ||
| 145 | always return the current mnt_lower array. | ||
| 146 | |||
| 147 | =cut | ||
| 148 | |||
| 149 | 1; |