
    ;                         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
\R                  5      rg)zACommand to show details for a specified Batch resource allowance.    )absolute_import)division)unicode_literals)
exceptions)resource_allowances)base)resource_argsc                   .    \ rS rSrSr\S 5       rS rSrg)Describe   a  Show details of a resource allowance.

This command can fail for the following reasons:
* The resource allowance specified does not exist.
* The active account does not have permission to access the given resource
allowance.

## EXAMPLES

To print details of the resource allowance with name
`projects/foo/locations/us-central1/resourceAllowances/bar`, run:

  $ {command} projects/foo/locations/us-central1/resourceAllowances/bar
c                 0    [         R                  " U 5        g )N)r	    AddResourceAllowanceResourceArgs)parsers    1lib/surface/batch/resource_allowances/describe.pyArgsDescribe.Args-   s    226:    c                    U R                  5       n[        R                  " U5      nUR                  R                  R                  5       n UR                  U5      $ ! [        R                   a  n[        R                  " USS9eS nAff = f)Nz+Could not fetch resource: {status_message}.)error_format)ReleaseTrackr   ResourceAllowancesClientCONCEPTSresource_allowanceParseGetapitools_exceptionsHttpNotFoundErrorr   HttpException)selfargsrelease_trackclientresource_allowance_refes         r   RunDescribe.Run1   s    %%'M 99-HF!]]==CCEIZZ.//00 I$$
GI IIs   A B1BB N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r%   __static_attributes__r'   r   r   r   r      s!     ; ;	Ir   r   N)r,   
__future__r   r   r   apitools.base.pyr   r   googlecloudsdk.api_lib.batchr   googlecloudsdk.api_lib.utilgooglecloudsdk.callioper    googlecloudsdk.command_lib.batchr	   DescribeCommandr   r'   r   r   <module>r6      s7     H &  ' > < 2 ( :It## Ir   