
    N
                     8   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y)z)gcloud dns managed-zone describe command.    )absolute_import)division)unicode_literals)managed_zones)util)base)
exceptions)flagsc                   6    e Zd ZdZed        Zed        Zd Zy)Describeac  View the details of a Cloud DNS managed-zone.

  This command displays the details of the specified managed-zone.

  ## EXAMPLES

  To display the details of your managed-zone, run:

    $ {command} my-zone

  To display the details of a zonal managed-zone in Zonal Cloud DNS service in
  us-east1-c, run:

    $ {command} my-zone --location=us-east1-c
  c                     | j                         t        j                   j                  t        j                   j                  fv S )N)ReleaseTrackr   BETAALPHA)clss    )lib/surface/dns/managed_zones/describe.py_BetaOrAlphazDescribe._BetaOrAlpha0   s:    $"3"3"8"8"&"3"3"9"9"; ; ;    c                     t        j                  d      j                  |       t        j                         j                  |       y )Nz-The name of the managed-zone to be described.)r
   GetZoneResourceArgAddToParserGetLocationArg)r   parsers     r   ArgszDescribe.Args5   s4    	799DV9L	&&v.r   c                    t        j                  | j                         |      }|dk(  r|j                  nd }t        j
                  j                  ||      }t        j                  |      }|j                  |j                  t        j                  ||      d      }|j                  dk(  s|j                  dk(  r t        j                  d|j                        |j                  |      S )Nv2zdns.managedZones)
collection.z..describe)r   GetApiFromTrackAndArgsr   locationr   ClientFromApiVersionGetRegistryParsezoneGetParamsForRegistrymanagedZoner	   BadArgumentExceptionGet)selfargsapi_versionr!   zones_clientregistryzone_refs          r   RunzDescribe.Run;   s    --d.?.?.A4HK +t 3t}}H ''66{HML,H~~		!!+t4%  'H s"h&:&:d&B++J8L8LMMH%%r   N)__name__
__module____qualname____doc__classmethodr   r   r1    r   r   r   r      s4      ; ; / /
&r   r   N)r5   
__future__r   r   r   googlecloudsdk.api_lib.dnsr   r   googlecloudsdk.callioper   r	   googlecloudsdk.command_lib.dnsr
   ReleaseTracksr   r   r   GADescribeCommandr   r7   r   r   <module>r?      s{     0 &  ' 4 + ( . 0 D%%++T->->-C-C%%((**&t## *&**&r   