| 1 | #!/bin/false | ||
| 2 | # PODNAME: BZ::Client::Component | ||
| 3 | # ABSTRACT: Client side representation of Product Components in Bugzilla | ||
| 4 | |||
| 5 | use strict; | ||
| 6 | use warnings 'all'; | ||
| 7 | |||
| 8 | package BZ::Client::Component; | ||
| 9 | $BZ::Client::Component::VERSION = '4.91'; | ||
| 10 | |||
| 11 | use parent qw( BZ::Client::API ); | ||
| 12 | |||
| 13 | # See https://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Component.html | ||
| 14 | # These are in order as per the above | ||
| 15 | |||
| 16 | ## functions | ||
| 17 | |||
| 18 | sub create { | ||
| 19 | my($class, $client, $params) = @_; | ||
| 20 | return $class->_create($client, 'Component.create', $params); | ||
| 21 | } | ||
| 22 | |||
| 23 | sub update { | ||
| 24 | my($class, $client, $params) = @_; | ||
| 25 | return $class->_returns_array($client, 'Component.update', $params, 'components'); | ||
| 26 | } | ||
| 27 | |||
| 28 | sub delete { | ||
| 29 | my($class, $client, $params) = @_; | ||
| 30 | return $class->_returns_array($client, 'Component.delete', $params, 'components'); | ||
| 31 | } | ||
| 32 | |||
| 33 | 1; | ||
| 34 | |||
| 35 | __END__ |