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