
    	                     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The configs update command.    )util)base)logc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	Update   zsUpdate runtime-config resources.

This command updates the runtime-config resource with the specified
description.
EXAMPLESa
  
          To update a runtime-config resource's description, run:

            $ {command} --description="My new description" my-config

          To remove a runtime-config resource's description, run:

            $ {command} --description="" my-config
          c                 F    U R                  SSSS9  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.
z--descriptionz)The new description of the configuration.T)helprequirednamezThe configuration name.)r   N)add_argument)parsers    ,lib/surface/runtime_config/configs/update.pyArgsUpdate.Args+   s6     8  
 %>?    c                 \   [         R                  " 5       n[         R                  " 5       n[         R                  " UR                  5      nUR                  UR                  UR                  5       UR                  S95      n[        R                  " U5        [         R                  " U5      $ )a  Run 'runtime-configs update'.

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

Returns:
  The updated runtime-config resource.

Raises:
  HttpException: An http error response was received while executing api
      request.
)r   description)r   ConfigClientMessagesParseConfigNamer   r   RuntimeConfigRelativeNamer   r   UpdatedResourceFormatConfig)selfargsconfig_clientmessagesconfig_resourceresults         r   Run
Update.Run;   s     %%'M}}H**4995O!! --/(( 	 	
F (V$$r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r#   __static_attributes__r%   r   r   r   r      s3      
- @ @%r   r   N)	r*   %googlecloudsdk.api_lib.runtime_configr   googlecloudsdk.callioper   googlecloudsdk.corer   UpdateCommandr   r%   r   r   <module>r2      s'     " 7 ( #>%T >%r   