
                            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 dd
lmZ ej                    ej"                  ej$                  j&                         G d dej(                                      Zy)z-gcloud dns active-managed-zones list command.    )absolute_import)division)print_function)unicode_literals)util)apis)base)flags)
propertiesc                   &    e Zd ZdZed        Zd Zy)ListzView the list of all active managed zones that target your network.

  ## EXAMPLES

  To see the full list of active managed zones, run:

    $ {command}

  To see the list of the first 10 active managed zones, run:

    $ {command} --limit=10

  c                     t        j                         j                  |        | j                  j	                  d        y )N)r
   GetPeeringZoneListArgAddToParserdisplay_infoAddCacheUpdater)parsers    ,lib/surface/dns/active_peering_zones/list.pyArgsz	List.Args.   s-    	!--f5
''-    c           	         t        j                  d      }t        j                  dd      }|j                  |j                  n1t
        j                  j                  j                  j                         }|j                  }|j                  j                  |j                  ||            }g }|j                  D ]G  }|j                  |j                  j                  |j!                  ||j"                                     I |S )Nv1alpha2dns)projecttargetNetwork)r   peeringZoneId)r   GetApiClientr   GetMessagesModuler   r   VALUEScore	GetOrFailtarget_networkactivePeeringZonesr    DnsActivePeeringZonesListRequestpeeringZonesappendGetPeeringZoneInfo.DnsActivePeeringZonesGetPeeringZoneInfoRequestid)	selfargsr   messages
project_idnetwork_urlids_response	zone_listzone_ids	            r   RunzList.Run3   s    


J
'C%%eZ8H!%!9##++557 %%K))..11k 	2 	;<L I,,

 
 
3
3EE$GJJ F @AB -
 r   N)__name__
__module____qualname____doc__staticmethodr   r2    r   r   r   r      s      . .r   r   N)r6   
__future__r   r   r   r   googlecloudsdk.api_lib.dnsr   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper	   googlecloudsdk.command_lib.dnsr
   googlecloudsdk.corer   HiddenReleaseTracksReleaseTrackALPHAListCommandr   r8   r   r   <module>rD      sk    4 &  % ' + , ( 0 * D%%++,&4 & - &r   