
    
                        d 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	  ej                  ej                  j                  ej                  j                  ej                  j                         G d dej                               Zy	)
zGet IAM Policy.    )absolute_import)division)unicode_literals)base)utilc                   .    e Zd ZdZddiZed        Zd Zy)GetIamPolicya  Get IAM policy for an IAP TCP Destination Group resource.

  *{command}* displays the IAM policy associated with an IAP TCP Destination
  Group resource. If formatted as JSON, the output can be edited and used as a
  policy  file for set-iam-policy. The output includes an "etag" field
  identifying the version emitted and allowing detection of concurrent policy
  updates; see
  $ {parent_command} set-iam-policy for additional details.
  EXAMPLESa            To get the IAM policy for the TCP Destination Group resource with name
          'my-group' and located in the region 'us-west1' within the active
          project, run:

            $ {command} --dest-group='my-group' --region='us-west1'

          To get the IAM policy for the TCP Destination Group resource with name
          'my-group' and located in the region 'us-west1' within project
          'project', run:

            $ {command} --dest-group='my-group' --region='us-west1'
            --project='project'

  c                 l    t        j                  |        t        j                  j	                  |        y)zRegister flags for this command.

    Args:
      parser: An argparse.ArgumentParser-like object. It is mocked out in order
        to capture some information, but behaves like an ArgumentParser.
    N)iap_utilAddIamDestGroupArgsr   URI_FLAGRemoveFromParser)parsers    1lib/surface/iap/tcp/dest_groups/get_iam_policy.pyArgszGetIamPolicy.Args8   s$       (MM""6*    c                 j    t        j                  | j                         |      }|j                         S )a  This 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:
      The specified function with its description and configured filter.
    )r   ParseIapDestGroupResourceReleaseTrackr	   )selfargsiap_iam_refs      r   RunzGetIamPolicy.RunC   s.     44T5F5F5H$OK##%%r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r    r   r   r	   r	      s1     -& + +&r   r	   N)r   
__future__r   r   r   googlecloudsdk.callioper   googlecloudsdk.command_lib.iapr   r   ReleaseTracksr   ALPHABETAGAListCommandr	   r!   r   r   <module>r*      sr     &  ' ( ; D%%++T->->-C-C%%((*3&4## 3&*3&r   