Anons79 Mini Shell

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

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
dd
lmZmZddlZd�Zd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatustnetworktsupported_bysy
---
module: checkpoint_session
short_description: Manages session objects on Check Point over Web Services API
description:
  - Manages session objects on Check Point devices performing actions like publish and discard.
    All operations are performed over Web Services API.
version_added: "2.8"
author: "Ansible by Red Hat (@rcarrillocruz)"
options:
  uid:
    description:
      - UID of the session.
    type: str
    required: True
  state:
    description:
      - Action to perform on the session object. Valid choices are published and discarded.
    type: str
    choices: ['published', 'discarded']
    default: published
s�
- name: Publish session
  checkpoint_session:
    uid: 7a13a360-9b24-40d7-acd3-5b50247be33e
    state: published

- name: Discard session
  checkpoint_session:
    uid: 7a13a360-9b24-40d7-acd3-5b50247be33e
    state: discarded
s�
checkpoint_session:
  description: The checkpoint session output per return from API. It will differ depending on action.
  returned: always.
  type: list
(t
AnsibleModule(t
Connection(tpublishtdiscardNcC`s6i|jdd6}|jd|�\}}||fS(Ntuids/web_api/show-session(tparamstsend_request(tmodulet
connectiontpayloadtcodetresult((sZ/usr/lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_session.pytget_sessionMscC`s^tdtdddd�dtdddddddg��}td	|�}t|j�}t||�\}}itd
6}|dkr1t|d
<d}|jdr�i|jdd6}n|jddkr�|j	d|�\}}n|j	d
|�\}}|dkr$|j
d|�n||d<n|j
ddj||��|j|�dS(NRttypetstrtdefaulttstatet	publishedtchoicest	discardedt
argument_spectchangedi�s/web_api/publishs/web_api/discardtmsgtcheckpoint_sessions6Check Point device returned error {0} with message {1}(
tdicttNoneRR	t_socket_pathRtFalsetTrueR
Rt	fail_jsontformatt	exit_json(RRRRtresponseRR((sZ/usr/lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_session.pytmainUs($



t__main__(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRtansible.module_utils.connectionR	t2ansible.module_utils.network.checkpoint.checkpointR
RtjsonRR)t__name__(((sZ/usr/lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_session.pyt<module>s


		

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