Skip Menu |

This queue is for tickets about the Net-Amazon-Glacier CPAN distribution.

Report information
The Basics
Id: 81218
Status: resolved
Priority: 0/
Queue: Net-Amazon-Glacier

People
Owner: TIM [...] cpan.org
Requestors: treed [...] imvu.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [patch] add delete_archive support
Date: Thu, 15 Nov 2012 15:21:19 -0800
To: bug-Net-Amazon-Glacier [...] rt.cpan.org
From: Ted Reed <treed [...] imvu.com>
Self-explanatory. :) --- a/lib/Net/Amazon/Glacier.pm +++ b/lib/Net/Amazon/Glacier.pm @@ -162,6 +162,21 @@ } } +=head2 delete_archive( $vault_name, $archive_id ) + +Issues a request to delete a file from Glacier. $archive_id is the ID you received either when you uploaded the file originally or from an inventory. + +=cut + +sub delete_archive { + my ( $self, $vault_name, $archive_id ) = @_; + croak "no vault name given" unless $vault_name; + croak "no archive ID given" unless $archive_id; + + my $res = $self->_send_receive( DELETE => "/-/vaults/$vault_name/archives/$archive_id" ); + + return $res->is_success; +} =head1 JOB OPERATIONS
Subject: Re: [rt.cpan.org #81218] AutoReply: [patch] add delete_archive support
Date: Thu, 15 Nov 2012 15:54:10 -0800
To: bug-Net-Amazon-Glacier [...] rt.cpan.org
From: Ted Reed <treed [...] imvu.com>
Oh, and we release this patch under the terms of the GPL version 1 and the artistic license, as usual. On Thu, Nov 15, 2012 at 3:21 PM, Bugs in Net-Amazon-Glacier via RT < bug-Net-Amazon-Glacier@rt.cpan.org> wrote: Show quoted text
> > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "[patch] add delete_archive support", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [rt.cpan.org #81218]. Your ticket is accessible > on the web at: > > https://rt.cpan.org/Ticket/Display.html?id=81218 > > Please include the string: > > [rt.cpan.org #81218] > > in the subject line of all future correspondence about this issue. To do > so, > you may reply to this message. > > Thank you, > bug-Net-Amazon-Glacier@rt.cpan.org > > ------------------------------------------------------------------------- > Self-explanatory. :) > > --- a/lib/Net/Amazon/Glacier.pm > +++ b/lib/Net/Amazon/Glacier.pm > @@ -162,6 +162,21 @@ > } > } > > +=head2 delete_archive( $vault_name, $archive_id ) > + > +Issues a request to delete a file from Glacier. $archive_id is the ID you > received either when you uploaded the file originally or from an inventory. > + > +=cut > + > +sub delete_archive { > + my ( $self, $vault_name, $archive_id ) = @_; > + croak "no vault name given" unless $vault_name; > + croak "no archive ID given" unless $archive_id; > + > + my $res = $self->_send_receive( DELETE => > "/-/vaults/$vault_name/archives/$archive_id" ); > + > + return $res->is_success; > +} > > =head1 JOB OPERATIONS > >
Thank you. delete_archive support has been added in version 0.13.