
    A                        d Z ddlZddlmZmZm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                  e	j                   j"                        e	j$                   G d	 d
ej&                  e	j(                                      Zy)zACommand to commit conversion workspaces for a database migration.    N)AnyDict	Generator)resource_args)base)command_mixin)flagsd   c                       e Zd ZdZdddZedej                  ddfd       Zd	ej                  de
eeef   ddf   fd
Zy)DescribeIssueszEDescribe issues in a Database Migration Service conversion workspace.zf
        Describe database entity issues in a Database Migration Services conversion workspace.
      z          To describe the database entity issues in a conversion workspace
          in a project and location `us-central1`, run:

              $ {command} my-conversion-workspace --region=us-central1
      )DESCRIPTIONEXAMPLESparserreturnNc                    t        j                  | d       t        j                  |        t        j                  |        t
        j                  j                  | t               | j                  j                  d       y)zArgs is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go on
        the command line after this command. Positional arguments are allowed.
    zto describe issuesaF  
          table(
            parentEntity:label=PARENT,
            shortName:label=NAME,
            entityType:label=ENTITY_TYPE,
            issueType:label=ISSUE_TYPE,
            issueSeverity:label=ISSUE_SEVERITY,
            issueCode:label=ISSUE_CODE,
            issueMessage:label=ISSUE_MESSAGE
          )
        N)r   !AddConversionWorkspaceResourceArgcw_flagsAddCommitIdFlagAddUncommittedFlagr   PAGE_SIZE_FLAG
SetDefault_DEFAULT_PAGE_SIZEdisplay_info	AddFormat)r   s    Glib/surface/database_migration/conversion_workspaces/describe_issues.pyArgszDescribeIssues.Args0   sf     33$ V$'""6+=>
!! 
# 
    argsc           	         |j                   j                  j                         }| j                  j                  j                  |j                         |j                  |j                  | j                  |      |j                  d            S )a  Describe the database entity issues for a DMS conversion workspace.

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

    Returns:
      A list of database entity issues for the specified conversion workspace
      and arguments.
    	page_size)name	commit_iduncommittedfilter_exprr    )CONCEPTSconversion_workspaceParsecliententitiesr   RelativeNamer"   r#   ExtractBackendFilterGetValue)selfr   conversion_workspace_refs      r   RunzDescribeIssues.RunK   su      $}}AAGGI;;..%224..$$--d3--, /  r   )__name__
__module____qualname____doc__detailed_helpstaticmethodargparseArgumentParserr   	Namespacer   r   strr   r/    r   r   r   r      sr     N

	
- 8** t  4 c3ht+,r   r   )r3   r6   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   r:   r   r   <module>rE      s{    H  ' ' C ( ] a  D%%(()B22B  *Br   