
    a                     >    d Z ddlmZ ddlmZ ddlmZ d Zd Zd Zy)	z=Flags and helpers for the compute reservation block commands.    )absolute_import)division)unicode_literalsc                 8    | j                  ddt        dd       y)z2Adds flags to the parser for the describe command.z--block-name
BLOCK_NAMETz"The name of the reservation block.)metavartyperequiredhelpN)add_argumentstrparsers    Clib/googlecloudsdk/command_lib/compute/reservations/blocks/flags.pyAddDescribeFlagsr      s$    /  1    c                 <    d}| j                  dddddd|d	       y )
Nz-  The view type for the reservation block.
  z--full-view	FULL_VIEWz,Full detailed view of the reservation block.z,Basic default view of the reservation block.)BLOCK_VIEW_FULLBLOCK_VIEW_BASICBLOCK_VIEW_UNSPECIFIEDF)r   choicesdefaultr   r
   r   )r   	help_texts     r   AddFullViewFlagr       s:    ) 	KL '  
r   c           	      :    | j                  ddd ddddd	       y
)zAdds scope flag to the parser.z--scopeSCOPEc                 "    | j                         S )N)lower)xs    r   <lambda>zAddScopeFlags.<locals>.<lambda>6   s
    QWWYr   z:Perform maintenance on all hosts in the reservation block.zUPerform maintenance only on the hosts in the reservation block that have running VMs.z[Perform maintenance only on the hosts in the reservation block that don't have running VMs.)allrunningunusedz7The maintenance scope to set for the reservation block.)r   r	   r   r   Nr   r   s    r   AddScopeFlagsr&   1   s6    M(.
 E  r   N)__doc__
__future__r   r   r   r   r   r&    r   r   <module>r*      s#    D &  '1"r   