Anons79 Mini Shell

Directory : /proc/self/root/lib/python2.7/site-packages/ansible/module_utils/source_control/
Upload File :
Current File : //proc/self/root/lib/python2.7/site-packages/ansible/module_utils/source_control/bitbucket.pyo

�
�Udac@`s{ddlmZmZmZddlZddlmZddlmZddl	m
Z
mZeZ
ddd��YZdS(	i(tabsolute_importtdivisiontprint_functionN(tto_text(tenv_fallback(t	fetch_urltbasic_auth_headertBitbucketHelpercB`s[eZdZidd6dd6Zd�Zed��Zd�Zd�Zd
d
d	�Z
RS(shttps://api.bitbucket.orgsX`client_id` must be specified as a parameter or BITBUCKET_CLIENT_ID environment variabletrequired_client_ids``client_secret` must be specified as a parameter or BITBUCKET_CLIENT_SECRET environment variabletrequired_client_secretcC`s||_d|_dS(N(tmoduletNonetaccess_token(tselfR
((sQ/usr/lib/python2.7/site-packages/ansible/module_utils/source_control/bitbucket.pyt__init__s	cC`sOtdtdddtdtdgf�dtdddtdtdgf��S(	Nt	client_idttypetstrtno_logtfallbacktBITBUCKET_CLIENT_IDt
client_secrettBITBUCKET_CLIENT_SECRET(tdicttTrueR(((sQ/usr/lib/python2.7/site-packages/ansible/module_utils/source_control/bitbucket.pytbitbucket_argument_spec s$cC`sj|jjddkr3|jjd|jd�n|jjddkrf|jjd|jd�ndS(NRtmsgRRR	(R
tparamsRt	fail_jsonterror_messages(R
((sQ/usr/lib/python2.7/site-packages/ansible/module_utils/source_control/bitbucket.pytcheck_arguments'sc	C`s�|j�it|jjd|jjd�d6}|jdddddd	d
|�\}}|ddkr~|d
|_n|jjddj|��dS(NRRt
Authorizationtapi_urls.https://bitbucket.org/site/oauth2/access_tokentmethodtPOSTtdatasgrant_type=client_credentialstheaderststatusi�RRs$Failed to retrieve access token: {0}(RRR
RtrequestRRtformat(R
R$tinfotcontent((sQ/usr/lib/python2.7/site-packages/ansible/module_utils/source_control/bitbucket.pytfetch_access_token.s
'	c	C`s�|p	i}|jr8|jidj|j�d6�nt|t�rp|jj|�}|jidd6�ntd|jd|d|d|d	|d
t�\}}i}|dk	r�t
|j��}|r�tj
|�}q�n||fS(Ns
Bearer {0}Rsapplication/jsonsContent-typeR
turlR!R$R#tforce(RtupdateR't
isinstanceRR
tjsonifyRRRRtreadtjsontloads(	R
R R!R#R$tresponseR(R)tbody((sQ/usr/lib/python2.7/site-packages/ansible/module_utils/source_control/bitbucket.pyR&As*				N(t__name__t
__module__tBITBUCKET_API_URLRRtstaticmethodRRR*RR&(((sQ/usr/lib/python2.7/site-packages/ansible/module_utils/source_control/bitbucket.pyRs
			((t
__future__RRRR1tansible.module_utils._textRtansible.module_utils.basicRtansible.module_utils.urlsRRRt
__metaclass__R(((sQ/usr/lib/python2.7/site-packages/ansible/module_utils/source_control/bitbucket.pyt<module>s

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