ó
    €Ï…  ã                   ó†   • 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
\
R                  5      rg)zupdate command.é    )Úabsolute_import)Údivision)Úunicode_literals)Úscm)Úservices_util)Úarg_parsers)Úbasec                   ó.   • \ rS rSrSr\S 5       rS rSrg)ÚUpdateé   a  Update a quota override for a consumer.

This command updates a quota override for a consumer. The supported consumers
are projects, folders, and organizations. The override ID can be
found from list command output.

## EXAMPLES

To update a quota override for project with project number, run:

  $ {command} --service=example.googleapis.com --consumer=projects/12321
    --metric=example.googleapis.com/default_requests
    --unit=1/min/{project} --override-id=hello123 --value=360

To update a quota override for project with project ID, run:

  $ {command} --service=example.googleapis.com --consumer=projects/hello
    --metric=example.googleapis.com/default_requests
    --unit=1/min/{project} --override-id=hello123 --value=360

To update a quota override for an organization, run:

  $ {command} --service=example.googleapis.com --consumer=organizations/555
    --metric=example.googleapis.com/default_requests
    --unit=1/min/{project} --override-id=hello123 --value=360

To force the update of a quota override, run:

  $ {command} --service=example.googleapis.com --consumer=projects/12321
    --metric=example.googleapis.com/default_requests
    --unit=1/min/{project}  --override-id=hello123
    --dimensions=regions=us-central1
    --dimensions=zones=us-central1-c --value=360 --force
c                 óD  • U R                  SSSS9  U R                  SSSS9  U R                  SSSS9  U R                  S	SS
S9  U R                  S[        R                  " 5       S[        R                  SS9  U R                  S[        SSS9  U R                  SSSSS9  g)zÝArgs 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	--serviceTz+The service to update a quota override for.)ÚrequiredÚhelpz
--consumerz$The consumer to update override for.z--metricz*The metric to update a quota override for.z--unitz4The unit of a metric to update a quota override for.z--dimensionsz	KEY=VALUEz<The dimensions of the override, e.g. for specific locations.)ÚtypeÚmetavarÚactionr   z--valuezThe value of the override.)r   r   r   z--forceÚ
store_trueFz^Force override update even if the change results in a substantial decrease in available quota.)r   Údefaultr   N)Úadd_argumentr   ÚArgDictÚUpdateActionÚint)Úparsers    Ú%lib/surface/endpoints/quota/update.pyÚArgsÚUpdate.Args?   sð   € ð ×ÑØØØ:ð ñ <ð ×ÑØØØ3ð ñ 5ð ×ÑØØØ9ð ñ ;ð ×ÑØØØCð ñ Eð ×ÑØÜ× Ò Ó"ØÜ×'Ñ'ØKð ñ Mð ×ÑØœ dÐ1Mð ñ Oà
×ÑØØØð3ð	 ò 4ó    c           	      óv  • [         R                  " UR                  UR                  UR                  UR
                  UR                  UR                  UR                  5      nUR                  (       a  g[        R                  " UR                  [         R                  5      n[        R                  " U5        g)zŒRun 'endpoints quota update'.

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

Returns:
  Nothing.
N)r   ÚUpdateQuotaOverrideCallÚserviceÚconsumerÚmetricÚunitÚ
dimensionsÚvalueÚforceÚdoner   ÚWaitOperationÚnameÚGetOperationÚPrintOperation)ÚselfÚargsÚops      r   ÚRunÚ
Update.Runf   sv   € ô 
×	$Ò	$ T§\¡\°4·=±=À$Ç+Á+Ø%)§Y¡Y°·±ÀÇÁØ%)§Z¡Zó
1€Bð 
‡w‡wØÜ	×	$Ò	$ R§W¡W¬c×.>Ñ.>Ó	?€BÜ× Ò  Õ$r   © N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ústaticmethodr   r/   Ú__static_attributes__r1   r   r   r   r      s"   † ñ!ðF ñ$4ó ð$4õL%r   r   N)r6   Ú
__future__r   r   r   Úgooglecloudsdk.api_lib.servicesr   r   Úgooglecloudsdk.callioper   r	   ÚSilentCommandr   r1   r   r   Ú<module>r=      s3   ðñ å &Ý Ý 'å /Ý 9Ý /Ý (ô[%ˆT×Ñõ [%r   