
                         J   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                  " \R                  R                  \R                  R                  \R                  R                   5      \R"                   " S	 S
\R$                  5      5       5       rg)z%`gcloud source repos update` command.    )absolute_import)division)unicode_literals)
sourcerepo)base)flags)utilc                   .    \ rS rSrSr\S 5       rS rSrg)Update   a  Update the configuration of a Cloud Source Repository.

## EXAMPLES

To associate a Cloud Pub/Sub topic to receive repository update notifications,
run:

  $ {command} REPO_NAME \
      --add-topic=TOPIC_NAME \
      --service-account=SERVICE_ACCOUNT_EMAIL \
      --message-format=json
c                 0    [         R                  " U 5        g )N)r   AddRepoUpdateArgs)parsers    "lib/surface/source/repos/update.pyArgsUpdate.Args-   s    	F#    c                     [         R                  " 5       nUR                  R                  R	                  5       nUR                  U5      n[        R                  " X5      nUR                  US5      $ )NpubsubConfigs)	r   SourceCONCEPTSrepoParseGetRepor	    ParseSourceRepoWithModifiedTopic	PatchRepo)selfargsclientrepo_refr   updated_repos         r   Run
Update.Run1   sY     F}}!!'')H>>(#D88DLL/::r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r"   __static_attributes__r$   r   r   r   r      s     
 $ $;r   r   N)r)   
__future__r   r   r   googlecloudsdk.api_lib.sourcer   googlecloudsdk.callioper   !googlecloudsdk.command_lib.sourcer   r	   ReleaseTracksReleaseTrackGABETAALPHADefaultUniverseOnlyCommandr   r$   r   r   <module>r7      s    , &  ' 4 ( 3 2 $++00$2C2C2I2I ;T\\ ; ;r   