
                             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  \R                   " S	 S
\R                  5      5       rg)z0Command to update a Transfer Service agent pool.    )absolute_import)division)unicode_literals)apis)base)agent_pools_flag_util)	name_utilc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Update   z%Update a Transfer Service agent pool.z"      Update an agent pool.
      a        To remove the bandwidth limit for agent pool 'foo', run:

          $ {command} foo --clear-bandwidth-limit

      To remove the display name for agent pool 'foo', run:

          $ {command} foo --clear-display-name

      To update the bandwidth limit for agent pool 'foo' to 100 MB/s, run:

          $ {command} foo --bandwidth-limit=100

      To update the display name for agent pool 'foo' to 'example name', run:

          $ {command} foo --display-name="example name"
      )DESCRIPTIONEXAMPLESc                 t    [         R                  " U 5        U R                  SSSS9  U R                  SSSS9  g )Nz--clear-display-name
store_truez,Remove the display name from the agent pool.)actionhelpz--clear-bandwidth-limitzpRemove the agent pool's bandwidth limit, which enables the pool's agents to use all bandwidth available to them.)r   setup_parseradd_argument)parsers    *lib/surface/transfer/agent_pools/update.pyArgsUpdate.Args:   sL    &&v.
;  = !:  ;    c                    [         R                  " SS5      n[         R                  " SS5      nUR                  5       n/ nUR                  (       d  UR
                  (       a@  UR                  S5        UR                  (       a  UR                  UR                  S9Ul        UR                  (       d  UR                  (       a"  UR                  S5        UR                  Ul        U(       a  SR                  U5      nOS n[        R                  " UR                  5      nUR                   R#                  UR%                  UUUS95      $ )Ntransferv1bandwidth_limit)	limitMbpsdisplay_name,)	agentPoolname
updateMask)r   GetClientInstanceGetMessagesModule	AgentPoolr   clear_bandwidth_limitappendBandwidthLimitbandwidthLimitr   clear_display_namedisplayNamejoinr	   add_agent_pool_prefixr"   projects_agentPoolsPatch-StoragetransferProjectsAgentPoolsPatchRequest)selfargsclientmessagesagent_pool_objectupdate_mask_listupdate_maskformatted_agent_pool_names           r   Run
Update.RunG   s   ##J5F%%j$7H **,t99/0			+3+B+B** ,C ,,(D33n-&*&7&7#HH-.kk ) ? ?		 J%%++>>'*" 	? 	$% %r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r:   __static_attributes__r<   r   r   r   r      s/    -


-4 
; 
;%r   r   N)rA   
__future__r   r   r   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.transferr   r	   UniverseCompatibleCommandr   r<   r   r   <module>rK      sG    7 &  ' , ( E 9 D%T\\ D% D%r   