
    r                         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  G d de	j                        Zy)z$bigtable instances describe command.    )absolute_import)division)unicode_literalsN)util)base)	arguments)
properties)	resourcesc                   N    e Zd ZdZd ej
                  d      iZed        Zd Z	y)DescribeInstancez'Describe an existing Bigtable instance.EXAMPLESze          To view an instance's description, run:

            $ {command} my-instance-id

          c                 4    t        j                  | dd       y)z Register flags for this command.zto describeT)
positionalN)r   AddInstanceResourceArg)parsers    *lib/surface/bigtable/instances/describe.pyArgszDescribeInstance.Args+   s     $$V]tL    c                 |   t        j                         }t        j                  j	                  |j
                  dt        j                  j                  j                  j                  id      }t        j                         j                  |j                               }|j                  j                  |      }|S )zThis is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      Some value that we want to have printed later.
    
projectsIdz bigtableadmin.projects.instances)params
collection)name)r   GetAdminClientr
   REGISTRYParseinstancer	   VALUEScoreproject	GetOrFailGetAdminMessages(BigtableadminProjectsInstancesGetRequestRelativeNameprojects_instancesGet)selfargsclirefmsgr   s         r   RunzDescribeInstance.Run0   s     


C



"
"*++0088BB
 6 # 7C 


!
J
J K !C%%))#.HOr   N)
__name__
__module____qualname____doc__textwrapdedentdetailed_helpstaticmethodr   r,    r   r   r   r      s?    / 
(//  - M Mr   r   )r0   
__future__r   r   r   r1   googlecloudsdk.api_lib.bigtabler   googlecloudsdk.callioper   #googlecloudsdk.command_lib.bigtabler   googlecloudsdk.corer	   r
   DescribeCommandr   r5   r   r   <module>r<      s7    + &  '  0 ( 9 * )&t++ &r   