
    A                     2   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	  \R                  " \R                  R                  \R                  R                  \R                  R                  5      \R                   " S S\R                   5      5       5       rg	)
z,Delete Google Cloud Platform git repository.    )
sourcerepo)actions)base)log)
console_ioc                   .    \ rS rSrSr\S 5       rS rSrg)Delete   a  Delete a cloud source repository.

This command deletes a named git repository from the currently
active Google Cloud Platform project.

## EXAMPLES

To delete a named repository in the current project issue the
following commands:

  $ gcloud init

  $ {command} REPOSITORY_NAME

c           
      p    U R                  SSS9  U R                  S[        R                  " SSSSS9S	S
9  g )Nrepository_namezName of the repository.)helpz--forcezKThe {flag_name} option has been removed; use --quiet to suppress prompting.T
store_true)errorremovedactionz1If provided, skip the delete confirmation prompt.)r   r   )add_argumentr   DeprecationAction)parsers    "lib/surface/source/repos/delete.pyArgsDelete.Args.   sP    
)0IJ
((,! A  B    c                    [         R                  " UR                  5      nSR                  UR	                  5       S9nSR                  UR	                  5       UR
                  S9n[        R                  " X4SS9(       aZ  [         R                  " 5       nUR                  U5        [        R                  " UR	                  5       5        UR	                  5       $ g)a=  Delete a named GCP repository in the current project.

Args:
  args: argparse.Namespace, the arguments this command is run with.

Returns:
  The path to the deleted git repository.

Raises:
  sourcerepo.RepoResourceError: on resource initialization errors.
  apitools.base.py.exceptions.HttpError: on request errors.
zEIf {repo} is deleted, the name cannot be reused for up to seven days.)repoz"Delete "{repo}" in project "{prj}")r   prjT)messageprompt_stringdefaultN)r   	ParseRepor   formatName
projectsIdr   PromptContinueSource
DeleteRepor   DeletedResource)selfargsresdelete_warningr   sourcerepo_handlers         r   Run
Delete.Run;   s     

t33
4C''-v388:v'> 9@@XXZS^^ A -M  TK%,,. ##C(	#((*%XXZKr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r,   __static_attributes__r.   r   r   r	   r	      s"    
  
B 
Br   r	   N)r3   googlecloudsdk.api_lib.sourcer   googlecloudsdk.callioper   r   googlecloudsdk.corer   googlecloudsdk.core.consoler   ReleaseTracksReleaseTrackGAALPHABETADefaultUniverseOnlyDeleteCommandr	   r.   r   r   <module>rA      s    3 5 + ( # 2 $++1143D3D3I3I 7T 7 7r   