
    	                         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	  \R                  \R                  \R                  " \R                  R                  5       " S S\R                  5      5       5       5       rg)	z2Unset-value command for the Resource Settings CLI.    )utils)base)	arguments)
console_ioc                   .    \ rS rSrSr\S 5       rS rSrg)Clear   a  Remove the value of a resource setting.

Remove the value of a resource setting. This reverts the resource to
inheriting the resource settings from above it in the resource hierarchy,
if any is set on a resource above it.

## EXAMPLES

To unset the resource settings ``net-preferredDnsServers'' with the
project ``foo-project'', run:

  $ {command} net-preferredDnsServers --project=foo-project
c                 \    [         R                  " U 5        [         R                  " U 5        g )N)r   AddSettingsNameArgToParserAddResourceFlagsToParser)parsers    .lib/surface/resource_manager/settings/clear.pyArgs
Clear.Args+   s    ((0&&v.    c                     [         R                  " U5      n[        R                  " U5      n[        R
                  " SS9(       d  g[         R                  " X5      nUR                  U5      nU$ )zUnset the resource settings.

Args:
  args: argparse.Namespace, An object that contains the values for the
    arguments specified in the Args method.

Returns:
   The deleted settings.
zYour setting will be cleared.)messageN)	api_utilsGetServiceFromArgsr   GetSettingsPathFromArgsr   PromptContinueGetDeleteValueRequestFromArgsr   )selfargssettings_servicesetting_nameget_requestsetting_values         r   Run	Clear.Run0   sa     !33D9006L$$0 99$MK$**;7Mr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r   __static_attributes__r!   r   r   r   r      s      / /r   r   N)r&   0googlecloudsdk.api_lib.resource_manager.settingsr   r   googlecloudsdk.callioper   4googlecloudsdk.command_lib.resource_manager.settingsr   googlecloudsdk.core.consoler   HiddenDefaultUniverseOnlyReleaseTracksReleaseTrackALPHADescribeCommandr   r!   r   r   <module>r3      sn    9 P ( J F 2 D%%++,*D   * -  *r   