
                            S r SSKrSSKJrJrJr  SSKJr  SSKJ	r	  SSK
Jr  SSK
Jr  Sr\	R                  " \	R                   R"                  5      \	R$                   " S	 S
\R&                  \	R(                  5      5       5       rg)zACommand to commit conversion workspaces for a database migration.    N)AnyDict	Generator)resource_args)base)command_mixin)flagsd   c                       \ rS rSrSrSSS.r\S\R                  SS4S	 j5       r	S
\R                  S\\\\4   SS4   4S jrSrg)DescribeEntities   zHDescribe database entities in a Database Migration conversion workspace.zX
        Describe database entities in a Database Migration conversion workspace.
      z        To describe the database entities of the source tree in a conversion
        workspace in a project and location `us-central1`, run:

            $ {command} my-conversion-workspace --region=us-central1 --tree-type=SOURCE
      )DESCRIPTIONEXAMPLESparserreturnNc                 2   [         R                  " U S5        [        R                  " U SS9  [        R                  " U 5        [        R
                  " U 5        [        R                  R                  U [        5        U R                  R                  S5        g )Nzdescribe entitiesT)requiredz
          table(
            tree:label=TREE_TYPE,
            entityType:label=ENTITY_TYPE,
            parentEntity:label=PARENT,
            shortName:label=NAME,
            status:label=STATUS
          )
        )r   !AddConversionWorkspaceResourceArgcw_flagsAddTreeTypeFlagAddCommitIdFlagAddUncommittedFlagr   PAGE_SIZE_FLAG
SetDefault_DEFAULT_PAGE_SIZEdisplay_info	AddFormat)r   s    Ilib/surface/database_migration/conversion_workspaces/describe_entities.pyArgsDescribeEntities.Args0   so    33F<OPVd3V$'""6+=>
!! #     argsc           
      .   UR                   R                  R                  5       nU R                  R                  R                  UR                  5       UR                  UR                  UR                  U R                  U5      UR                  S5      S9$ )zDescribe database entities for a DMS conversion workspace.

Args:
  args: argparse.Namespace, The arguments that this command was invoked
    with.

Returns:
  A list of entities for the specified conversion workspace and arguments.
	page_size)name	commit_iduncommitted	tree_typefilter_exprr$   )CONCEPTSconversion_workspaceParsecliententitiesr   RelativeNamer&   r'   r(   ExtractBackendFilterGetValue)selfr"   conversion_workspace_refs      r   RunDescribeEntities.RunB   s|      $}}AAGGI;;00%224..$$..--d3--, 1  r!    )__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodargparseArgumentParserr   	Namespacer   r   strr   r4   __static_attributes__r6   r!   r   r   r      sr     Q

	
- 8** t  " c3ht+,r!   r   )r;   r>   typingr   r   r   )googlecloudsdk.api_lib.database_migrationr   googlecloudsdk.callioper   Cgooglecloudsdk.command_lib.database_migration.conversion_workspacesr   r	   r   r   ReleaseTracksReleaseTrackGADefaultUniverseOnly ConversionWorkspacesCommandMixinListCommandr   r6   r!   r   <module>rM      sv    H  ' ' C ( ] a  D%%(()9229  *9r!   