
    6	                     N    d Z ddlZddlmZmZ ddlmZ deeef   fdZdefdZ	y)	z?Module for storing the functions related to validation of data.    N)AnyMapping)errorsgit_config_filec                 <   | j                  dd      t        j                  d      | j                  dd      t        j                  d      | j                  dd      t        j                  d      | j                  dd      t        j                  d      y)zValidates the git config file, raises an error if it is invalid.

  Args:
    git_config_file: The git config file data in dict format to be validated.
  remoteNzmain-branch-namezbranch-prefix	reviewers)getr   InvalidGitConfigError)r   s    @lib/googlecloudsdk/api_lib/scc/remediation_intents/validators.pyvalidate_git_configr      s     4(0

&
&x
00+T2:

&
&'9
::$/7

&
&
77d+3

&
&{
33 4    rel_dir_pathc                 :   | j                         xs d} t        j                  |       }|j                         rt	        j
                  | d      |j                         st	        j
                  | d      |j                         st	        j
                  | d      y)zValidates the relative directory path, raises an error if it is invalid.

  Args:
    rel_dir_path: The relative directory path to be validated.
  .z-Directory path must be relative not absolute.zDirectory path does not exist.zGiven path is not a directory.N)strippathlibPathis_absoluter   InvalidDirectoryPathErrorexistsis_dir)r   path_objs     r   validate_relative_dir_pathr   ,   s     ##%,,\\,'(

*
*E  
	

*
*6  
	

*
*6  
r   )
__doc__r   typingr   r   2googlecloudsdk.command_lib.scc.remediation_intentsr   strr   r    r   r   <module>r       s5    F   E4c): 4*S r   