
                             S r SSKJr  SSKJr  S rS rS rS rS r	\R                  " \R                  R                  5       " S	 S
\R                  5      5       rg)zGCommand to analyze resource move for a specified asset and destination.    )client_util)basec                 (    U R                  SSSSS9  g )Nz	--project
PROJECT_IDTz1The project ID or number to perform the analysis.metavarrequiredhelpadd_argumentparsers    !lib/surface/asset/analyze_move.pyAddProjectArgsr      s"    >	  @    c                 P    U R                  SSS9n[        U5        [        U5        g )NT)mutexr	   )	add_groupAddDestinationOrgArgsAddDestinationFolderArgs)r   destination_groups     r   AddDestinationGroupr      s*    &&TD&A)*,-r   c                 (    U R                  SSSSS9  g )Nz--destination-organizationORGANIZATION_IDFz8The destination organization ID to perform the analysis.r   r   r   s    r   r   r   $   s"    "E	  Gr   c                 (    U R                  SSSSS9  g )Nz--destination-folder	FOLDER_IDFz2The destination folder ID to perform the analysis.r   r   r   s    r   r   r   ,   s"    ?	  Ar   c                 *    U R                  SSSSSS9  g )Nz--blockers-onlyBLOCKERS_ONLYFzDetermines whether to perform analysis against blockers only. Leaving it empty means the full analysis will be performed including warnings and blockers for the specified resource move.)r   r	   defaultr
   r   r   s    r   AddBlockersOnlyArgsr    4   s'    ?  @r   c                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
AnalyzeMove?   zAnalyzes resource move.zE      Analyze resource migration from its current resource hierarchy.a<        To analyze the impacts of moving a project to a different organization, run:

          $ gcloud asset analyze-move --project=YOUR_PROJECT_ID --destination-organization=ORGANIZATION_ID

      To analyze the impacts of moving a project to a different folder, run:

          $ gcloud asset analyze-move --project=YOUR_PROJECT_ID --destination-folder=FOLDER_ID

      To analyze only the blockers of moving a project to a different folder, run:

          $ gcloud asset analyze-move --project=YOUR_PROJECT_ID --destination-folder=FOLDER_ID --blockers-only=true
      )DESCRIPTIONEXAMPLESc                 F    [        U 5        [        U 5        [        U 5        g N)r   r   r    r   s    r   ArgsAnalyzeMove.ArgsW   s    6r   c                 N    [         R                  " 5       nUR                  U5      $ r'   )r   AnalyzeMoveClientr"   )selfargsclients      r   RunAnalyzeMove.Run]   s!    **,Fd##r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr(   r/   __static_attributes__r1   r   r   r"   r"   ?   s0    I
-(    
$r   r"   N)r6   googlecloudsdk.api_lib.assetr   googlecloudsdk.callioper   r   r   r   r   r    ReleaseTracksReleaseTrackGACommandr"   r1   r   r   <module>r@      sf    N 5 (@.GA@ D%%(()$$,, $ *$r   