
    
                         d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddl	mZ dd	lmZ dd
lmZ  G d dej                        Zy)zCommand to unset properties.    )absolute_import)division)unicode_literals)base)
exceptions)
completers)flags)log)
propertiesc                   ^    e Zd ZdZdej
                  j                         iZed        Z	d Z
y)Unseta  Unset a Google Cloud CLI property.

  By default, unsets the property in your active configuration only. Use the
  `--installation` flag to unset the property across all configurations. See
  `gcloud topic configurations` for more information.

  ## AVAILABLE PROPERTIES

  {properties}

  ## EXAMPLES

  To unset the project property in the core section, run:

    $ {command} project

  To unset the zone property in the compute section, run:

    $ {command} compute/zone
  r   c                     | j                  ddt        j                  d       t        j                  j                  |        y)zAdds args for this command.propertyzSECTION/PROPERTYzkThe property to be unset. Note that SECTION/ is optional while referring to properties in the core section.)metavar	completerhelpN)add_argumentr   PropertiesCompleterr	   INSTALLATION_FLAGAddToParser)parsers    lib/surface/config/unset.pyArgsz
Unset.Args6   sA     "007	  8 
''/    c                    |j                   rt        j                  j                  nt        j                  j                  }t        j
                  |j                        }|st        j                  dd      t        j                  |d|       d}|j                   rd}t        j                  j                  dj                  ||             y)zRuns this command.r   z'Must be in the form: [SECTION/]PROPERTYN)scope zinstallation zUnset {0}property [{1}].)installationr   ScopeINSTALLATIONUSER
FromStringr   c_excInvalidArgumentExceptionPersistPropertyr
   statusPrintformat)selfargsr   prop	scope_msgs        r   Runz	Unset.RunB   s    .2.?.?Z**""'' 
   /D**
?A AtT7I!iJJ/66y$GHr   N)__name__
__module____qualname____doc__r   VALUESGetHelpStringdetailed_helpstaticmethodr   r-    r   r   r   r      s:    *  !2!2!@!@!BC-	0 	0Ir   r   N)r1   
__future__r   r   r   googlecloudsdk.callioper   r   r#   !googlecloudsdk.command_lib.configr   r	   googlecloudsdk.corer
   r   Commandr   r6   r   r   <module>r<      s7     # &  ' ( 7 8 3 # *2IDLL 2Ir   