
    j                         d dl Z d Zy)    Nc                      | j                  di       | j                  dd      | j                  dg       d
dt        dt        dt        ffdfd	}|S )Nparams_added_onmethod_added_on api_versions_listvaluedefaultreturnc                 J    	 j                  |       S # t        $ r |cY S w xY w)a  Get the index of value in lst, or return default if not found.

        :param value: The value to search for in the api_versions_list.
        :type value: str
        :param default: The default value to return if the value is not found.
        :type default: int
        :return: The index of the value in the list, or the default value if not found.
        :rtype: int
        )index
ValueError)r   r	   r   s     j/root/aria/tools/markitdown-venv/lib/python3.12/site-packages/azure/ai/contentunderstanding/_validation.py_index_with_defaultz3api_version_validation.<locals>._index_with_default   s-    	$**511 	N	s    ""c                 J     t        j                          fd       }|S )Nc                     	 | d   }|j                   j                  } 
       
|      kD  rt        dj                   d| d d      j                         D ci c]$  \  }}|D ]  }||v r 
|       
|      kD  r|| & }}}}|rEt        dj                  |j                         D 	cg c]  \  }}	d| d| d|	 d c}	}             | i |S # t        $ r  | i |cY S w xY wc c}}}w c c}	}w )	Nr   'z"' is not available in API version z. Pass service API version z or newer to your client.r   z. Use service API version z or newer.
)_configapi_versionAttributeErrorr   __name__itemsjoin)argskwargsclientclient_api_versionr   
parameters	parameterunsupportedparamversionr   funcr   r   s             r   wrapperz:api_version_validation.<locals>.decorator.<locals>.wrapper    s{   -aNN.. # #?36I"7  !&H)**EoEVVoq  0?/D/D/F +K!+ &'4%&89:	 ;&K   GG 3>2C2C2E !/w  w&HI[H\ ]77>i|M  (((; " -T,V,,-s   C ")C54C<C21C2)	functoolswraps)r"   r#   r   r   r   s   ` r   	decoratorz)api_version_validation.<locals>.decorator   s&    		$	) 
$	)L     ))popstrint)r   r&   r   r   r   r   s     @@@@r   api_version_validationr,      s_    jj!2B7Ojj!2B7O

#6;3  c (T r'   )r$   r,    r'   r   <module>r.      s    >r'   