
    	                         S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  SSK
Jr  SS	KJr  SS
KJr  SSKJr  \R$                   " S S\R&                  5      5       rg)z(Command to activate named configuration.    )absolute_import)division)unicode_literals)base)
completers)config_validators)util)log)
properties)named_configsc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Activate   z*Activates an existing named configuration.z          {description}

          See `gcloud topic configurations` for an overview of named
          configurations.
          z          To activate an existing configuration named `my-config`, run:

            $ {command} my-config

          To list all properties in the activated configuration, run:

            $ gcloud config list --all
          )DESCRIPTIONEXAMPLESc                 B    U R                  S[        R                  SS9  g)zAdds args for this command.configuration_namez%Name of the configuration to activate)	completerhelpN)add_argumentr   NamedConfigCompleter)parsers    -lib/surface/config/configurations/activate.pyArgsActivate.Args5   s&     114  6    c                    [         R                  R                  UR                  5        [        R
                  R                  SR                  UR                  5      5        [        R                  R                  R                  R                  5       nU(       a,  [        R                  " U5        [        R                   " U5        UR                  $ )NzActivated [{0}].
)r   ConfigurationStoreActivateConfigr   r
   statuswriteformatr   VALUEScoreprojectGetr   !WarnIfSettingProjectWhenAdcExistsprojects_util/CheckAndPrintEnvironmentTagMessageWithProjectID)selfargs
project_ids      r   RunActivate.Run=   s    $$33D4K4KLJJ)001H1HIJ""''//335J99*ECCJO"""r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r-   __static_attributes__r/   r   r   r   r      s/    2-$ 6 6	#r   r   N)r4   
__future__r   r   r   googlecloudsdk.callioper   !googlecloudsdk.command_lib.configr   r   #googlecloudsdk.command_lib.projectsr	   r(   googlecloudsdk.corer
   r   "googlecloudsdk.core.configurationsr   UniverseCompatibleSilentCommandr   r/   r   r   <module>r@      sO     / &  ' ( 8 ? E # * < &#t!! &# &#r   