
                            S r SSK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                  5      \R                   " S S	\R                   5      5       5       r\R$                  \R                  " \R                  R&                  5      \R                   " S
 S\R                   5      5       5       5       rg)z%QuotaAdjusterSettings update command.    N)encoding)quota_adjuster_settings)base)flags)logc                   8    \ rS rSrSr\S 5       rS rSS jrSr	g)	
UpdateBeta   ao  Update the QuotaAdjusterSettings of a resource container.

This command updates the enablement state of a resource container.

## EXAMPLES

To update QuotaAdjusterSettings for `projects/12321`, run:

  $ {command}
  --enablement=enabled
  --project=12321

To update QuotaAdjusterSettings for `folders/123`, run:

  $ {command}
  --enablement=inherited
  --folder=123
c                     [         R                  " U S5        [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        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container idNr   AddResourceFlags
EnablementAddToParserValidateOnlyparsers    .lib/surface/quotas/adjuster/settings/update.pyArgsUpdateBeta.Args0   D     
6>2	""6* 
$$V,    c                     [         R                  " U[        R                  R                  S9U l        UR                  U l        U R
                  $ zRun command.

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

Returns:
  The updated QuotaAdjusterSettings. If `--validate-only` is specified, it
  returns
  None or any possible error.
)release_track)r   UpdateQuotaAdjusterSettingsr   ReleaseTrackBETAupdated_resourcevalidate_onlyselfargss     r   RunUpdateBeta.Run?   sD     4OOD--22D ++D   r   c           	          U(       ae  U R                   (       dS  [        R                  R                  [        R
                  " [        R                  " U R                  5      SSSS95        g g g NT   ),:)	sort_keysindent
separators	r    r   statusPrintjsondumpsr   MessageToDictr   r"   resources_were_displayeds     r   EpilogUpdateBeta.EpilogQ   P    (:(:	jj
**$$T%:%:;#	 );r   r   r    NT
__name__
__module____qualname____firstlineno____doc__staticmethodr   r$   r6   __static_attributes__ r   r   r	   r	      s%    & - -!$	r   r	   c                   8    \ rS rSrSr\S 5       rS rSS jrSr	g)	UpdateAlpha]   as  Update the QuotaAdjusterSettings of a resource container.

This command updates the enablement state of the resource container.

## EXAMPLES

To update QuotaAdjusterSettings for `projects/12321`, run:

  $ {command}
  --enablement=Enabled
  --project=12321

  To update QuotaAdjusterSettings for `folders/123`, run:

  $ {command}
  --enablement=inherited
  --folder=123
c                     [         R                  " U S5        [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        gr   r   r   s    r   r   UpdateAlpha.Argst   r   r   c                     [         R                  " U[        R                  R                  S9U l        UR                  U l        U R
                  $ r   )r   r   r   r   GAr   r    r!   s     r   r$   UpdateAlpha.Run   sD     4OOD--00D ++D   r   c           	          U(       ae  U R                   (       dS  [        R                  R                  [        R
                  " [        R                  " U R                  5      SSSS95        g g g r'   r.   r4   s     r   r6   UpdateAlpha.Epilog   r8   r   r9   Nr:   r;   rC   r   r   rE   rE   ]   s%    & - -!&	r   rE   )r@   r1   apitools.base.pyr   googlecloudsdk.api_lib.quotasr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.quotasr   googlecloudsdk.corer   ReleaseTracksr   r   UniverseCompatibleUpdateCommandr	   HiddenALPHArE   rC   r   r   <module>rX      s    ,  % A ( 3 # D%%**+>## >  ,>B D%%++,?$$$ ?  - ?r   