
    U
              
       `   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mZ ddlZdddZe	j"                   e	j$                  e	j&                  j(                         G d d ej*                  ej,                  e	j.                                            Zee_        y)z='Bare Metal Solution snapshot schedule policies list command.    )absolute_import)division)unicode_literalsN)	BmsClient)base)flags)log)
propertieszU
          List Bare Metal Solution snapshot schedule policies in a project.
        zh
          To list all snapshot schedule policies within the project, run:

            $ {command}
    )DESCRIPTIONEXAMPLESc                   ,    e Zd ZdZed        Zd Zd Zy)ListzAList Bare Metal Solution snapshot schedule policies in a project.c                     t         j                  j                  |        t         j                  j                  |        | j                  j                  d       y)z Register flags for this command.zYtable(name.segment(-1):label=NAME,id:label=ID,name.segment(-5):label=PROJECT,description)N)r   FILTER_FLAG_NO_SORTBY_DOCAddToParserLIMIT_FLAG_NO_SORTBY_DOCdisplay_info	AddFormat)parsers    2lib/surface/bms/snapshot_schedule_policies/list.pyArgsz	List.Args1   sG     
##//7	""..v6
 !!	67    c                     t               }t        j                  j                  j                  j                  d      }|j                  ||j                        S )NT)required)project_resourcelimit)r   r
   VALUEScoreprojectGetListSnapshotSchedulePoliciesr   )selfargsclientr   s       r   RunzList.Run>   sQ    [F$$,,00$0?G..59ZZ / A A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.EpilogD   s     $	jj() $r   N)__name__
__module____qualname____doc__staticmethodr   r%   r*    r   r   r   r   ,   s%     J
7 
7A*r   r   )r.   
__future__r   r   r   abc%googlecloudsdk.api_lib.bms.bms_clientr   googlecloudsdk.callioper   googlecloudsdk.command_lib.bmsr   googlecloudsdk.corer	   r
   sixDETAILED_HELPHiddenReleaseTracksReleaseTrackALPHAwith_metaclassABCMetaCacheCommandr   detailed_helpr0   r   r   <module>rA      s    D &  ' 
 ; ( 0 # * 
		 D%%++,*3ckk4+<+<= * - *@ # r   