
    f
                         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	K	Jr  SS
KJr  \R                  " \R                   R"                  5       " S S\R$                  5      5       rg)z0`gcloud tasks queues update-pull-queue` command.    )absolute_import)division)unicode_literals)GetApiAdapter)base)	constants)flags)parsers)logc                   .    \ rS rSrSr\S 5       rS rSrg)
UpdatePull   a  Update a pull queue.

The flags available to this command represent the fields of a pull queue
that are mutable. Attempting to use this command on a different type of queue
will result in an error.

If you have early access to Cloud Tasks, refer to the following guide for
more information about the different queue target types:
https://cloud.google.com/cloud-tasks/docs/queue-types.
For access, sign up here: https://goo.gl/Ya0AZd
c                     [         R                  " U S5        [         R                  " U 5        [         R                  " U 5        g )Nz	to update)r	   AddQueueResourceArgAddLocationFlagAddUpdatePullQueueFlags)parsers    -lib/surface/tasks/queues/update_pull_queue.pyArgsUpdatePull.Args+   s.    	fk2	&!	!!&)    c                    [         R                  " U[        R                  U R	                  5       S9  [        U R	                  5       5      nUR                  n[         R                  " UR                  UR                  5      n[         R                  " U[        R                  UR                  SU R	                  5       S9n[         R                  " U[        R                  U R	                  5       S9nUR                  XFUR                  S9n[        R                   R#                  SR%                  [         R&                  " UR)                  5       5      5      5        U$ )N)release_trackT)	is_updater   )retry_configzUpdated queue [{}].)r
   CheckUpdateArgsSpecifiedr   
PULL_QUEUEReleaseTrackr   queues
ParseQueuequeuelocationParseCreateOrUpdateQueueArgsmessagesGetSpecifiedFieldsMaskPatchretryConfigr   statusPrintformatGetConsolePromptStringRelativeName)selfargsapiqueues_client	queue_refqueue_configupdated_fieldsupdate_responses           r   RunUpdatePull.Run1   s   $$T9+?+?373D3D3FH
))+
,CJJM""4::t}}=I77'')+L 33i""$2C2C2EGN#))0H0H * JOJJ*11&&y'='='?@B Cr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r5   __static_attributes__r7   r   r   r   r      s     
 * *
r   r   N)r<   
__future__r   r   r   googlecloudsdk.api_lib.tasksr   googlecloudsdk.callioper    googlecloudsdk.command_lib.tasksr   r	   r
   googlecloudsdk.corer   ReleaseTracksr   ALPHAUpdateCommandr   r7   r   r   <module>rG      s]    7 &  ' 6 ( 6 2 4 # D%%++,%## % -%r   