
                            d Z ddlmZ ddlmZ ddlmZ ddlZddlmZ ddlmZ ddl	m
Z
  ej                  d	d
d       ej                  ej                  j                        ej                   G d dej                                              Z ej                  d	d
d       ej                  ej                  j$                  ej                  j&                         G d de                    Zy)z6List command for gcloud debug logpoints command group.    )absolute_import)division)unicode_literalsN)arg_parsers)base)searchFzPThis command is deprecated. Please use `gcloud dataplex entries search` instead.zSThis command has been removed. Please use `gcloud dataplex entries search` instead.)
is_removedwarningerrorc                   0    e Zd ZdZdddZed        Zd Zy)Searchz5Search Data Catalog for resources that match a query.zF          Search Data Catalog for resources that match a query.
      a            To search project 'my-project' for Data Catalog resources that
          match the simple predicate 'foo':

            $ {command} 'foo' --include-project-ids=my-project

          To search organization '1234' for Data Catalog resources that
          match entities whose names match the predicate 'foo':

            $ {command} 'name:foo' --include-organization-ids=1234
      )DESCRIPTIONEXAMPLESc                    | j                  dd       | j                  dt        j                  dt        j                  d      dt
        j                  d	
       | j                  dt        j                  dt        j                  d      dt
        j                  d
       | j                  ddt
        j                  d       | j                  dd      }|j                  ddd       |j                  dt        j                         dd       |j                  dt        j                         dd       |j                  dt        j                         dd       y ) Nqueryz            Query string in search query syntax in Data Catalog. For more
            information, see:
            https://cloud.google.com/data-catalog/docs/how-to/search-reference
        )helpz--limit   T)	unlimitedFzU            Maximum number of resources to list. The default is *unlimited*.
        )typerequire_coverage_in_testscategoryr   z--page-sizez            Some services group resource list output into pages. This flag specifies
            the maximum number of resources per page.
        z
--order-bya              Specifies the ordering of results. Defaults to 'relevance'.

            Currently supported case-sensitive choices are:

                *  relevance
                *  last_access_timestamp [asc|desc]: defaults to descending.
                *  last_modified_timestamp [asc|desc]: defaults to descending.

            To order by last modified timestamp ascending, specify:
            `--order-by="last_modified_timestamp desc"`.
        )r   r   r   z'Scope. Control the scope of the search.)requiredz--include-gcp-public-datasets
store_truezn            If True, include Google Cloud Platform public datasets in the search
            results.
        )actionr   z--include-project-idsPROJECTzH            List of Cloud Project IDs to include in the search.
        )r   metavarr   z--include-organization-idsORGANIZATIONzM            List of Cloud Organization IDs to include in the search.
        z--restricted-locationsLOCATIONz8            List of locations to search within.
        )	add_argumentr   
BoundedIntsysmaxsizer   LIST_COMMAND_FLAGSadd_argument_groupArgList)parserscope_groups     "lib/surface/data_catalog/search.pyArgszSearch.Args>   s   
   ##As{{dC"'((   ##As{{dC"'((  	 "'((	  $ ++1D , K '     "	   $  "	      "	      c                 2    d}t        j                  ||      S )Run the search command.v1r   r   selfargsversion_labels      r(   Runz
Search.Run   s    M==}--r*   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr)   r3    r*   r(   r   r      s4     >


	-" S Sj.r*   r   c                   *    e Zd Zej                  Zd Zy)
SearchBetac                 2    d}t        j                  ||      S )r,   v1beta1r.   r/   s      r(   r3   zSearchBeta.Run   s    M==}--r*   N)r4   r5   r6   r   r7   r3   r:   r*   r(   r<   r<      s     NN'.r*   r<   )r7   
__future__r   r   r   r!   googlecloudsdk.callioper   r   'googlecloudsdk.command_lib.data_catalogr   	DeprecateReleaseTracksReleaseTrackGADefaultUniverseOnlyCommandr   ALPHABETAr<   r:   r*   r(   <module>rJ      s     = &  ' 
 / ( : 	?	?
 D%%(()m.T\\ m.  *
m.` 	?	?
 D%%++T->->-C-CD. . E
.r*   