Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/ftd/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/ftd/ftd_file_upload.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
dd
lmZmZmZddlmZd�Zd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys�
---
module: ftd_file_upload
short_description: Uploads files to Cisco FTD devices over HTTP(S)
description:
  - Uploads files to Cisco FTD devices including disk files, backups, and upgrades.
version_added: "2.7"
author: "Cisco Systems, Inc. (@annikulin)"
options:
  operation:
    description:
      - The name of the operation to execute.
      - Only operations that upload file can be used in this module.
    required: true
    type: str
  file_to_upload:
    description:
      - Absolute path to the file that should be uploaded.
    required: true
    type: path
    version_added: "2.8"
  register_as:
    description:
      - Specifies Ansible fact name that is used to register received response from the FTD device.
    type: str
st
- name: Upload disk file
  ftd_file_upload:
    operation: 'postuploaddiskfile'
    file_to_upload: /tmp/test1.txt
sm
msg:
    description: The error message describing why the module failed.
    returned: error
    type: str
(t
AnsibleModule(t
Connection(tconstruct_ansible_factstFtdServerErrort
HTTPMethod(tOperationFieldcC`s'|tjtjkp&d|tjkS(NtUploadStatus(R
tMETHODRtPOSTt
MODEL_NAME(top_spec((sO/usr/lib/python2.7/site-packages/ansible/modules/network/ftd/ftd_file_upload.pytis_upload_operationKsc	C`sptdtdddt�dtdddt�dtdd��}td|d	t�}|j}t|j�}|j|d�}|dkr�|jd
d|d�nt	|�s�|jd
d|d�ny_|j
r�|j�n|j|d|t
j�}|jd
td|dt||j��Wn:tk
rk}|jd
d|d|j|jf�nXdS(Nt	operationttypetstrtrequiredtfile_to_uploadtpathtregister_ast
argument_spectsupports_check_modetmsgs.Operation with specified name is not found: %ssaInvalid upload operation: %s. The operation must make POST request and return UploadStatus model.tchangedtresponset
ansible_factssLUpload request for %s operation failed. Status code: %s. Server response: %s(tdicttTrueRtparamsR	t_socket_pathtget_operation_spectNonet	fail_jsonRt
check_modet	exit_jsontupload_fileR
tURLR
RtcodeR(tfieldstmoduleR#t
connectionRtrespte((sO/usr/lib/python2.7/site-packages/ansible/modules/network/ftd/ftd_file_upload.pytmainOs.				
,t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRtansible.module_utils.connectionR	t'ansible.module_utils.network.ftd.commonR
RRt3ansible.module_utils.network.ftd.fdm_swagger_clientR
RR2t__name__(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/ftd/ftd_file_upload.pyt<module>s


		

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