
                            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  SS
KJr  SSKJr  SrSrSr\
R,                  " \
R.                  R0                  \
R.                  R2                  \
R.                  R4                  5      \
R6                   " S S\
R8                  5      5       5       rg)z.Create a Google Cloud Platform git repository.    )absolute_import)division)unicode_literals)
exceptions)
sourcerepo)base)flags)log)
properties)	text_typezxResponseError: status=[{status_description}], code=[{status_code}], message=[{message}]. {details.message?
details:
{?}}zf
enable at: https://console.cloud.google.com/apis/library/sourcerepo.googleapis.com/?project={project}z9https://cloud.google.com/source-repositories/docs/pricingc                   .    \ rS rSrSr\S 5       rS rSrg)Create'   ae  Create a cloud source repository.

This command creates a named git repository for the currently
active Google Cloud Platform project.

## EXAMPLES

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

  $ gcloud init

  $ {command} REPOSITORY_NAME

Once you push contents to it, they can be browsed in the
Developers Console.
c                 $    U R                  SSS9  g )Nrepository_namez        Name of the repository. May contain between 3 and 63 (inclusive)
        lowercase letters, digits, and hyphens. Must start with a letter, and
        may not end with a hyphen.
        )help)add_argument)parsers    "lib/surface/source/repos/create.pyArgsCreate.Args>   s    
      c                    [         R                  " UR                  5      n[        R                  " UR                  5       5        [         R                  " 5       n UR                  U5      nU(       aM  [        R                  " UR                  5       5        [        R                  " SR                  [        S95        U$ g! [        R                   a  n[        R                   " U5      n["        Ul        S['        U5      ;   aX  [(        R                  [*        R,                  R.                  R0                  R3                  5       S9nU=R$                  U-  sl        UeSnAff = f)am  Create a GCP repository to the current directory.

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

Returns:
  (sourcerepo_v1_messages.Repo) The created respository.

Raises:
  sourcerepo.RepoResourceError: on resource initialization errors.
  c_exc.HttpException: on missing billing account, and when the repo name is
    already in use.
z=You may be billed for this repository. See {url} for details.)urlzAPI is not enabled)projectN)r   	ParseRepor   r	   REPO_NAME_VALIDATORNameSource
CreateRepor
   CreatedResourcewarningformat_BILLING_URLr   	HttpErrorc_excHttpException_ERROR_FORMATerror_formatr   _LINK_FORMATr   VALUEScorer   	GetOrFail)selfargsressource_handlerrepoerrorexclinks           r   Run
Create.RunH   s    

t33
4C 
chhj)&&(N&&s+d	CHHJ' --3VV-E	G	 

  &c&c	3	/""%%**22<<> # @D is   A$C E$B
EE$ N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r6   __static_attributes__r8   r   r   r   r   '   s     
$  #r   r   N)r=   
__future__r   r   r   apitools.base.pyr   googlecloudsdk.api_lib.sourcer   googlecloudsdk.callioper   r&   !googlecloudsdk.command_lib.sourcer	   googlecloudsdk.corer
   r   sixr   r(   r*   r$   ReleaseTracksReleaseTrackGAALPHABETADefaultUniverseOnlyCreateCommandr   r8   r   r   <module>rN      s    5 &  ' ' 4 ( 7 3 # * 5? K $++1143D3D3I3I @T @ @r   