
                         V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      rg)z/Shared base classes for runtimeconfig commands.    )util)base)flagsc                   .    \ rS rSrSr\S 5       rS rSrg)VariableRetrieverCommand   z:A base command that retrieves a single variable object.
  c                 P    [         R                  " U 5        U R                  SSS9  g)zArgs is called by calliope to gather arguments for this command.

Args:
  parser: An argparse parser that you can use to add arguments that go
      on the command line after this command. Positional arguments are
      allowed.
namezThe variable name.)helpN)r   AddRequiredConfigFlagadd_argument)parsers    >lib/googlecloudsdk/command_lib/runtime_config/base_commands.pyArgsVariableRetrieverCommand.Args   s&     
'
%9:    c                     [         R                  " 5       n[         R                  " 5       n[         R                  " UR                  U5      nUR                  UR                  UR                  5       S95      $ )a	  Run a command that retrieves a variable.

Args:
  args: argparse.Namespace, The arguments that this command was invoked
      with.

Returns:
  The requested variable.

Raises:
  HttpException: An http error response was received while executing api
      request.
)r
   )r   VariableClientMessagesParseVariableNamer
   Get/RuntimeconfigProjectsConfigsVariablesGetRequestRelativeName)selfargsvariable_clientmessagesvar_resources        r   RunVariableRetrieverCommand.Run(   sf     ))+O}}H))$))T:L@@**, 	A 	
 r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r   __static_attributes__r!   r   r   r   r      s      	; 	;r   r   N)	r&   %googlecloudsdk.api_lib.runtime_configr   googlecloudsdk.callioper   )googlecloudsdk.command_lib.runtime_configr   DescribeCommandr   r!   r   r   <module>r-      s'     6 7 ( ;'t33 'r   