
                         >   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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*                  R,                  5      \	R.                   " S S
\	R0                  5      5       5       5       rg)z+Command for deleting recoverable snapshots.    )absolute_import)division)unicode_literals)base_classes)utils)base)flags)scopeDeleteEXAMPLESa-          To delete Compute Engine recoverable snapshots with the names 'recoverable-snapshot-1'
        and 'recoverable-snapshot-2', run:
          $ {command} recoverable-snapshot-1 recoverable-snapshot-2
        To list all recoverable snapshots that were created before a specific date, use
        the --filter flag with the `{parent_command} list` command.
          $ {parent_command} list --filter="creationTimestamp<'2017-01-01'"
        For more information on how to use --filter with the list command,
        run $ gcloud topic filters.
        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	   MakeRecoverableSnapshotArgr   RecoverableSnapshotArgAddArgumentparsers    3lib/surface/compute/recoverable_snapshots/delete.py
_AlphaArgsr   ,   s3    "'"B"B#& 	++F8+L    c                   8    \ rS rSrSr\r\S 5       rS r	S r
Srg)r   4   ztDelete Compute Engine recoverable snapshots.

*{command}* deletes one or more Compute Engine recoverable snapshots.
c                     [        U 5        g N)r   r   s    r   ArgsDelete.Args>   s
    vr   c                 $    U R                  U5      $ r   )_Run)selfargss     r   Run
Delete.RunB   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recoverableSnapshot)r   ComputeApiHolderReleaseTrackclientr   r   ResolveAsResource	resourcescompute_flagsGetDefaultScopeListercompute_scope	ScopeEnumGLOBALr   PromptForDeletionappendapitools_clientrecoverableSnapshotsDELETEmessages(ComputeRecoverableSnapshotsDeleteRequestr(   r)   MakeRequests)r!   r"   holderr,   recoverable_snapshot_refsrequestsrecoverable_snapshot_refs          r   r    Delete._RunE   s    **4+<+<+>?F]]F & = = O O"88@#--44	 !P ! 
56H$= oo

 
 
5
5

//
B
B.66":"N"N C  	 %> x((r    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r#   r    __static_attributes__rA   r   r   r   r   4   s*      - )r   N)rF   
__future__r   r   r   googlecloudsdk.api_lib.computer   r   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer	   r/   r
   r1   8googlecloudsdk.command_lib.compute.recoverable_snapshotsr8   rG   r   HiddenReleaseTracksr+   ALPHADefaultUniverseOnlyDeleteCommandr   rA   r   r   <module>rU      s    2 &  ' 7 0 ( E E J			M D%%++,")T ")  - ")r   