
    	                     &   S 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                  \R                  R                  5      \R                   " S S\R                  5      5       5       rg)	z&Command to update a folder capability.    )capabilities)arg_parsers)base)flagsc                   .    \ rS rSrSr\S 5       rS rSrg)Update   a  Update a folder capability.

Command to Update/Set the `value` field of the Folder capability. This
can be done by using the `--enable` flag to set the value to True, and
the `--no-enable` flag to set the value to False.

This command can fail for the following reasons:
    * There is no folder parenting the given capability name.
    * The active account does not have permission to update the given
      folder/capability.

## EXAMPLES

The following command updates a capability with the ID
`folders/123/capabilities/app-management` to have
the value True:

  $ {command} "folders/123/capabilities/app-management" --enable

In order to set the value to False, the following command can be used:

  $ {command} "folders/123/capabilities/app-management" --no-enable
c                     [         R                  " S5      R                  U 5        U R                  S[        R
                  SSSS9  U R                  SSS	9  g )
Nzyou want to update.z--enablevalueTzEnable the Capability)actiondestrequiredhelpz--update-maskziUpdate Mask. This is an optional field, and the only valid value this can be set to currently is "value".)r   )r   CapabilityIdArgAddToParseradd_argumentr   StoreTrueFalseAction)parsers    3lib/surface/resource_manager/capabilities/update.pyArgsUpdate.Args5   sa    	/0<<VD
//$   8      c                 p    UR                   n[        R                  " X!R                  UR                  5      $ )N)idr   UpdateCapabilityr   update_mask)selfargscapability_names      r   Run
Update.RunG   s-    ggO((T%5%5 r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r    __static_attributes__r"   r   r   r   r      s     
0  "r   r   N)r'   'googlecloudsdk.api_lib.resource_managerr   googlecloudsdk.callioper   r   +googlecloudsdk.command_lib.resource_managerr   ReleaseTracksReleaseTrackALPHABETAGADefaultUniverseOnlyCommandr   r"   r   r   <module>r4      s~    - A / ( = T..33T5F5F5I5I /T\\ / /r   