4:7
      4:40
  "   ˆl–Ãa¾”ªeJuA3q¡\jbÑ¿ÂƒîÁÀ ©    ó
¡ôXc           @   sR   d  d l  Z  d  d l m Z m Z m Z d  d l m Z d e f d „  ƒ  YZ d S(   iÿÿÿÿN(   t   Argt   Filtert   GenericTagFilter(   t
   EC2Requestt   DescribeSubnetsc           B   sø   e  Z d  Z e d d d d d d d ƒg Z e d ƒ e d	 d d
 ƒe d d d ƒe d d e j ƒe d d e j ƒe d d d! d d ƒe d ƒ e d ƒ e d d d ƒe d d d ƒe d d d ƒe d d d ƒg Z	 d d g Z
 d  „  Z RS("   s.   Show information about one or more VPC subnetst   SubnetIdt   metavart   SUBNETt   nargst   *t   helps!   limit results to specific subnetss   availability-zones   available-ip-address-counts/   the number of unused IP addresses in the subnets
   cidr-blocks   the subnet's CIDR address blockt   cidrt	   cidrBlocks   default-for-azt   choicest   truet   falsesR   whether this is the default subnet for the
                      availability zonet   states	   subnet-ids   tag-keys#   key of a tag assigned to the subnets	   tag-values%   value of a tag assigned to the subnets   tag:KEYs"   specific tag key/value combinations   vpc-ids   the associated VPC's IDt	   subnetSett   tagSetc         C   s1   x* | j  d ƒ p g  D] } |  j | ƒ q Wd  S(   NR   (   t   gett   print_subnet(   t   selft   resultt   subnet(    (    sJ   /usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describesubnets.pyt   print_result9   s    (   R   R   (   t   __name__t
   __module__t   DESCRIPTIONR    t   ARGSR   t   argparset   SUPPRESSR   t   FILTERSt	   LIST_TAGSR   (    (    (    sJ   /usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describesubnets.pyR   !   s*   						(   R   t   requestbuilderR    R   R   t   euca2ools.commands.ec2R   R   (    (    (    sJ   /usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describesubnets.pyt   <module>   s     "   ˆl–äY>”ÊeJuA3pÜjbÑ¿ÃƒâÂÁ i    # Copyright 2014 Eucalyptus Systems, Inc.
#
# Redistribution and use of this software in source and binary forms,
# with or without modification, are permitted provided that the following
# conditions are met:
#
#   Redistributions of source code must retain the above copyright notice,
#   this list of conditions and the following disclaimer.
#
#   Redistributions in binary form must reproduce the above copyright
#   notice, this list of conditions and the following disclaimer in the
#   documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

from requestbuilder import Arg, MutuallyExclusiveArgList

from euca2ools.commands.ec2 import EC2Request


class DescribeSnapshotAttribute(EC2Request):
    DESCRIPTION = 'Show information about an attribute of a snapshot'
    ARGS = [Arg('SnapshotId', metavar='SNAPSHOT', help='snapshot to describe'),
            MutuallyExclusiveArgList(
                Arg('-c', '--create-volume-permission', dest='Attribute',
                    action='store_const', const='createVolumePermission',
                    help='display who can create volumes from the snapshot'),
                Arg('-p', '--product-codes', dest='Attribute',
                    action='store_const', c