Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/f5/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyo

�
�Udac@`s#ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZydddlm
Z
dd
lmZddlmZddlmZddlmZddlmZWnqek
r9ddlm
Z
dd
lmZddlmZddlmZddlmZddlmZnXdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZ d efd!��YZ!d"efd#��YZ"d$�Z#e$d%kre#�nd&S('i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	certifiedtsupported_bys%
---
module: bigip_remote_user
short_description: Manages default settings for remote user accounts on a BIG-IP
description:
  - Manages default settings for remote user accounts on a BIG-IP.
version_added: 2.9
options:
  default_role:
    description:
      - Specifies the default role for all remote user accounts.
      - The default system value is C(no-access).
    type: str
    choices:
      - acceleration-policy-editor
      - admin
      - application-editor
      - auditor
      - certificate-manager
      - firewall-manager
      - fraud-protection-manager
      - guest
      - irule-manager
      - manager
      - no-access
      - operator
      - resource-admin
      - user-manager
      - web-application-security-administrator
      - web-application-security-editor
  default_partition:
    description:
      - Specifies the default partition for all remote user accounts.
      - The default system value is C(all) for all partitions.
    type: str
  console_access:
    description:
      - Enables or disables the default console access for all remote user accounts.
      - The default system value is C(disabled).
    type: bool
  description:
    description:
      - User defined description.
    type: str
extends_documentation_fragment: f5
author:
  - Wojciech Wypior (@wojtek0806)
s/
- name: Modify default partition and console access
  bigip_remote_user:
    default_partition: Common
    console_access: yes
    provider:
      password: secret
      server: lb.mydomain.com
      user: admin
  delegate_to: localhost

- name: Modify default role, partition and console access
  bigip_remote_user:
    default_partition: Common
    default_role: manager
    console_access: yes
    description: "Changed new settings"
    provider:
      password: secret
      server: lb.mydomain.com
      user: admin
  delegate_to: localhost

- name: Revert to default settings
  bigip_remote_user:
    default_partition: all
    default_role: "no-access"
    console_access: no
    description: ""
    provider:
      password: secret
      server: lb.mydomain.com
      user: admin
  delegate_to: localhost
s�
default_role:
  description: The default role for all remote user accounts.
  returned: changed
  type: str
  sample: auditor
default_partition:
  description: The default partition for all remote user accounts.
  returned: changed
  type: str
  sample: Common
console_access:
  description: The default console access for all remote user accounts
  returned: changed
  type: bool
  sample: no
description:
  description: The user defined description.
  returned: changed
  type: str
  sample: Foo is bar
(t
AnsibleModule(tF5RestClient(t
F5ModuleError(tAnsibleF5Parameters(tf5_argument_spec(tflatten_boolean(tcmp_str_with_nonet
ParameterscB`sYeZidd6dd6dd6ZddddgZddddgZddddgZRS(tdefault_partitiontdefaultPartitiontdefault_roletdefaultRoletconsole_accesstremoteConsoleAccesstdescription(t__name__t
__module__tapi_maptapi_attributestreturnablest
updatables(((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyR�s 
		t
ApiParameterscB`seZRS((RR(((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyR�stModuleParameterscB`seZed��ZRS(cC`s7t|jd�}|dkr#dS|dkr3dSdS(NRtyesttmshtnotdisabled(R
t_values(tselftresult((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyR�s
(RRtpropertyR(((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyR�stChangescB`seZd�ZRS(cC`sXi}y:x$|jD]}t||�||<qW|j|�}Wntk
rSnX|S(N(Rtgetattrt_filter_paramst	Exception(R$R%t
returnable((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyt	to_return�s
(RRR,(((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyR'�st
UsableChangescB`seZRS((RR(((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyR-�stReportableChangescB`seZed��ZRS(cC`sI|jddkrdS|jddkr.dS|jddkrEdSdS(NRR RR"R!(R#tNone(R$((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyR�s(RRR&R(((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyR.�st
DifferencecB`s5eZdd�Zd�Zd�Zed��ZRS(cC`s||_||_dS(N(twantthave(R$R1R2((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyt__init__�s	cC`s9yt||�}|SWntk
r4|j|�SXdS(N(R(tAttributeErrort_Difference__default(R$tparamR%((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pytcompare�s

cC`sQt|j|�}y&t|j|�}||kr7|SWntk
rL|SXdS(N(R(R1R2R4(R$R6tattr1tattr2((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyt	__default�s
cC`st|jj|jj�}|S(N(RR1RR2(R$R%((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyR�sN(RRR/R3R7R5R&R(((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyR0�s			t
ModuleManagercB`sPeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(cO`s^|jdd�|_t|jj�|_td|jj�|_t�|_	t
�|_dS(Ntmoduletparams(tgetR/R<R	R=tclientRR1RR2R-tchanges(R$targstkwargs((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyR3�s
cC`s�t|j|j�}tj}t�}xX|D]P}|j|�}|dkrUq.q.t|t�rt|j	|�q.|||<q.W|r�t
d|�|_tSt
S(NR=(R0R1R2RRtdictR7R/t
isinstancetupdateR-R@tTruetFalse(R$tdiffRtchangedtktchange((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyt_update_changed_options�s		
cC`sK|jdg�}x2|D]*}|jjjd|dd|d�qWdS(Nt
__warningstmsgtversion(tpopR?R<t	deprecate(R$R%twarningstwarning((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyt_announce_deprecations	s


cC`smt�}|j�}td|jj��}|j�}|j|�|jtd|��|j|�|S(NR=RI(RCRER.R@R,RT(R$R%RIt
reportableR@((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pytexec_modules	

cC`s|j�}|rtStS(N(RLRFRG(R$R%((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyt
should_updatescC`s=|j�|_|j�stS|jjr/tS|j�tS(N(tread_current_from_deviceR2RWRGR<t
check_modeRFtupdate_on_device(R$((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyRE#s
cC`s�|jj�}dj|jjd|jjd�}|jjj|d|�}y|j�}Wn%tk
r�}t	t
|���nXd|kr�|ddkr�d|kr�t	|d��q�t	|j��ndS(Ns)https://{0}:{1}/mgmt/tm/auth/remote-user/tservertserver_porttjsontcodei�tmessage(R@t
api_paramstformatR?tprovidertapitpatchR]t
ValueErrorR
tstrtcontent(R$R=turitresptresponsetex((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyRZ,s
cC`s�dj|jjd|jjd�}|jjj|�}y|j�}Wn%tk
rr}tt|���nXd|kr�|ddkr�d|kr�t|d��q�t|j	��nt
d|�S(Ns)https://{0}:{1}/mgmt/tm/auth/remote-user/R[R\R^i�R_R=(RaR?RbRcR>R]ReR
RfRgR(R$RhRiRjRk((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyRX>s
(
RRR3RLRTRVRWRERZRX(((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyR;�s								tArgumentSpeccB`seZd�ZRS(cC`s�t|_ddddddddd	d
ddd
dddg|_tdtd|j�dt�dtdd�dt��}i|_|jjt�|jj|�ddgg|_dS(Nsacceleration-policy-editortadminsapplication-editortauditorscertificate-managersfirewall-managersfraud-protection-managertguests
irule-managertmanagers	no-accesstoperatorsresource-adminsuser-managers&web-application-security-administratorsweb-application-security-editorRtchoicesRRttypetboolR(RFtsupports_check_modeRrRCt
argument_specRERtrequired_one_of(R$Rv((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyR3Rs6			(RRR3(((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyRlQscC`s�t�}td|jd|j�}y,td|�}|j�}|j|�Wn)tk
r{}|jdt	|��nXdS(NRvRuR<RN(
RlRRvRuR;RVt	exit_jsonR
t	fail_jsonRf(tspecR<tmmtresultsRk((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pytmainvs		t__main__N(%t
__future__RRRRst
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt%library.module_utils.network.f5.bigipR	t&library.module_utils.network.f5.commonR
RRR
t'library.module_utils.network.f5.compareRtImportErrort%ansible.module_utils.network.f5.bigipt&ansible.module_utils.network.f5.commont'ansible.module_utils.network.f5.compareRRRR'R-R.tobjectR0R;RlR}R(((sP/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_remote_user.pyt<module>sD


1$

b%	

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