Ë
    ÇVh­  ã                   óh   — d dl mZmZmZ eZdZdZd dlm	Z	 d dl
mZ d dlmZ d„ Zedk(  r e«        y	y	)
é    )Úabsolute_importÚdivisionÚprint_functionaK  
---
module: deploy
short_description: Trigger a qradar configuration deployment
description:
  - This module allows for INCREMENTAL or FULL deployments
version_added: "1.0.0"
options:
  type:
    description:
     - Type of deployment
    required: false
    type: str
    choices:
      - "INCREMENTAL"
      - "FULL"
    default: "INCREMENTAL"
notes:
  - This module does not support check mode because the QRadar REST API does not offer stateful inspection of configuration deployments

author: "Ansible Security Automation Team (@maxamillion) <https://github.com/ansible-security>"
zN
- name: run an incremental deploy
  ibm.qradar.deploy:
    type: INCREMENTAL
)Úto_text)ÚAnsibleModule)ÚQRadarRequestc                  óV  — t        t        ddgdd¬«      ¬«      } t        | d¬«      }t        |g d¢¬«      }|j                  d	«      }d
|v r.t	        d«      t	        |d
   «      v r|j                  d|d¬«       y |j                  dj                  |j                  d   «      |d¬«       y )NÚINCREMENTALÚFULLF)ÚchoicesÚrequiredÚdefault)Útype)Úargument_specÚsupports_check_mode)ÚstateÚ	type_nameÚ
identifier)Únot_rest_data_keyszapi/staged_config/deploy_statusÚmessagezNo changes to deploy)ÚmsgÚqradar_return_dataÚchangedz&Successfully initiated {0} deployment.r   T)Údictr   r   Úpost_by_pathr   Ú	exit_jsonÚformatÚparams)ÚargspecÚmoduleÚqradar_requestr   s       úl/home/dcms/DCMS/lib/python3.12/site-packages/ansible_collections/ibm/qradar/plugins/modules/qradar_deploy.pyÚmainr#   /   sÍ   € ÜÜØ" FÐ+ØØ!ô
ô€Gô ¨ÀeÔL€Fä"ØÚ?ô€Nð
 (×4Ñ4Ø)óÐð Ð&Ñ&ÜÐ&Ó'¬7Ð3EÀiÑ3PÓ+QÑQà×ÑØ&Ø1Øð 	õ 	
ð 	×ÑØ8×?Ñ?Ø—‘˜fÑ%óð  2Øð 	õ 	
ó    Ú__main__N)Ú
__future__r   r   r   r   Ú__metaclass__ÚDOCUMENTATIONÚEXAMPLESÚansible.module_utils._textr   Úansible.module_utils.basicr   Ú:ansible_collections.ibm.qradar.plugins.module_utils.qradarr   r#   Ú__name__© r$   r"   ú<module>r/      sH   ð÷ AÑ @ð €ð€ð.€õ /Ý 4å Tò#
ðL ˆzÒÙ…Fð r$   