
                            S r SSKrSSKJr  SSKJr  SSKJr  SSKJ	r	  SSKJ
r  SSKJr  SS	KJr  \R"                  " \R$                  R&                  5      \R(                   " S
 S\	R*                  \R,                  5      5       5       rg)z<Command to delete a database migration conversion workspace.    N)Optional)resource_args)base)command_mixin)flags)
console_io)datamigration_v1_messagesc                       \ rS rSrSrSSS.r\S 5       r\S\R                  SS	4S
 j5       r
S\R                  S\\R                     4S jrSrg	)Delete   z1Delete a Database Migration conversion workspace.zA
        Delete a Database Migration conversion workspace.
      z        To delete a conversion workspace called 'my-conversion-workspace', run:

            $ {command} my-conversion-workspace --region=us-central1
      )DESCRIPTIONEXAMPLESc                 ^    [         R                  " U S5        [        R                  " U 5        g)zCommon arguments for all release tracks.

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 deleteN)r   !AddConversionWorkspaceResourceArgpc_flagsAddNoAsyncFlagparsers    >lib/surface/database_migration/conversion_workspaces/delete.py
CommonArgsDelete.CommonArgs,   s"     33FKHF#    r   returnNc                 .    [         R                  U 5        g)z@Args is called by calliope to gather arguments for this command.N)r   r   r   s    r   ArgsDelete.Args7   s     fr   argsc                 H   UR                   R                  R                  5       n[        R                  " SUR                  5        S3S9(       d  gU R                  R                  R                  UR                  5       S9nU R                  UUSUR                  S5      SS	9$ )
a  Delete a Database Migration conversion workspace.

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

Returns:
  An Optional[dict] object representing the operations resource describing
  the delete
  operation if the delete was successful.
z-You are about to delete conversion workspace z.
Are you sure?)messageN)nameDeletedno_asyncF)conversion_workspace_refresult_operationoperation_namesynchas_resource)CONCEPTSconversion_workspaceParser   PromptContinueRelativeNameclientcrudr   HandleOperationResultIsKnownAndSpecified)selfr   r#   r$   s       r   Run
Delete.Run<   s      $}}AAGGI$$(5578 9 {{''..%224 /  %%!9) %%j1 &  r    )__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   argparseArgumentParserr   	Namespacer   messages	Operationr2   __static_attributes__r4   r   r   r   r      sx     :

		- $ $ 8** t  !h(( !Xh6H6H-I !r   r   )r9   r<   typingr   )googlecloudsdk.api_lib.database_migrationr   googlecloudsdk.callioper   Cgooglecloudsdk.command_lib.database_migration.conversion_workspacesr   r   r   googlecloudsdk.core.consoler   6googlecloudsdk.generated_clients.apis.datamigration.v1r	   r?   ReleaseTracksReleaseTrackGADefaultUniverseOnly ConversionWorkspacesCommandMixinCommandr   r4   r   r   <module>rN      so    C   C ( ] a 2 h D%%(()?];;T\\ ?  *?r   