
                             d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z ddlm
Z
  G d d	ej                        Zy
)z&Command for describing machine images.    )absolute_import)division)unicode_literals)base_classes)base)flagsc                   2    e Zd ZdZddddZed        Zd Zy)Describez(Describe a Compute Engine machine image.z
        *{command}* deletes one or more Compute Engine
        machine images. Machine images can be deleted only if they are not
        being used to restore virtual machine instances.
      z\
         To describe a machine image, run:

           $ {command} my-machine-image
       )briefdescriptionEXAMPLESc                     t        j                         t        _        t        j                  j	                  | d       y )Ndescribe)operation_type)r   MakeMachineImageArgr
   MACHINE_IMAGE_ARGAddArgument)parsers    .lib/surface/compute/machine_images/describe.pyArgszDescribe.Args.   s,    !&!:!:!<H**6**M    c                    t        j                  | j                               }|j                  }t        j
                  j                  ||j                  t        j                  |            } |j                  j                  di |j                         }|j                  |j                  j                  d|fg      d   S )N)scope_listerGetr    )r   ComputeApiHolderReleaseTrackclientr
   r   ResolveAsResource	resourcescompute_flagsGetDefaultScopeListermessagesComputeMachineImagesGetRequestAsDictMakeRequestsapitools_clientmachineImages)selfargsholderr   machine_image_refrequests         r   RunzDescribe.Run3   s    **4+<+<+>?F]]F 22DD"88@ E B
 =foo<< &

"
"
$&G !7!7!E!Eu!(!*  + ,,-/ /r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r.   r   r   r   r
   r
      s6    0 5
-  N N/r   r
   N)r2   
__future__r   r   r   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer   r!   1googlecloudsdk.command_lib.compute.machine_imagesDescribeCommandr
   r   r   r   <module>r;      s1    - &  ' 7 ( E C%/t## %/r   