Subject: | Feature request (tagsets in describe_image describe_snapshot) |
Date: | Sun, 15 Mar 2015 17:06:06 +0100 |
To: | <bug-Net-Amazon-EC2 [...] rt.cpan.org> |
From: | Jens-Uwe Schlüßler <jens-uwe.schluessler [...] tu-dresden.de> |
Dear Amazon-EC2 maintainer,
can you please check if tagsets may be supported also for
DescribeSnapshots and DescribeImages ?
A trial implementation would require changes in these 3 files (modules):
./lib/site_perl/5.18.0/Net/Amazon/EC2.pm
./lib/site_perl/5.18.0/Net/Amazon/EC2/Snapshot.pm
./lib/site_perl/5.18.0/Net/Amazon/EC2/DescribeImagesResponse.pm
Many thanks,
Jens-Uwe
Detailed diff (based on Module Version: 0.29 Source ):
diff ./lib/Net/Amazon/EC2/DescribeImagesResponse_patch.pm
./lib/Net/Amazon/EC2/DescribeImagesResponse.pm
128,130d127
< #RI
< has 'tag_set' => ( is => 'ro', isa =>
'Maybe[ArrayRef[Net::Amazon::EC2::TagSet]]', required => 0 );
< #RI
diff ./lib/Net/Amazon/EC2/Snapshot_patch.pm ./lib/Net/Amazon/EC2/Snapshot.pm
65,67d64
< #RI
< has 'tag_set' => ( is => 'ro', isa =>
'Maybe[ArrayRef[Net::Amazon::EC2::TagSet]]', required => 0 );
< #RI
diff ./lib/Net/Amazon/EC2_patch.pm ./lib/Net/Amazon/EC2.pm
1838,1850d1837
< ##RI
< my $tag_sets;
< foreach my $tag_arr (@{$item->{tagSet}{item}}) {
< if ( ref $tag_arr->{value} eq "HASH" ) {
< $tag_arr->{value} = "";
< }
< my $tag = Net::Amazon::EC2::TagSet->new(
< key => $tag_arr->{key},
< value => $tag_arr->{value},
< );
< push @$tag_sets, $tag;
< }
< ##RI
1870,1872d1856
< ##RI
< tag_set => $tag_sets,
< ##RI
2890,2902c2874
< ##RI
< my $tag_sets;
< foreach my $tag_arr (@{$snap->{tagSet}{item}}) {
< if ( ref $tag_arr->{value} eq "HASH" ) {
< $tag_arr->{value} = "";
< }
< my $tag = Net::Amazon::EC2::TagSet->new(
< key => $tag_arr->{key},
< value => $tag_arr->{value},
< );
< push @$tag_sets, $tag;
< }
< ##RI
---
Show quoted text
>
2913,2915d2884
< ##RI
< tag_set => $tag_sets,
< ##RI
--
Jens-Uwe Schlüßler
Show quoted text_______________________________________________________________
Technische Universität Dresden
Institut Grundlagen der ET/Elektronik ( IEE )
Stiftungsprofessur Hochparallele VLSI-Systeme und
Neuromikroelektronik (Prof. Schüffny)
01062 DRESDEN Phone (++49 351) 463 33602
GERMANY Fax (++49 351) 463 37794
EMail Jens-Uwe.Schluessler@tu-dresden.de
WWW http://hpsn.et.tu-dresden.de
_______________________________________________________________
Message body is not shown because it is too large.
Message body not shown because it is not plain text.