
                            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  \R                  " \R                   R"                  5      \R$                   " S	 S
\	R&                  \R(                  5      5       5       rg)zACommand to commit conversion workspaces for a database migration.    N)Optional)resource_args)base)command_mixin)flags)datamigration_v1_messagesc                       \ rS rSrSrSSS.r\S\R                  SS4S	 j5       r	S
\R                  S\\R                     4S jrSrg)Commit   z9Commit a Database Migration Service conversion workspace.zI
        Commit a Database Migration Service conversion workspace.
      z        To commit a version of conversion workspace called
        my-conversion-workspace:

            $ {command} my-conversion-workspace --region=us-central1
            --commit-name=my-commit
        )DESCRIPTIONEXAMPLESparserreturnNc                     [         R                  " U S5        [        R                  " U 5        [        R                  " U 5        g)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 commitN)r   !AddConversionWorkspaceResourceArgcw_flagsAddNoAsyncFlagAddCommitNameFlag)r   s    >lib/surface/database_migration/conversion_workspaces/commit.pyArgsCommit.Args-   s0     33FKHF#v&    argsc                    UR                   R                  R                  5       nU R                  R                  R                  UR                  5       UR                  S9nU R                  UUSUR                  S5      S9$ )a  Commit a Database Migration Service conversion workspace.

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

Returns:
  A dict object representing the operations resource describing the commit
  operation if the commit was successful.
)namecommit_name	Committedno_async)conversion_workspace_refresult_operationoperation_namesync)
CONCEPTSconversion_workspaceParseclient
operationsr
   RelativeNamer   HandleOperationResultIsKnownAndSpecified)selfr   r   r    s       r   Run
Commit.Run9   s      $}}AAGGI{{--44%224$$ 5 
 %%!9)"%%j1	 &  r    )__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodargparseArgumentParserr   	Namespacer   messages	Operationr,   __static_attributes__r.   r   r   r
   r
      se     B
	- 	'8** 	't 	' 	'h(( Xh6H6H-I r   r
   )r3   r6   typingr   )googlecloudsdk.api_lib.database_migrationr   googlecloudsdk.callioper   Cgooglecloudsdk.command_lib.database_migration.conversion_workspacesr   r   r   6googlecloudsdk.generated_clients.apis.datamigration.v1r   r9   ReleaseTracksReleaseTrackGADefaultUniverseOnly ConversionWorkspacesCommandMixinCommandr
   r.   r   r   <module>rG      sl    H   C ( ] a h D%%(()2];;T\\ 2  *2r   