
    F
                         S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r
  SSKJr  SrSS	0rS
 r\R                  " \R                   R"                  5      \R$                   " S S\R&                  5      5       5       rg)z%Command for deleting snapshot groups.    )base_classes)utils)base)flags)scopeDeleteEXAMPLESz        To delete Compute Engine snapshot groups with the names 'sg-1'
        and 'sg-2', run:

          $ {command} sg-1 sg-2
        c                 z    [         R                  " SS9[        l        [        R                  R	                  U SS9  g)z6A helper function to build args for ALPHA API version.T)pluraldelete)operation_typeN)r   MakeSnapshotGroupArgr   SnapshotGroupArgAddArgumentparsers    -lib/surface/compute/snapshot_groups/delete.py_CommonArgsr   %   s.    !66dC&%%fX%F    c                   8    \ rS rSrSr\r\S 5       rS r	S r
Srg)r   +   zhDelete Compute Engine snapshot groups.

*{command}* deletes one or more Compute Engine snapshot groups.
c                     [        U 5        g N)r   r   s    r   ArgsDelete.Args5   s
    r   c                 $    U R                  U5      $ r   )_Run)selfargss     r   Run
Delete.Run9   s    99T?r   c           
      "   [         R                  " U R                  5       5      nUR                  n[        R
                  R                  UUR                  [        R                  " U5      [        R                  R                  S9n[        R                  " U5        / nU H[  nUR                  UR                   R"                  [$        UR&                  R)                  UR*                  UR,                  S945        M]     UR/                  U5      $ )N)scope_listerdefault_scope)projectsnapshotGroup)r   ComputeApiHolderReleaseTrackclientr   r   ResolveAsResource	resourcescompute_flagsGetDefaultScopeListercompute_scope	ScopeEnumGLOBALr   PromptForDeletionappendapitools_clientsnapshotGroupsDELETEmessages"ComputeSnapshotGroupsDeleteRequestr%   r&   MakeRequests)r   r   holderr)   snapshot_group_refsrequestssnapshot_group_refs          r   r   Delete._Run<   s    **4+<+<+>?F]]F 11CC"88@#--44	 D  
/0H1oo

 
 
/
/

//
<
<(00.<< =  	 2 x((r    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r    r   __static_attributes__r>   r   r   r   r   +   s*    
  - )r   N)rC   googlecloudsdk.api_lib.computer   r   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer   r,   r   r.   2googlecloudsdk.command_lib.compute.snapshot_groupsr5   rD   r   ReleaseTracksr(   ALPHADefaultUniverseOnlyDeleteCommandr   r>   r   r   <module>rP      s~    , 7 0 ( E E D	 	G D%%++,&)T &)  -&)r   