
    	                         d Z ddlmZ ddlmZ ddlmZ ddddZd	 Z	 ej                  ej                  j                        ej                   G d
 dej                                      Zy)z(Describe instant snapshot group command.    )base_classes)base)flagsz0Describe a Compute Engine instant snapshot groupz|        *{command}* displays all data associated with a Compute
        Engine instant snapshot group in a project.
        z        To describe the instant snapshot group 'instant-snapshot-group-1' in zone 'us-east1-a', run:

            $ {command} instant-snapshot-group-1 --zone=us-east1-a
        )briefDESCRIPTIONEXAMPLESc                     t        j                         t        _        t        j                  j	                  | d       y)z?A helper function to build args based on different API version.describe)operation_typeN)	isg_flagsMakeInstantSnapshotGroupArgDescribeISG_ARGAddArgument)parsers    7lib/surface/compute/instant_snapshot_groups/describe.py_CommonArgsr   #   s,    ::<(
vjA    c                   ,    e Zd ZdZed        Zd Zd Zy)r   z1Describe a Compute Engine instant snapshot group.c                     t        |       y N)r   )clsr   s     r   ArgszDescribe.Args.   s
    r   c           
         t        j                  | j                               }|j                  }|j                  }t
        j                  j                  ||j                        }|j                         dk(  r#|j                  j                  }|j                  }n"|j                  j                  }|j                  }|j                  |d |di |j!                         fg      S )Nzcompute.instantSnapshotGroupsGet )r   ComputeApiHolderReleaseTrackclientmessagesr   r   ResolveAsResource	resources
Collectionapitools_clientinstantSnapshotGroups&ComputeInstantSnapshotGroupsGetRequestregionInstantSnapshotGroups,ComputeRegionInstantSnapshotGroupsGetRequestMakeRequestsAsDict)selfargsholderr   r    isg_refservicerequest_types           r   _RunzDescribe._Run2   s    **4+<+<+>?F]]FH00v7G7GHG>>&&<<gDDl&&BBgJJl%!-!A0@!A!C  D E Er   c                 $    | j                  |      S r   )r1   )r+   r,   s     r   RunzDescribe.RunC   s    99T?r   N)__name__
__module____qualname____doc__classmethodr   r1   r3   r   r   r   r   r   )   s$     : E"r   r   N)r7   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   :googlecloudsdk.command_lib.compute.instant_snapshot_groupsr   r   DETAILED_HELPr   ReleaseTracksr   ALPHADefaultUniverseOnlyDescribeCommandr   r   r   r   <module>rA      sx    / 7 ( Y @B D%%++,t##   -r   