
    $                     z    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
  G d d	ej                        Zy
)z/The `gcloud compute shared-vpc enable` command.    )absolute_import)division)unicode_literals)xpn_api)base)flagsc                   .    e Zd ZdZddiZed        Zd Zy)EnablezEnable the given project as a shared VPC host.

  That is, after running this command, one *can* enable another project to use
  the VPC networks shared by this project.
  EXAMPLESzq
          To enable the project `myproject` as a shared VPC host, run:

            $ {command} myproject
      c                 L    t        j                  d      j                  |        y )Nzenable as a shared VPC host)r   GetProjectIdArgumentAddToParser)parsers    (lib/surface/compute/shared_vpc/enable.pyArgszEnable.Args*   s    	<=II    c                     t        j                  | j                               }|j                  |j                         y )N)r   GetXpnClientReleaseTrack
EnableHostproject)selfargs
xpn_clients      r   Runz
Enable.Run/   s-    %%d&7&7&9:J$,,'r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r    r   r   r
   r
      s1     
-  (r   r
   N)r   
__future__r   r   r   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   &googlecloudsdk.command_lib.compute.xpnr   Commandr
   r"   r   r   <module>r(      s,    6 &  ' 2 ( 8(T\\ (r   