
    	                        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S.r\
R"                  " \
R$                  R&                  5       " S S\
R(                  5      5       r\\l        g)z$'notebooks runtimes create' command.    )absolute_import)division)unicode_literals)runtimes)util)base)parser_errors)flags)
propertiesz5
        Request for creating notebook runtimes.
    z
    To create a runtime, run:

      $ {command} example-runtime --runtime-access-type=SINGLE_USER --runtime-owner=example@google.com --machine-type=n1-standard-4 --location=us-central1

    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Create+   z Request for creating an runtime.c                 x    [         R                  " U R                  5       5      n[        R                  " X!5        g)z Register flags for this command.N)r   ApiVersionSelectorReleaseTrackr
   AddCreateRuntimeFlags)clsparserapi_versions      (lib/surface/notebooks/runtimes/create.pyArgsCreate.Args/   s+     ))#*:*:*<=K	4    c                    U R                  5       n[        R                  " U5      n[        R                  " U5      nUR	                  S5      (       dK  [
        R                  R                  R                  R                  5       (       d  [        R                  " SS9eUR                  nUR                  [        R                  " X5      5      n[        R                   " UUUU[        R"                  R$                  S9$ )z9This is what gets called when the user runs this command.locationz
--location)argument)operation_type)r   r   	GetClientGetMessagesIsSpecifiedr   VALUES	notebooksr   IsExplicitlySetr	   RequiredErrorprojects_locations_runtimesr   runtime_utilCreateRuntimeCreateRequest	HandleLROOperationTypeCREATE)selfargsrelease_trackclientmessagesruntime_service	operations          r   Run
Create.Run5   s    %%'M^^M*F.HZ((''00@@BB''>>88O&&//?AI!!#1188: :r    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r4   __static_attributes__r6   r   r   r   r   +   s    (5 5
:r   r   N)r;   
__future__r   r   r    googlecloudsdk.api_lib.notebooksr   r(   r   googlecloudsdk.callioper   r	   $googlecloudsdk.command_lib.notebooksr
   googlecloudsdk.corer   DETAILED_HELPReleaseTracksr   GACreateCommandr   detailed_helpr6   r   r   <module>rH      sx    + &  ' E 1 ( 1 6 *		 D%%(():T : *:8 % r   