Anons79 Mini Shell

Directory : /proc/self/root/lib/python2.7/site-packages/ansible/plugins/httpapi/
Upload File :
Current File : //proc/self/root/lib/python2.7/site-packages/ansible/plugins/httpapi/restconf.pyc

�
�Udac@`s�ddlmZmZmZeZdZddlZddlm	Z	ddl
mZddlm
Z
ddlmZddlmZd	Zd
efd��YZd�ZdS(
i(tabsolute_importtdivisiontprint_functions�
---
author: Ansible Networking Team
httpapi: restconf
short_description: HttpApi Plugin for devices supporting Restconf API
description:
  - This HttpApi plugin provides methods to connect to Restconf API
    endpoints.
version_added: "2.8"
options:
  root_path:
    type: str
    description:
      - Specifies the location of the Restconf root.
    default: '/restconf'
    vars:
      - name: ansible_httpapi_restconf_root
N(tto_text(tto_list(tConnectionError(t	HTTPError(tHttpApiBasesapplication/yang-data+jsontHttpApicB`seZd�ZRS(c
K`s�|rtj|�}ndj|jd�jd�|jdd�jd�g�}i|jd�pitd6|jd�ptd6}|jj	||d	|d
|jd
��\}}t
||�S(Nt/t	root_pathtpathttcontent_typesContent-TypetaccepttAccepttheaderstmethod(tjsontdumpstjoint
get_optiontrstriptgettlstriptCONTENT_TYPEt
connectiontsendthandle_response(tselftdatatmessage_kwargsRRtresponset
response_data((sD/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/restconf.pytsend_request7s<0(t__name__t
__module__R"(((sD/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/restconf.pyR6scC`s�ytj|j��}Wntk
r8|j�}nXt|t�r�|r�d|kr�|dd}djd�|D��}n|}t|d|j��ntt	|�d|j��n|S(Nterrorsterrors
cs`s|]}|dVqdS(s
error-messageN((t.0R&((sD/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/restconf.pys	<genexpr>Pstcode(
Rtloadstreadt
ValueErrort
isinstanceRRRR(R(R R!R%t
error_text((sD/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/restconf.pyRFs
(t
__future__RRRttypet
__metaclass__t
DOCUMENTATIONRtansible.module_utils._textRt)ansible.module_utils.network.common.utilsRtansible.module_utils.connectionRt+ansible.module_utils.six.moves.urllib.errorRtansible.plugins.httpapiRRRR(((sD/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/restconf.pyt<module>s

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]