BZ-Client
view release on metacpan or search on metacpan
lib/BZ/Client/Component.pm view on Meta::CPAN
#!/bin/false
# PODNAME: BZ::Client::Component
# ABSTRACT: Client side representation of Product Components in Bugzilla
use strict;
use warnings 'all';
package BZ::Client::Component;
$BZ::Client::Component::VERSION = '4.4004';
use parent qw( BZ::Client::API );
# See https://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Component.html
# These are in order as per the above
## functions
sub create {
my($class, $client, $params) = @_;
return $class->_create($client, 'Component.create', $params);
}
sub update {
my($class, $client, $params) = @_;
return $class->_returns_array($client, 'Component.update', $params, 'components');
}
sub delete {
my($class, $client, $params) = @_;
return $class->_returns_array($client, 'Component.delete', $params, 'components');
}
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
BZ::Client::Component - Client side representation of Product Components in Bugzilla
=head1 VERSION
version 4.4004
=head1 SYNOPSIS
This class provides methods for accessing Product Component information in
the Bugzilla server.
my $client = BZ::Client->new( url => $url,
user => $user,
password => $password );
my $id = BZ::Client::Component->create( $client, \%params );
my $changes = BZ::Client::Component->update( $client, \%params );
my $ids = BZ::Client::Component->delete( $client, \%params );
=head1 CLASS METHODS
This section lists the class methods, which are available in this module.
=head2 create
$id = BZ::Client::Component->create( $client, \%params );
Returns the ID of the newly created Component.
=head3 History
Added in Bugzilla 5.0.
Marked experiemental as of Bugzilla 5.0.
=head3 Parameters
Some params must be set, or an error will be thrown. These params are marked "Required".
=over 4
( run in 1.069 second using v1.01-cache-2.11-cpan-39bf76dae61 )