
                             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  e	j                  e	j                  j                         G d	 d
e	j                               Zy)z-Command for getting access approval settings.    )absolute_import)division)unicode_literalsN)service_account)base)parentc                   N    e Zd ZdZd ej
                  d      iZed        Zd Z	y)GetzGet Access Approval service account.

  Retrieves the service account that is used by Access Approval to access KMS
  keys for signing approved approval requests.
  EXAMPLESa           To get the service account for the current project use

          $ {command}

        To get the service account for folder f1 use

          $ {command} --folder=f1

        To get the service account for organization org1 use

          $ {command} --organization=org1
        c                 .    t        j                  |        y)zAdd command-specific args.N)r   Args)parsers    2lib/surface/access_approval/service_account/get.pyr   zGet.Args5   s     KK    c                 ^    t        j                  |      }t        j                  d|z        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.
    z%s/serviceAccount)name)r   	GetParentr   r
   )selfargsps      r   RunzGet.Run:   s+     	A%81%<>>r   N)
__name__
__module____qualname____doc__textwrapdedentdetailed_helpstaticmethodr   r    r   r   r
   r
      s?     
(//  -"  ?r   r
   )r   
__future__r   r   r   r   &googlecloudsdk.api_lib.access_approvalr   googlecloudsdk.callioper   *googlecloudsdk.command_lib.access_approvalr   ReleaseTracksReleaseTrackGADescribeCommandr
   r    r   r   <module>r)      sY    4 &  '  B ( = D%%(()(?$

 (? *(?r   