
    v                     P    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 r
S rg	)
z?A library containing resource args used by Transcoder commands.    )absolute_import)division)unicode_literals)
exceptions)filesc                     Ub  U$ U b   [         R                  " U 5      $ g! [         R                   a*  n[        R                  " SR                  X5      5      eSnAff = f)zGet job or template data.NzFailed to read {}, {})r   ReadFileContentsErrorcalliope_exceptionsBadFileExceptionformat)	file_pathcontentes      1lib/googlecloudsdk/command_lib/transcoder/util.py
GetContentr      sk     NH##I..
 
	 ;; H001H28&2FH HHs   ! A%AAc                     SnU R                   c0  U R                  c#  U R                  nU R                  nUc  SnOUc  SnUb5  [        R
                  " SR                  U5      SR                  U5      5      eg)z(Valid parameters for create job command.Nz	input-uriz
output-uriz--{}z0{} is required when using template to create job)filejson	input_uri
output_urir   RequiredArgumentExceptionr   )argsmissingr   r   s       r   ValidateCreateJobArgumentsr   *   s~     '	YY499,IJg		g

7
7g:AA'JL L     N)__doc__
__future__r   r   r   googlecloudsdk.callioper   r   googlecloudsdk.core.utilr   r   r    r   r   <module>r"      s%     F &  ' E * Lr   