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_profile_persistence_cookie.pyc

�
�Udac@`ssddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddl
mZy�dd
l
mZddlmZddlmZddlmZddlmZddlmZddlmZddlmZWn�ek
r�dd
lmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZnXdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZ defd ��YZ!d!e"fd"��YZ#d#e"fd$��YZ$d%e"fd&��YZ%d'�Z&e'd(kroe&�nd)S(*i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	certifiedtsupported_bysp
---
module: bigip_profile_persistence_cookie
short_description: Manage cookie persistence profiles on BIG-IP
description:
  - Manage cookie persistence profiles on BIG-IP.
version_added: 2.8
options:
  name:
    description:
      - Specifies the name of the profile.
    type: str
    required: True
  description:
    description:
      - Description of the profile.
    type: str
  parent:
    description:
      - Specifies the profile from which this profile inherits settings.
      - When creating a new profile, if this parameter is not specified, the default
        is the system-supplied C(cookie) profile.
    type: str
    default: cookie
  cookie_method:
    description:
      - Specifies the type of cookie processing that the system uses.
      - When C(hash), specifies that the server provides the cookie, which the
        system then maps consistently to a specific node. This persistence type
        requires a C(cookie_name) value.
      - When C(insert), specifies that the system inserts server information,
        in the form of a cookie, into the header of the server response.
      - When C(passive), specifies that the server provides the cookie, formatted
        with the correct server information and timeout. This persistence type
        requires a C(cookie_name) value.
      - When C(rewrite), specifies that the system intercepts the BIGipCookie
        header, sent from the server, and overwrites the name and value of that
        cookie.
    type: str
    choices:
      - hash
      - insert
      - passive
      - rewrite
  cookie_name:
    description:
      - Specifies a unique name for the cookie.
    type: str
  http_only:
    description:
      - Specifies whether the httponly attribute should be enabled or
        disabled for the inserted cookies.
    type: bool
  match_across_services:
    description:
      - When C(yes), specifies that all persistent connections from a client IP address that go
        to the same virtual IP address also go to the same node.
      - When creating a new profile, if this parameter is not specified, the
        default is provided by the parent profile.
    type: bool
  match_across_virtuals:
    description:
      - When C(yes), specifies that all persistent connections from the same client IP address
        go to the same node.
      - When creating a new profile, if this parameter is not specified, the
        default is provided by the parent profile.
    type: bool
  match_across_pools:
    description:
      - When C(yes), specifies that the system can use any pool that contains this persistence
        record.
      - When creating a new profile, if this parameter is not specified, the
        default is provided by the parent profile.
    type: bool
  cookie_encryption:
    description:
      - Specifies the way in which the cookie encryption format is used.
      - When C(disabled), generates the cookie format unencrypted.
      - When C(preferred), generate an encrypted cookie, but accepts both encrypted and unencrypted formats.
      - When C(required), cookie format must be encrypted.
    type: str
    choices:
      - disabled
      - preferred
      - required
  override_connection_limit:
    description:
      - When C(yes), specifies that the system allows you to specify that pool member connection
        limits will be overridden for persisted clients.
      - Per-virtual connection limits remain hard limits and are not overridden.
    type: bool
  encrypt_cookie_pool_name:
    description:
      - Specifies whether the pool-name in the inserted BIG-IP default cookie should be encrypted.
    type: bool
  always_send:
    description:
      - Send the cookie persistence entry on every reply, even if the
        entry has previously been supplied to the client.
    type: bool
  secure:
    description:
      - Specifies whether the secure attribute should be enabled or
        disabled for the inserted cookies.
    type: bool
  encryption_passphrase:
    description:
      - Specifies a passphrase to be used for cookie encryption.
    type: str
  update_password:
    description:
      - C(always) will allow to update passphrases if the user chooses to do so.
        C(on_create) will only set the passphrase for newly created profiles.
    type: str
    choices:
      - always
      - on_create
    default: always
  expiration:
    description:
      - Specifies the expiration time of the cookie. By default the system generates and uses session cookie.
        This cookie expires when the user session expires, that is when the browser is closed.
    suboptions:
      days:
        description:
          - Cookie expiration time in days, the value must be in range from C(0) to C(24855) days.
        type: int
      hours:
        description:
          - Cookie expiration time in hours, the value must be in the range from C(0) to C(23) hours.
        type: int
      minutes:
        description:
          - Cookie expiration time in minutes, the value must be in the range from C(0) to C(59) minutes.
        type: int
      seconds:
        description:
          - Cookie expiration time in seconds, the value must be in the range from C(0) to C(59) seconds.
        type: int
        default: 0
    type: dict
    version_added: 2.8
  partition:
    description:
      - Device partition to manage resources on.
    type: str
    default: Common
  state:
    description:
      - When C(present), ensures that the profile exists.
      - When C(absent), ensures the profile is removed.
    type: str
    choices:
      - present
      - absent
    default: present
extends_documentation_fragment: f5
author:
  - Tim Rupp (@caphrim007)
  - Wojciech Wypior (@wojtek0806)
s�
- name: Create a persistence cookie profile
  bigip_profile_persistence_cookie:
    name: foo
    provider:
      password: secret
      server: lb.mydomain.com
      user: admin
  delegate_to: localhost
- name: Create a persistence cookie profile with expiration time
  bigip_profile_persistence_cookie:
    name: foo
    expiration:
      days: 7
      hours: 12
      minutes: 30
    provider:
      password: secret
      server: lb.mydomain.com
      user: admin
  delegate_to: localhost
s
cookie_name:
  description: The new Cookie Name value.
  returned: changed
  type: str
  sample: cookie1
cookie_method:
  description: The new Cookie Method.
  returned: changed
  type: str
  sample: insert
parent:
  description: The parent profile.
  returned: changed
  type: str
  sample: /Common/cookie
cookie_encryption:
  description: The new Cookie Encryption type.
  returned: changed
  type: str
  sample: preferred
match_across_pools:
  description: The new Match Across Pools value.
  returned: changed
  type: bool
  sample: yes
match_across_services:
  description: The new Match Across Services value.
  returned: changed
  type: bool
  sample: no
match_across_virtuals:
  description: The new Match Across Virtuals value.
  returned: changed
  type: bool
  sample: yes
override_connection_limit:
  description: The new Override Connection Limit value.
  returned: changed
  type: bool
  sample: no
encrypt_cookie_pool_name:
  description: The new Encrypt Cookie Pool Name value.
  returned: changed
  type: bool
  sample: yes
always_send:
  description: The new Always Send value.
  returned: changed
  type: bool
  sample: no
http_only:
  description: The new HTTP Only value.
  returned: changed
  type: bool
  sample: yes
description:
  description: The new description.
  returned: changed
  type: str
  sample: My description
secure:
  description: The new Secure Cookie value.
  returned: changed
  type: bool
  sample: no
expiration:
  description: The expiration time of the cookie.
  returned: changed
  type: complex
  contains:
    days:
      description: Cookie expiration time in days.
      returned: changed
      type: int
      sample: 125
    hours:
      description: Cookie expiration time in hours.
      returned: changed
      type: int
      sample: 22
    minutes:
      description: Cookie expiration time in minutes.
      returned: changed
      type: int
      sample: 58
    seconds:
      description: Cookie expiration time in seconds.
      returned: changed
      type: int
      sample: 20
  sample: hash/dictionary of values
(t
AnsibleModule(tenv_fallback(tF5RestClient(t
F5ModuleError(tAnsibleF5Parameters(tfq_name(tf5_argument_spec(ttransform_name(tflatten_boolean(tcmp_str_with_nonet
ParameterscB`sseZidd6dd6dd6dd6dd	6d
d6dd
6dd6dd6dd6dd6dd6Zddddd	dd
ddddddddgZdddddd
dddddddddgZdddddd
dddddddddgZed��Zed��Zed��Z	ed��Z
ed��Zed ��Zed!��Z
ed"��ZRS(#tcookie_namet
cookieNamet
cookie_methodtmethodtparenttdefaultsFromtcookie_encryptiontcookieEncryptiontmatch_across_poolstmatchAcrossPoolstmatch_across_servicestmatchAcrossServicestmatch_across_virtualstmatchAcrossVirtualstoverride_connection_limittoverrideConnectionLimittencrypt_cookie_pool_nametencryptCookiePoolnametalways_sendt
alwaysSendt	http_onlythttponlytencryption_passphrasetcookieEncryptionPassphrasetdescriptiontsecuret
expirationcC`st|jd�S(NR#(Rt_values(tself((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR#�scC`st|jd�S(NR%(RR.(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR%�scC`st|jd�S(NR(RR.(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR�scC`st|jd�S(NR(RR.(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR�scC`st|jd�S(NR(RR.(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR�scC`st|jd�S(NR'(RR.(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR'�scC`st|jd�S(NR,(RR.(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR,�scC`st|jd�S(NR!(RR.(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR!�s(t__name__t
__module__tapi_maptapi_attributestreturnablest
updatablestpropertyR#R%RRRR'R,R!(((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR=s�
			t
ApiParameterscB`seZed��ZRS(cC`s"|jddkrdS|jdS(NR+tnone(NR8(R.tNone(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR+�s(R0R1R6R+(((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR7�stModuleParameterscB`sqeZed��Zed��Zed��Zed��Zed��Zed��Zed��Z	RS(cC`s4|jddkrdSt|j|jd�}|S(NR(R.R9R
t	partition(R/tresult((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR�scC`s9|jddkrdS|jddkr.dS|jdS(NR+R8t(snoneR=(R.R9(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR+�s
cC`s|jddkrdS|j}|j}|j}|j}|dk	r�|dkrbtd��n|dkr}td��ndj||||�}|S|dk	r�|dkr�td��ndj|||�}|S|dk	r�dj||�}|St|�S(NR-s5Incorrect format, 'hours' parameter is missing value.s7Incorrect format, 'minutes' parameter is missing value.s{0}:{1}:{2}:{3}s{0}:{1}:{2}s{0}:{1}(	R.R9tdaysthourstminutestsecondsRtformattstr(R/R>R?R@RAtexpiry_time((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR-�s2				cC`sL|jdd}|dkr!dS|dks9|dkrHtd��n|S(NR-R>iiasJThe provided value is invalid, the correct value range is: 0 - 24855 days.(R.R9R(R/R>((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR>�scC`sL|jdd}|dkr!dS|dks9|dkrHtd��n|S(NR-R?iisHThe provided value is invalid, the correct value range is: 0 - 23 hours.(R.R9R(R/R?((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR?�scC`sL|jdd}|dkr!dS|dks9|dkrHtd��n|S(NR-R@ii;sJThe provided value is invalid, the correct value range is: 0 - 59 minutes.(R.R9R(R/R@((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR@�scC`s<|jdd}|dks)|dkr8td��n|S(NR-RAii;sJThe provided value is invalid, the correct value range is: 0 - 59 seconds.(R.R(R/RA((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyRAs
(
R0R1R6RR+R-R>R?R@RA(((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR:�s&tChangescB`seZd�ZRS(cC`sXi}y:x$|jD]}t||�||<qW|j|�}Wntk
rSnX|S(N(R4tgetattrt_filter_paramst	Exception(R/R<t
returnable((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyt	to_returns
(R0R1RJ(((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyRE
st
UsableChangescB`s�eZed��Zed��Zed��Zed��Zed��Zed��Zed��Z	ed��Z
RS(cC`s2|jddkrdS|jddkr.dSdS(NR#tyestenabledtdisabled(R.R9(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR#s
cC`s2|jddkrdS|jddkr.dSdS(NR%RLRMRN(R.R9(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR%"s
cC`s2|jddkrdS|jddkr.dSdS(NRRLRMRN(R.R9(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR*s
cC`s2|jddkrdS|jddkr.dSdS(NRRLRMRN(R.R9(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR2s
cC`s2|jddkrdS|jddkr.dSdS(NRRLRMRN(R.R9(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR:s
cC`s2|jddkrdS|jddkr.dSdS(NR'RLRMRN(R.R9(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR'Bs
cC`s2|jddkrdS|jddkr.dSdS(NR,RLRMRN(R.R9(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR,Js
cC`s2|jddkrdS|jddkr.dSdS(NR!RLRMRN(R.R9(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR!Rs
(R0R1R6R#R%RRRR'R,R!(((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyRKstReportableChangescB`s�eZed��Zed��Zed��Zed��Zed��Zed��Zed��Z	ed��Z
ed��Zed	��ZRS(
cC`st|jd�S(NR#(RR.(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR#\scC`st|jd�S(NR%(RR.(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR%`scC`st|jd�S(NR(RR.(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyRdscC`st|jd�S(NR(RR.(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyRhscC`st|jd�S(NR(RR.(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyRlscC`st|jd�S(NR'(RR.(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR'pscC`st|jd�S(NR,(RR.(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR,tscC`st|jd�S(NR!(RR.(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR!xscC`sdS(N(R9(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR)|scC`sU|jd}t�}|dkr&dS|jd�}t|�dkr^t|d�|d<nt|�dkr�t|d�|d<t|d�|d<nt|�dkr�t|d�|d	<t|d�|d<t|d�|d<nt|�d
krQt|d�|d<t|d�|d	<t|d�|d<t|d�|d<n|S(NR-t:iiRAiR@iR?iR>(R.tdictR9tsplittlentint(R/texpireR<ttmp((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR-�s(
	(
R0R1R6R#R%RRRR'R,R!R)R-(((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyRO[st
DifferencecB`sDeZdd�Zd�Zd�Zed��Zed��ZRS(cC`s||_||_dS(N(twantthave(R/RXRY((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyt__init__�s	cC`s9yt||�}|SWntk
r4|j|�SXdS(N(RFtAttributeErrort_Difference__default(R/tparamR<((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pytcompare�s

cC`sQt|j|�}y&t|j|�}||kr7|SWntk
rL|SXdS(N(RFRXRYR[(R/R]tattr1tattr2((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyt	__default�s
cC`s+|jj|jjkr'td��ndS(Ns$The parent profile cannot be changed(RXRRYR(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR�scC`st|jj|jj�S(N(RRXR+RY(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR+�sN(	R0R1R9RZR^R\R6RR+(((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyRW�s
			t
ModuleManagercB`s�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�ZRS(cO`s^|jdd�|_t|jj�|_td|jj�|_t�|_	t
�|_dS(Ntmoduletparams(tgetR9RcR
RdtclientR:RXR7RYRKtchanges(R/targstkwargs((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyRZ�s
cC`sji}xBtjD]7}t|j|�dk	rt|j|�||<qqW|rftd|�|_ndS(NRd(RR4RFRXR9RKRg(R/tchangedtkey((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyt_set_changed_options�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(NRd(RWRXRYRR5RQR^R9t
isinstancetupdateRKRgtTruetFalse(R/tdiffR5Rjtktchange((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyt_update_changed_options�s		
cC`s|j�}|rtStS(N(RtRoRp(R/R<((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyt
should_update�scC`s�t}t�}|jj}|dkr6|j�}n|dkrQ|j�}ntd|jj��}|j�}|j	|�|j	td|��|j
|�|S(NtpresenttabsentRdRj(RpRQRXtstateRvRwRORgRJRnt_announce_deprecations(R/RjR<Rxt
reportableRg((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pytexec_module�s	

cC`sK|jdg�}x2|D]*}|jjjd|dd|d�qWdS(Nt
__warningstmsgtversion(tpopRfRct	deprecate(R/R<twarningstwarning((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyRy�s


cC`s$|j�r|j�S|j�SdS(N(texistsRntcreate(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyRv�s
cC`s�dj|jjd|jjdt|jj|jj��}|jjj|�}y|j	�}Wnt
k
rwtSX|jdks�d|kr�|ddkr�tSt
S(Ns2https://{0}:{1}/mgmt/tm/ltm/persistence/cookie/{2}tservertserver_porti�tcode(RBRftproviderRRXR;tnametapiRetjsont
ValueErrorRpRRo(R/turitresptresponse((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR�s


+cC`s�|j�|_|jjdkrA|jji|jjd6�n|jjr]|jjd=n|j�smtS|j	j
r}tS|j�tS(NtalwaysR)(
tread_current_from_deviceRYRXtupdate_passwordRnR)R.RuRpRct
check_modeRotupdate_on_device(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyRns 
cC`s9|jjrtS|j�|j�r5td��ntS(NsFailed to delete the resource.(RcR�Rotremove_from_deviceR�R(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pytremove"s
cC`s(|j�|jjrtS|j�tS(N(RlRcR�Rotcreate_on_device(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR�*s


cC`s�|jj�}|jj|d<|jj|d<dj|jjd|jjd�}|jjj	|d|�}y|j
�}Wn%tk
r�}tt
|���nXd|kr�|ddkr�d|kr�t|d��q�t|j��ndS(
NR�R;s/https://{0}:{1}/mgmt/tm/ltm/persistence/cookie/R�R�R�R�i�i�i�tmessage(i�i�i�(Rgt
api_paramsRXR�R;RBRfR�R�tpostR�R�RRCtcontent(R/RdR�R�R�tex((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR�1s
cC`s�|jj�}dj|jjd|jjdt|jj|jj��}|jj	j
|d|�}y|j�}Wn%tk
r�}t
t|���nXd|kr�|dd	kr�d|kr�t
|d��q�t
|j��ndS(
Ns2https://{0}:{1}/mgmt/tm/ltm/persistence/cookie/{2}R�R�R�R�i�i�R�(i�i�(RgR�RBRfR�RRXR;R�R�tpatchR�R�RRCR�(R/RdR�R�R�R�((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR�Es

cC`s|j�r|j�StS(N(R�R�Rp(R/((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyRwXs
cC`sydj|jjd|jjdt|jj|jj��}|jjj|�}|j	dkrft
St|j��dS(Ns2https://{0}:{1}/mgmt/tm/ltm/persistence/cookie/{2}R�R�i�(
RBRfR�RRXR;R�R�tdeleteRRoRR�(R/R�R�((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR�]s

cC`s�dj|jjd|jjdt|jj|jj��}|jjj|�}y|j	�}Wn%t
k
r�}tt|���nXd|kr�|ddkr�d|kr�t|d��q�t|j
��ntd|�S(Ns2https://{0}:{1}/mgmt/tm/ltm/persistence/cookie/{2}R�R�R�i�R�Rd(RBRfR�RRXR;R�R�ReR�R�RRCR�R7(R/R�R�R�R�((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR�hs

(R0R1RZRlRtRuR{RyRvR�RnR�R�R�R�RwR�R�(((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyRb�s 															tArgumentSpeccB`seZd�ZRS(c3C`s�t|_tdtdt�dtdd�dt�dtdd	d
ddg�d
t�dtdd�dtdd�dtddddg�dtdd�dtdd�dtdd�dtdd�dtdd�dtdd�dtdt�dtdddddg�d tdd!d"td#tdd$�d%tdd$�d&tdd$�d'tdd$dd(���d)tdd*dd*d+g�d,tdd-d.td/gf��}i|_|jjt�|jj|�dS(0NR�trequiredRtdefaulttcookieRRtchoicesthashtinserttpassivetrewriteR+R,ttypetboolR'RRNt	preferredR%RRRR!R#R)tno_logR�R�t	on_createR-RQtoptionsR>RTR?R@RAiRxRvRwR;tCommontfallbacktF5_PARTITION(Rotsupports_check_modeRQR	t
argument_specRnR(R/R�((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyRZ}sV							(R0R1RZ(((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyR�|scC`s�t�}td|jd|j�}y,td|�}|j�}|j|�Wn)tk
r{}|jdt	|��nXdS(NR�R�RcR}(
R�RR�R�RbR{t	exit_jsonRt	fail_jsonRC(tspecRctmmtresultsR�((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pytmain�s		t__main__N((t
__future__RRRR�t
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRR	t%library.module_utils.network.f5.bigipR
t&library.module_utils.network.f5.commonRRR
RRRt'library.module_utils.network.f5.compareRtImportErrort%ansible.module_utils.network.f5.bigipt&ansible.module_utils.network.f5.commont'ansible.module_utils.network.f5.compareRR7R:RERKROtobjectRWRbR�R�R0(((s_/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_profile_persistence_cookie.pyt<module>sN


�^
gaB@!�?	

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