
    
                         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                  d
dd      ej                   G d dej                                       Zy)z?`gcloud domains registrations get-transfer-parameters` command.    )absolute_import)division)unicode_literals)registrations)base)resource_args)util)logTzhThis command is deprecated. See https://cloud.google.com/domains/docs/deprecations/feature-deprecations.zkThis command has been removed. See https://cloud.google.com/domains/docs/deprecations/feature-deprecations.)
is_removedwarningerrorc                   &    e Zd ZdZed        Zd Zy)GetTransferParametersah  Get transfer parameters of a specific domain.

  Get parameters needed to transfer an existing domain from a different
  registrar. The parameters include the current registrar, name servers,
  transfer lock state, price, and supported privacy modes.

  ## EXAMPLES

  To check if ``example.com'' is available for transfer, run:

    $ {command} example.com
  c                 z    t        j                  |        t        j                  dd      j	                  |        y )Ndomainz&Domain to get transfer parameters for.)help)r   AddLocationResourceArgr   ArgumentAddToParser)parsers    <lib/surface/domains/registrations/get_transfer_parameters.pyArgszGetTransferParameters.Args6   s.    ((0MM5 k&    c                    t        j                  |      }t        j                  |      }|j                  j                  j                         }t        j                  |j                        }||j                  k7  r9t        j                  j                  dj                  |j                  |             |j                  ||      S )z(Run the get transfer parameters command.z8Domain name '{}' has been normalized to equivalent '{}'.)r   GetApiVersionFromArgsRegistrationsClientCONCEPTSlocationParser	   NormalizeDomainNamer   r
   statusPrintformatRetrieveTransferParameters)selfargsapi_versionclientlocation_refr   s         r   RunzGetTransferParameters.Run>   s    55d;K..{;F==))//1L%%dkk2F	jj
H
O
Okk6#$ ,,\6BBr   N)__name__
__module____qualname____doc__staticmethodr   r*    r   r   r   r      s!      Cr   r   N)r.   
__future__r   r   r   googlecloudsdk.api_lib.domainsr   googlecloudsdk.callioper   "googlecloudsdk.command_lib.domainsr   r	   googlecloudsdk.corer
   	DeprecateDefaultUniverseOnlyDescribeCommandr   r0   r   r   <module>r9      sq    F &  ' 8 ( < 3 # 	T	T
 $CD00 $C 
$Cr   