
    R                         S r SSKJr  SSKJr  SSKJr  SSK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)z.Command for bigtable instances get-iam-policy.    )absolute_import)division)unicode_literalsN)	instances)util)base)	argumentsc                   V    \ rS rSrSrS\R                  " S5      0r\S 5       r	S r
Srg)	GetIamPolicy   z1Get the IAM policy for a Cloud Bigtable instance.EXAMPLESzk          To print the IAM policy for an instance, run:

            $ {command} my-instance-id

          c                 n    [         R                  " U SSS9  [        R                  R	                  U 5        g)z Register flags for this command.zto get the IAM policy forT)
positionalN)r	   AddInstanceResourceArgr   URI_FLAGRemoveFromParser)parsers    0lib/surface/bigtable/instances/get_iam_policy.pyArgsGetIamPolicy.Args*   s,     $$+>MM""6*    c                 n    [         R                  " UR                  5      n[        R                  " U5      $ )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:
  A IAM policy message.
)r   GetInstanceRefinstancer   r   )selfargsinstance_refs      r   RunGetIamPolicy.Run1   s)     &&t}}5L!!,//r    N)__name__
__module____qualname____firstlineno____doc__textwrapdedentdetailed_helpstaticmethodr   r   __static_attributes__r    r   r   r   r      s;    9 
//  - + +0r   r   )r%   
__future__r   r   r   r&   googlecloudsdk.api_lib.bigtabler   r   googlecloudsdk.callioper   #googlecloudsdk.command_lib.bigtabler	   ListCommandr   r    r   r   <module>r0      s4    5 &  '  5 0 ( 904## 0r   