
    W                         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
\	R                  5      rg)z1Command for approving an access approval request.    )absolute_import)division)unicode_literalsN)requests)base)request_namec                   V    \ rS rSrSrS\R                  " S5      0r\S 5       r	S r
Srg)	Approve   zApprove 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                 0    [         R                  " U 5        g)zAdd command-specific args.N)r   Args)parsers    /lib/surface/access_approval/requests/approve.pyr   Approve.Args,   s     f    c                 V    [         R                  " [        R                  " U5      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:
  Some value that we want to have printed later.
)r   r
   r   GetName)selfargss     r   RunApprove.Run1   s      L00677r    N)__name__
__module____qualname____firstlineno____doc__textwrapdedentdetailed_helpstaticmethodr   r   __static_attributes__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   