
                         D   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
S.r\
R                  " \
R                  R                   \
R                  R"                  \
R                  R$                  5       " S S\
R&                  5      5       r\\l        g)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                   .    \ rS rSrSr\S 5       rS rSrg)Create3   z"Request for creating environments.c                 x    [         R                  " U R                  5       5      n[        R                  " X!5        g)z Register flags for this command.N)r   ApiVersionSelectorReleaseTrackr	   AddCreateEnvironmentFlags)clsparserapi_versions      ,lib/surface/notebooks/environments/create.pyArgsCreate.Args8   s+     ))#*:*:*<=K	##K8    c                    U R                  5       n[        R                  " U5      n[        R                  " U5      nUR                  nUR                  [        R                  " X5      5      n[        R                  " XaUU5      $ )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   Run
Create.Run>   st    %%'M^^M*F.H @@#**//?AIi/B+- -r    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r(   __static_attributes__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>r=      s    / &  ' E 1 ( 6		2 D%%++T->->-C-C%%((*-T -*-* % r   