
                         D   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ d	d
dZ e
j                  e
j                  j                   e
j                  j"                  e
j                  j$                         G d de
j&                               Zee_        y)z('notebooks environments create' command.    )absolute_import)division)unicode_literals)environments)util)base)flagsz0
        Request for creating environments.
    a  
    To create an environment with id 'example-environment' in location
    'us-central1-a' using a container repository, run:

      $ {command} example-environment --location=us-central1-a --container-repository=gcr.io/deeplearning-platform-release/base-cpu --container-tag=test-tag --description=test-description --post-startup-script=gs://path-to-file/file-name --display-name=test-display-name --async

    To create an environment with id 'example-environment' in location
    'us-central1-a' using a VM Image Family, run:

      $ {command} example-environment --vm-image-project=deeplearning-platform-release --vm-image-family=caffe1-latest-cpu-experimental

    To create an environment with id 'example-environment' in location
    'us-central1-a' using a VM Image, run:

      $ {command} example-environment --location=us-central1-a --vm-image-project=deeplearning-platform-release --vm-image-name=tf2-2-1-cu101-notebooks-20200110
    )DESCRIPTIONEXAMPLESc                   &    e Zd ZdZed        Zd Zy)Createz"Request for creating environments.c                 v    t        j                  | j                               }t        j                  ||       y)z Register flags for this command.N)r   ApiVersionSelectorReleaseTrackr	   AddCreateEnvironmentFlags)clsparserapi_versions      ,lib/surface/notebooks/environments/create.pyArgszCreate.Args8   s-     ))#*:*:*<=K	##K8    c                    | j                         }t        j                  |      }t        j                  |      }|j                  }|j                  t        j                  ||            }t        j                  ||||      S )z9This is what gets called when the user runs this command.)	r   r   	GetClientGetMessagesprojects_locations_environmentsr   env_utilCreateEnvironmentCreateRequest	HandleLRO)selfargsrelease_trackclientmessagesenvironment_service	operations          r   Runz
Create.Run>   sx    %%'M^^M*F.H @@#**//h?AIi/B+- -r   N)__name__
__module____qualname____doc__classmethodr   r&    r   r   r   r   3   s     +9 9
	-r   r   N)r*   
__future__r   r   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>r8      s    / &  ' E 1 ( 6		2 D%%++T->->-C-C%%((*-T -*-* % r   