
    B	                         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  \R                  " \R                  R                  5       " S S\R                  \R                  5      5       rg)	zresources describe command.    )
exceptions)dm_api_util)dm_base)basec                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	Describe   zgProvide information about a resource.

This command prints out all available details about a resource.
EXAMPLESzj
To display information about a resource, run:

  $ {command} --deployment=my-deployment my-resource-name
c                 $    U R                  SSS9  g)zArgs is called by calliope to gather arguments for this command.

Args:
  parser: An argparse parser that you can use to add arguments that go
      on the command line after this command. Positional arguments are
      allowed.
resourcezResource name.)helpN)add_argument)parsers    4lib/surface/deployment_manager/resources/describe.pyArgsDescribe.Args*   s     
)9:    c                 P    U R                   R                  R                  U R                  R	                  [
        R                  " 5       UR                  UR                  S95      $ ! [        R                   a*  n[        R                  " U[        R                  5      eSnAff = f)zRun 'resources describe'.

Args:
  args: argparse.Namespace, The arguments that this command was invoked
      with.

Returns:
  The requested resource.

Raises:
  HttpException: An http error response was received while executing api
      request.
)project
deploymentr   N)client	resourcesGetmessages$DeploymentmanagerResourcesGetRequestr   
GetProjectr   r   apitools_exceptions	HttpErrorr   HttpExceptionr   HTTP_ERROR_FORMAT)selfargserrors      r   RunDescribe.Run5   s    	K[[""&&
--
<
<((*}} =   (( K$$UK,I,IJJKs   A$A' 'B%;%B  B% N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r$   __static_attributes__r&   r   r   r   r      s2      - ; ;Kr   r   N)r+   apitools.base.pyr   r   )googlecloudsdk.api_lib.deployment_managerr   r   googlecloudsdk.callioper   UseDmApiDmApiVersionV2DescribeCommand	DmCommandr   r&   r   r   <module>r7      s^     " ? A = ( . 	'&&))*0Kt##W%6%6 0K +0Kr   