
                             S 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                  R                  \R                  R                  5       " S	 S
\R                  5      5       r\	\l        g)z%'notebooks instances create' command.    )	instances)util)base)flagsz6
        Request for creating notebook instances.
    a  
    To create an instance from an environment, run:

      $ {command} example-instance --environment=example-env --environment-location=us-central1-a --machine-type=n1-standard-4 --location=us-central1-b

    To create an instance from a VmImage family, run:

      $ {command} example-instance --vm-image-project=deeplearning-platform-release --vm-image-family=caffe1-latest-cpu-experimental --machine-type=n1-standard-4 --location=us-central1-b

    To create an instance from a VmImage name, run:

      $ {command} example-instance --vm-image-project=deeplearning-platform-release --vm-image-name=tf2-2-1-cu101-notebooks-20200110 --machine-type=n1-standard-4 --location=us-central1-b

    To create an instance from a Container Repository, run:

      $ {command} example-instance --container-repository=gcr.io/deeplearning-platform-release/base-cpu --container-tag=test-tag --machine-type=n1-standard-4 --location=us-central1-b
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Create1   z!Request for creating an instance.c                 x    [         R                  " U R                  5       5      n[        R                  " X!5        g)z Register flags for this command.N)r   ApiVersionSelectorReleaseTrackr   AddCreateInstanceFlags)clsparserapi_versions      )lib/surface/notebooks/instances/create.pyArgsCreate.Args6   s+     ))#*:*:*<=K	  5    c                 >   U R                  5       n[        R                  " U5      n[        R                  " U5      nUR                  nUR                  [        R                  " XU5      5      n[        R                  " UUUU[        R                  R                  S9$ )z9This is what gets called when the user runs this command.)operation_type)r   r   	GetClientGetMessagesprojects_locations_instancesr
   instance_utilCreateInstanceCreateRequest	HandleLROOperationTypeCREATE)selfargsrelease_trackclientmessagesinstance_service	operations          r   Run
Create.Run<   s    %%'M^^M*F.H:: ''11$IKI""$2299; ;r    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r(   __static_attributes__r*   r   r   r
   r
   1   s     *6 6
;r   r
   N)r/    googlecloudsdk.api_lib.notebooksr   r   r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.notebooksr   DETAILED_HELPReleaseTracksr   ALPHABETAGACreateCommandr
   detailed_helpr*   r   r   <module>r<      s    , H 1 ( 6		4 D%%++T->->-C-C%%((*;T ;*;2 % r   