
                             d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ej                   ej                  ej                  j                         G d dej                                      Zy	)
zIImplementation of gcloud Procurement consumer free trials create command.    )absolute_import)division)unicode_literals)apis)basec                   &    e Zd ZdZed        Zd Zy)Createz4Creates the Free Trial resource from the Create API.c                 T    | j                  ddd       | j                  ddd       y)zrRegister flags for this command.

    Args:
      parser: argparse.ArgumentParser to register arguments with.
    z--provider-idTz0ID of the provider to which the product belongs.)requiredhelpz--product-external-namez1Product external name to offer the free trial of.N)add_argument)parsers    ?lib/surface/commerce_procurement/consumer/free_trials/create.pyArgszCreate.Args   s@     ?  A !@  B    c                 j    t         j                  j                  |j                  |j                        S )zRuns the command.

    Args:
      args: The arguments that were provided to this command invocation.

    Returns:
      A Free Trial operation.
    )r   
FreeTrialsr	   provider_idproduct_external_name)selfargss     r   Runz
Create.Run.   s'     ??!!$"2"2D4N4NOOr   N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r	   r	      s!     =B B	Pr   r	   N)r   
__future__r   r   r   +googlecloudsdk.api_lib.commerce_procurementr   googlecloudsdk.callioper   HiddenReleaseTracksReleaseTrackALPHACommandr	   r   r   r   <module>r'      sa    P &  ' < ( D%%++,PT\\ P - Pr   