
    
                         d Z ddlmZ ddlmZ ddlmZ ddlmZ dZ ej                  ddd	
      ej                   G d dej                                      Zy)z?`gcloud domains registrations list-importable-domains` command.    )registrations)base)resource_args)utilztable(
    domainName.scope("domains"):label=DOMAIN,
    resourceState:label=RESOURCE_STATE,
    yearlyPrice.price():label=YEARLY_PRICE
)
TzhThis 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)ListImportableDomainsag  List Google Domains registrations importable into Cloud Domains.

  List Google Domains registrations that can be imported to a Cloud Domains
  project.

  Registrations with an IMPORTABLE resource state can be imported from
  Google Domains registrar to Cloud Domains.

  Registrations with a SUSPENDED, EXPIRED, or DELETED resource state must have
  their states resolved with Google Domains registrar to be imported.

  Registrations with an UNSUPPORTED resource state are not currently supported
  for import.

  ## EXAMPLES

  To list Google Domains registrations that can be imported, run:

    $ {command}
  c                    t        j                  | d       | j                  j                  dt        j
                  i       | j                  j                  t               t        j                  j                  |        y )Nzto import toprice)r   AddLocationResourceArgdisplay_infoAddTransformsr   TransformMoneyType	AddFormat_FORMATr   URI_FLAGRemoveFromParser)parsers    <lib/surface/domains/registrations/list_importable_domains.pyArgszListImportableDomains.ArgsB   sW    ((@
%%w0G0G&HI
!!'*MM""6*    c                    t        j                  |      }t        j                  |      }|j                  j                  j                         }|j                  ||j                  |j                  t        j                  |            S )N)limit	page_size
batch_size)r   GetApiVersionFromArgsRegistrationsClientCONCEPTSlocationParseRetrieveImportableDomainsr   r   r   GetListBatchSize)selfargsapi_versionclientlocation_refs        r   RunzListImportableDomains.RunI   sq    55d;K..{;F==))//1L++jj..((.	 , 0 0r   N)__name__
__module____qualname____doc__staticmethodr   r*    r   r   r   r      s     * + +
0r   r   N)r.   googlecloudsdk.api_lib.domainsr   googlecloudsdk.callioper   "googlecloudsdk.command_lib.domainsr   r   r   	DeprecateDefaultUniverseOnlyListCommandr   r0   r   r   <module>r7      si    F 8 ( < 3 	T	T
 (0D,, (0 
(0r   