
    W                     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
)z9The `gcloud compute shared-vpc get-host-project` 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)GetHostProjectzMGet the shared VPC host project that the given project is associated with.
  EXAMPLESz
          If `service-project1` and `service-project2` are associated service
          projects of the shared VPC host project `host-project`,

            $ {command} service-project1

          will show the `host-project` project.
      c                 L    t        j                  d      j                  |        y )Nzget the host project for)r   GetProjectIdArgumentAddToParser)parsers    2lib/surface/compute/shared_vpc/get_host_project.pyArgszGetHostProject.Args*   s    	9:FFvN    c                 ~    t        j                  | j                               }|j                  |j                        S )N)r   GetXpnClientReleaseTrackr
   project)selfargs
xpn_clients      r   RunzGetHostProject.Run.   s0    %%d&7&7&9:J$$T\\22r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r    r   r   r
   r
      s3     

- O O3r   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-    @ &  ' 2 ( 83T\\ 3r   