
                         .    S r SSKrSSKJr  SSKJr  S rg)zLArgument processors for Zone Management identity provider surface arguments.    N)
exceptions)yamlc           
      \   UR                   n [        US5       nUR                  5       n [        R                  " U5      nXbR                  l        SSS5        U R                  5       UR                  R                  l        U$ ! [        R
                   aT     [        R                  " U5      n Np! [        R                   a#  n[        R                  " SSU SU 35      UeSnAff = ff = f! , (       d  f       N= f! [         a   n[        R                  " SSU 35      UeSnAff = f)aE  Reads the oidc config from the file and populates the request body.

Args:
  ref: The resource reference.
  args: The parsed arguments from the command line.
  req: The request to modify.

Returns:
  The modified request.

Raises:`
  exceptions.InvalidArgumentException: If file cannot be read or is not a
  valid json/yaml.
rconfigzError parsing file z3. Please provide a valid json or yaml file. Error: NzFile not found: )r   openreadjsonloadsJSONDecodeErrorr   loadYAMLParseErrorr   InvalidArgumentExceptioncreateIdentityProviderRequestidentityProviderFileNotFoundErrorRelativeNamename)refargsreq	file_pathfcontentidpes           Ilib/googlecloudsdk/command_lib/zone_management/identity_provider/hooks.pyAddOidcConfigToRequestr      s"    kk)	i	g
jj! <?''8 
$ =@<L<L<N###449	* !! 			'"#"" 	33#I; /$$%3( 			 
	 
 

-
-$YK0so   D C0BC0D C-B20C02C)C$$C))C--C00
C>:D >D 
D+D&&D+)__doc__r
   googlecloudsdk.callioper   googlecloudsdk.corer   r        r   <module>r$      s    S  . $$r#   