
    	                         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  G d	 d
ej                        Zy)z0gcloud dns record-sets changes describe command.    )absolute_import)division)unicode_literals)util)base)flags)
propertiesc                   &    e Zd ZdZed        Zd Zy)DescribezView the details of a change.

  This command displays the details of the specified change.

  ## EXAMPLES

  To display the details of a change, run:

    $ {command} change_id
  c                 r    t        j                         j                  |        | j                  ddd       y )N	change_id	CHANGE_IDz*The ID of the change you want details for.)metavarhelp)r   
GetZoneArgAddToParseradd_argument)parsers    /lib/surface/dns/record_sets/changes/describe.pyArgszDescribe.Args(   s4    	""6*
[9  ;    c                 n   d}| j                         t        j                   j                  k(  rd}n-| j                         t        j                   j                  k(  rd}t	        j
                  |      }t	        j                  |      j                  |j                  t        j                  j                  j                  j                  |j                  d      dd      }|j                  j!                  |j"                  j%                  |j                  |j&                  |j(                              S )	Nv1v1beta2v1alpha2z--zone)projectmanagedZonezdns.changes)params
collection)r   r   changeId)ReleaseTrackr   BETAALPHAr   GetApiClientGetRegistryParser   r	   VALUEScorer   	GetOrFailMakeGetOrRaisechangesGetMESSAGES_MODULEDnsChangesGetRequestr   r    )selfargsapi_version
dns_client
change_refs        r   RunzDescribe.Run/   s   K d//444k				 1 1 7 7	7k"";/J!!+.44!((--55??..x8
 ! 5 "J !!""77&&"..(( 	8 	*+ +r   N)__name__
__module____qualname____doc__staticmethodr   r4    r   r   r   r      s     	 ; ;+r   r   N)r8   
__future__r   r   r   googlecloudsdk.api_lib.dnsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.dnsr   googlecloudsdk.corer	   DescribeCommandr   r:   r   r   <module>rA      s1     7 &  ' + ( 0 *)+t## )+r   