
                             S r SSKJr  SSKJr  SSKJr  \R                  " \R                  R                  \R                  R                  \R                  R                  5       " S S\R                  5      5       rg)z(Command for listing usable workstations.    )workstations)base)flagsc                   4    \ rS rSrSr\S 5       rS rS rSr	g)
ListUsable   zList usable workstations.

List all usable workstations under the specified configuration.

## EXAMPLES

  To list usable workstations, run

    $ {command}
c                     [         R                  R                  U 5        [        R                  " U SSS9  U R
                  R                  S5        g )NT)flag_anchorglobal_fallthroughaQ  
        table(
            name.basename():sort=1,
            name.scope(workstationConfigs).segment(0):label='CONFIG',
            name.scope(workstationsClusters).segment(0):label='CLUSTER',
            name.scope(locations).segment(0):label='REGION',
            state.sub("STATE_", ""),
            createTime.date()
        )
    )r   URI_FLAGRemoveFromParserr   AddConfigResourceArgdisplay_info	AddFormat)parsers    'lib/surface/workstations/list_usable.pyArgsListUsable.Args&   sD    MM""6*	DT !! 	# 		    c                     g)NzYworkstations.projects.locations.workstationClusters.workstationConfigs.usableWorkstations )selfs    r   
CollectionListUsable.Collection7   s    fr   c                 p    [         R                  " U R                  5       5      nUR                  U5      nU$ )N)r   WorkstationsReleaseTrackListUsableWorkstations)r   argsclientresponses       r   RunListUsable.Run:   s0    &&t'8'8':;F,,T2HOr   r   N)
__name__
__module____qualname____firstlineno____doc__staticmethodr   r   r"   __static_attributes__r   r   r   r   r      s&    	 	 	 gr   r   N)r(   #googlecloudsdk.api_lib.workstationsr   googlecloudsdk.callioper   'googlecloudsdk.command_lib.workstationsr   ReleaseTracksr   GABETAALPHAListCommandr   r   r   r   <module>r3      sl    / = ( 9 $++00$2C2C2I2I#!! ##r   