
    :                     >   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	lmZ  e
j                   e
j"                  j$                  e
j"                  j&                  e
j"                  j(                         G d
 de
j*                               Zd Zy)z+services peered-dns-domains delete command.    )absolute_import)division)unicode_literals)projects_api)peering)base)util)
propertiesc                   0    e Zd ZdZdddZed        Zd Zy)Listz=List the peered DNS domains for a private service connection.zj          This command lists the peered DNS domains for a private service
          connection.
          a            To list the peered DNS domains for a private service connection
          between service ``peering-service'' and the consumer network
          ``my-network'' in the current project, run:

            $ {command} --network=my-network --service=peering-service
          )DESCRIPTIONEXAMPLESc                     | j                  dddd       | j                  dddd	
       | j                  j                  d       y)zArgs is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go on
        the command line after this command. Positional arguments are allowed.
    z	--networkNETWORKTz8Network in the consumer project peered with the service.)metavarrequiredhelpz	--serviceSERVICEz servicenetworking.googleapis.comz7Name of the service to list the peered DNS domains for.)r   defaultr   zM
        table(
            name:sort=1,
            dnsSuffix
        )
    N)add_argumentdisplay_info	AddFormat)parsers    /lib/surface/services/peered_dns_domains/list.pyArgsz	List.Args4   sa     G	  I
 2F	  H
 !! # 	    c                     t         j                  j                  j                  j	                  d      }t        |      }t        j                  ||j                  |j                        }|S )zRun 'services peered-dns-domains list'.

    Args:
      args: argparse.Namespace, The arguments that this command was invoked
        with.

    Returns:
      The list of peered DNS domains.
    T)r   )
r
   VALUEScoreprojectGet_GetProjectNumberr   ListPeeredDnsDomainsservicenetwork)selfargsr    project_numberdomainss        r   RunzList.RunM   s[     $$,,00$0?G&w/N**G
 Nr   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r*    r   r   r   r      s2     F
-  	 	0r   r   c                 f    t        j                  t        j                  |             j                  S )N)r   r!   projects_utilParseProjectprojectNumber)
project_ids    r   r"   r"   a   s$    			-44Z@	A	O	OOr   N)r.   
__future__r   r   r   +googlecloudsdk.api_lib.cloudresourcemanagerr   googlecloudsdk.api_lib.servicesr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.projectsr	   r3   googlecloudsdk.corer
   ReleaseTracksReleaseTrackALPHABETAGADescribeCommandr   r"   r1   r   r   <module>rC      s    2 &  ' D 3 ( E * 
=4 =
=@Pr   