
    >              	       `   d Z ddlmZ ddlmZ ddlmZ ddlZddlmZ ddlm	Z	 ddl
mZ dd	lmZ ddlZd
ddZ e	j                   e	j"                  j$                  e	j"                  j&                         G d d ej(                  ej*                  e	j,                                     Zee_        y)z,'Bare Metal Solution snapshots list command.    )absolute_import)division)unicode_literalsN)	BmsClient)base)flags)logzI
          List snapshots for a Bare Metal Solution boot volume.
        z
          To list snapshots on boot volume ``my-boot-volume'' in region
          ``us-central1'', run:

            $ {command} --region=us-central1 --volume=my-boot-volume
    )DESCRIPTIONEXAMPLESc                   ,    e Zd ZdZed        Zd Zd Zy)Listz5List snapshots for a Bare Metal Solution boot volume.c                     t         j                  j                  |        t         j                  j                  |        t        j                  | d       | j
                  j                  d       y)z Register flags for this command.z4The Bare Metal Solution volume to list snapshots of.)group_help_textztable(name.segment(-1):label=NAME,id:label=ID,name.segment(-5):label=REGION,name.segment(-3):label=VOLUME,description,createTime,type)N)r   FILTER_FLAG_NO_SORTBY_DOCAddToParserLIMIT_FLAG_NO_SORTBY_DOCAddVolumeArgToParserdisplay_info	AddFormat)parsers    )lib/surface/bms/volumes/snapshots/list.pyArgsz	List.Args1   s^     
##//7	""..v6	NP !!	EF    c                     |j                   j                  j                         }t               }|j	                  ||j
                        S )N)limit)CONCEPTSvolumeParser   ListSnapshotsForVolumer   )selfargsr   clients       r   RunzList.RunE   sB    ]]!!'')F[F((/3zz ) ; ;r   c                 H    |s t         j                  j                  d       yy)zCalled after resources are displayed if the default format was used.

    Args:
      resources_were_displayed: True if resources were displayed.
    zListed 0 items.N)r	   statusPrint)r    resources_were_displayeds     r   EpilogzList.EpilogK   s     $	jj() $r   N)__name__
__module____qualname____doc__staticmethodr   r#   r(    r   r   r   r   -   s#    =F F&;*r   r   )r,   
__future__r   r   r   abc%googlecloudsdk.api_lib.bms.bms_clientr   googlecloudsdk.callioper   googlecloudsdk.command_lib.bmsr   googlecloudsdk.corer	   sixDETAILED_HELPReleaseTracksReleaseTrackALPHAGAwith_metaclassABCMetaCacheCommandr   detailed_helpr.   r   r   <module>r?      s    3 &  ' 
 ; ( 0 # 
		 D%%++T->->-A-AB$*3ckk4+<+<= $* C$*L # r   