
    _                         S 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	S
.r\R                  \R                  " \R                  R                  5       " S S\R                   5      5       5       rg)z8Command to create a Pipeline for the Data Pipelines API.    )absolute_import)division)unicode_literals)util)base)flagsz{description}a           To create a BATCH Data Pipeline ``PIPELINE_NAME'' in project ``example'' in region ``us-central1'', run:

          $ {command} PIPELINE_NAME --project=example --region=us-central1
              --pipeline-type=BATCH
              --template-file-gcs-location='gs://path_to_template_file'
              --parameters=inputFile="gs://path_to_input_file",output="gs://path_to_output_file"
              --schedule="0 * * * *" --temp-location="gs://path_to_temp_location"
        )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)Create)   z Creates Data Pipelines Pipeline.c                 ~   [         R                  " U 5        [         R                  " S5      R                  U 5        [         R                  " SS9R                  U 5        [         R
                  " SS9R                  U 5        [         R                  " SS9R                  U 5        [         R                  " SS9R                  U 5        [         R                  " SS9R                  U 5        [         R                  " SS9R                  U 5        [         R                  " SS9R                  U 5        [         R                  " SS9R                  U 5        [         R                  " SS9R                  U 5        [         R                  " SS9R                  U 5        [         R                  " SS9R                  U 5        [         R                  " SS9R                  U 5        [         R                   " SS9R                  U 5        [         R"                  " SS9R                  U 5        [         R$                  " SS9R                  U 5        [         R&                  " SS9R                  U 5        [         R(                  " SS9R                  U 5        [         R*                  " SS9R                  U 5        [         R,                  " SS9R                  U 5        [         R.                  " SS9R                  U 5        [         R0                  " SS9R                  U 5        [         R2                  " SS9R                  U 5        g )NzData Pipelines pipelineT)requiredF)r   AddCreatePipelineFlagsGetDisplayNameArgAddToParserGetPipelineTypeArgGetTemplateTypeArgGetScheduleArgGetTimeZoneArgGetTemplateFileGcsLocationArgGetParametersArgGetMaxWorkersArgGetNumWorkersArgGetNetworkArgGetSubnetworkArgGetWorkerMachineTypeArgGetTempLocationArgGetDataflowKmsKeyArgGetDisablePublicIpsArg!GetDataflowServiceAccountEmailArg"GetSchedulerServiceAccountEmailArgGetEnableStreamingEngineArgGetAdditionalExperimentsArgGetAdditionalUserLabelsArgGetWorkerRegionArgsGetFlexRsGoalArgGetStreamingUpdateArgs)parsers    ,lib/surface/datapipelines/pipeline/create.pyArgsCreate.Args0   sP   	  (	56BB6J	d+77?	e,88@	%(44V<	%(44V<	''7CCFK	E*66v>	E*66v>	E*66v>	'33F;	E*66v>	!!51==fE	e,88@	.::6B	  %0<<VD	++U;GGO	,,e<HHP	%%u5AA&I	%%u5AA&I	$$e4@@H	u-99&A	E*66v>	  %0<<VD    c                     [         R                  " 5       nUR                  R                  R	                  5       nUR                  5       nUR                  UR                  5       UR                  5       US9$ )zRun the create command.)pipelineparentargs)r   PipelinesClientCONCEPTSr/   ParseParentr   RelativeName)selfr1   clientpipelines_ref
region_refs        r*   Run
Create.RunK   sg    !!#FMM**002M%%'J==++-&&(   r-    N)__name__
__module____qualname____firstlineno____doc___DETAILED_HELPdetailed_helpstaticmethodr+   r;   __static_attributes__r=   r-   r*   r   r   )   s%     ) -E E4r-   r   N)rB   
__future__r   r   r   $googlecloudsdk.api_lib.datapipelinesr   googlecloudsdk.callioper   (googlecloudsdk.command_lib.datapipelinesr   rC   DefaultUniverseOnlyReleaseTracksReleaseTrackBETACreateCommandr   r=   r-   r*   <module>rP      ss    ? &  ' 5 ( : 			  D%%**+(T ( , (r-   