BZ-Client
view release on metacpan or search on metacpan
lib/BZ/Client/Bug/Attachment.pm view on Meta::CPAN
If no I</data> parameter is provided, this module will attempt to open, slurp the contents of a file with path I<file_name>, base64 encod that data, placed it into the I</data> parameter, then I<file_name> is truncted to just the files basename.
Failures to open the file (for anyreason) will be silently ignored and the I<file_name> parameter will not be touched.
=item summary
I<summary> (string) Required - A short string describing the attachment.
=item content_type
I<content_type> (string) Required - The MIME type of the attachment, like I<text/plain> or I<image/png>.
=item comment
I<comment> (string) - A comment to add along with this attachment.
=item is_patch
I<is_patch> (boolean) - True if Bugzilla should treat this attachment as a patch. If you specify this, you do not need to specify a L</content_type>. The L</content_type> of the attachment will be forced to C<text/plain>.
Defaults to False if not specified.
lib/BZ/Client/Bug/Attachment.pm view on Meta::CPAN
=item summary
I<summary> (string) Required - A short string describing the attachment.
=item comment
I<comment> (string) - A comment to add along with this attachment.
=item content_type
I<content_type> (string) - The MIME type of the attachment, like C<text/plain> or C<image/png>.
=item is_patch
I<is_patch> (boolean) - True if Bugzilla should treat this attachment as a patch. If you specify this, you do not need to specify a L</content_type>. The L</content_type> of the attachment will be forced to C<text/plain>.
=item is_private
I<is_private> (boolean) - True if the attachment should be private (restricted to the "insidergroup"), False if the attachment should be public.
=item is_obsolete
lib/BZ/Client/Bug/Attachment.pm view on Meta::CPAN
B<Required>, Read and Write.
=head2 summary
I<summary> (string) A short string describing the attachment.
B<Required>, Read and Write.
=head2 content_type
I<content_type> (string) The MIME type of the attachment, like C<text/plain> or C<image/png>.
B<Required>, Read and Write.
=head2 comment
I<comment> (string or hash) A comment to add along with this attachment. If C<comment> is a hash, it has the following keys:
Only useful when adding attachments.
=over 4
( run in 1.071 second using v1.01-cache-2.11-cpan-df04353d9ac )