
    W                         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  G d	 d
e	j                        Zy)z1Command for approving an access approval request.    )absolute_import)division)unicode_literalsN)requests)base)request_namec                   N    e Zd ZdZd ej
                  d      iZed        Zd Z	y)ApprovezApprove an Access Approval request.

  Approve an Access Approval request. This will raise an error if the request
  does not exist or is not in a pending state.
  EXAMPLESz        To approve an approval request using its name (e.g. projects/12345/approvalRequests/abc123), run:

          $ {command} projects/12345/approvalRequests/abc123
        c                 .    t        j                  |        y)zAdd command-specific args.N)r   Args)parsers    /lib/surface/access_approval/requests/approve.pyr   zApprove.Args,   s     f    c                 R    t        j                  t        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.
    )r   r
   r   GetName)selfargss     r   RunzApprove.Run1   s      L00677r   N)
__name__
__module____qualname____doc__textwrapdedentdetailed_helpstaticmethodr   r    r   r   r
   r
      s?     
(//  -  
8r   r
   )r   
__future__r   r   r   r   &googlecloudsdk.api_lib.access_approvalr   googlecloudsdk.callioper   *googlecloudsdk.command_lib.access_approvalr   Commandr
   r   r   r   <module>r$      s/    8 &  '  ; ( C8dll 8r   