
    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	S
.r\R                  \R                  " \R                  R                   5       " S S\R"                  5      5       5       r\R                  \R                  " \R                  R&                  5       " S S\R"                  5      5       5       rg)zThe app create command.    )appengine_api_client)base)create_util)log)
properties)
console_ioz        {description}
        a          To create an app with region chosen interactively, run:

            $ {command}

        To create an app in the us-central region, run:

            $ {command} --region=us-central

        To create an app that with a user-managed service account, run:

            $ {command} --service-account=SERVICE_ACCOUNT

        To create an app with minimum SSL policy allowing TLS 1.2 and above, run:

          $ {command} --ssl-policy=TLS_VERSION_1_2
        )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)Create1   ACreate an App Engine app within the current Google Cloud Project.c                 0    [         R                  " U 5        g Nr   AddAppCreateFlagsparsers    lib/surface/app/create.pyArgsCreate.Args8       !!&)    c                 `   [         R                  R                  R                  R	                  SS9n[
        R                  " U R                  5       5      nUR                  (       a7  [        R                  " UUUR                  UR                  UR                  S9  Or[        R                  " 5       (       aB  [        R                  " X25        [        R                   " UUUR                  UR                  S9  O[        R"                  " S5      e[$        R&                  R)                  S5        g NT)required)service_account
ssl_policyzPrompts are disabled. Region must be specified either by the `--region` flag or interactively. Use `gcloud app regions list` to list available regions.zYSuccess! The app is now created. Please use `gcloud app deploy` to deploy your first app.r   VALUEScoreprojectGetr   GetApiClientForTrackReleaseTrackregionr   	CreateAppr   r   r   	CanPromptCheckAppNotExistsCreateAppInteractivelyUnspecifiedRegionErrorr   statusPrintselfargsr"   
api_clients       r   Run
Create.Run<   s    $$,,00$0?G%::4;L;L;NOJ{{


++..__ 
				##J8((

..__	 ..-. . JJ E Fr    N__name__
__module____qualname____firstlineno____doc___DETAILED_HELPdetailed_helpstaticmethodr   r2   __static_attributes__r4   r   r   r   r   1   s%     J -* *Fr   r   c                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)
CreateBetaX   r   c                 0    [         R                  " U 5        g r   r   r   s    r   r   CreateBeta.Args_   r   r   c                 `   [         R                  R                  R                  R	                  SS9n[
        R                  " U R                  5       5      nUR                  (       a7  [        R                  " UUUR                  UR                  UR                  S9  Or[        R                  " 5       (       aB  [        R                  " X25        [        R                   " UUUR                  UR                  S9  O[        R"                  " S5      e[$        R&                  R)                  S5        g r   r   r.   s       r   r2   CreateBeta.Runc   s    $$,,00$0?G%::4;L;L;NOJ{{


++..__ 
				##J8((

..__	 ..- 
 JJ	8r   r4   Nr5   r4   r   r   r@   r@   X   s$     J -* *r   r@   N)r:   googlecloudsdk.api_lib.appr   googlecloudsdk.callioper   googlecloudsdk.command_lib.appr   googlecloudsdk.corer   r   googlecloudsdk.core.consoler   r;   DefaultUniverseOnlyReleaseTracksr%   GACreateCommandr   BETAr@   r4   r   r   <module>rP      s     < ( 6 # * 2	0 D%%(()"FT "F * "FJ D%%**+%## % , %r   