cloudmersive_convert_api_client/api/zip_archive_api.py
def zip_archive_zip_create_quarantine_with_http_info(self, password, input_file1, **kwargs):  # noqa: E501
        """Create an encrypted zip file to quarantine a dangerous file  # noqa: E501

        Create a new zip archive by compressing input files, and also applies encryption and password protection to the zip, for the purposes of quarantining the underlyikng file.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.zip_archive_zip_create_quarantine_with_http_info(password, input_file1, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str password: Password to place on the Zip file; the longer the password, the more secure (required)
        :param file input_file1: First input file to perform the operation on. (required)
        :param str encryption_algorithm: Encryption algorithm to use; possible values are AES-256 (recommended), AES-128, and PK-Zip (not recommended; legacy, weak encryption algorithm). Default is AES-256.
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['password', 'input_file1', 'encryption_algorithm']  # noqa: E501
        all_params.append('async_req')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in six.iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method zip_archive_zip_create_quarantine" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'password' is set
        if ('password' not in params or
                params['password'] is None):
            raise ValueError("Missing the required parameter `password` when calling `zip_archive_zip_create_quarantine`")  # noqa: E501
        # verify the required parameter 'input_file1' is set
        if ('input_file1' not in params or
                params['input_file1'] is None):
            raise ValueError("Missing the required parameter `input_file1` when calling `zip_archive_zip_create_quarantine`")  # noqa: E501

        collection_formats = {}

        path_params = {}

        query_params = []

        header_params = {}
        if 'password' in params:
            header_params['password'] = params['password']  # noqa: E501
        if 'encryption_algorithm' in params:
            header_params['encryptionAlgorithm'] = params['encryption_algorithm']  # noqa: E501

        form_params = []
        local_var_files = {}
        if 'input_file1' in params:
            local_var_files['inputFile1'] = params['input_file1']  # noqa: E501

        body_params = None
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/octet-stream'])  # noqa: E501

        # Authentication setting
        auth_settings = ['Apikey']  # noqa: E501

        return self.api_client.call_api(
            '/convert/archive/zip/create/quarantine', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='object',  # noqa: E501
            auth_settings=auth_settings,
            async_req=params.get('async_req'),
            _return_http_data_only=params.get('_return_http_data_only'),
            _preload_content=params.get('_preload_content', True),
            _request_timeout=params.get('_request_timeout'),
            collection_formats=collection_formats)
Create an encrypted zip file to quarantine a dangerous file  # noqa: E501

        Create a new zip archive by compressing input files, and also applies encryption and password protection to the zip, for the purposes of quarantining the underlyikng file.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.zip_archive_zip_create_quarantine_with_http_info(password, input_file1, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str password: Password to place on the Zip file; the longer the password, the more secure (required)
        :param file input_file1: First input file to perform the operation on. (required)
        :param str encryption_algorithm: Encryption algorithm to use; possible values are AES-256 (recommended), AES-128, and PK-Zip (not recommended; legacy, weak encryption algorithm). Default is AES-256.
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        
Create an encrypted zip file to quarantine a dangerous file  # noqa: E501
Create a new zip archive by compressing input files, and also applies encryption and password protection to the zip, for the purposes of quarantining the underlyikng file.  # noqa: E501
This method makes a synchronous HTTP request by default.


Create an encrypted zip file to quarantine a dangerous file # noqa : E501 Create a new zip archive by compressing input files and also applies encryption and password protection to the zip for the purposes of quarantining the underlyikng file . # noqa : E501 This method makes a synchronous HTTP request by default .
def zip_archive_zip_create_quarantine_with_http_info(self, password, input_file1, **kwargs):  
        """Create an encrypted zip file to quarantine a dangerous file  
        Create a new zip archive by compressing input files, and also applies encryption and password protection to the zip, for the purposes of quarantining the underlyikng file.  
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.zip_archive_zip_create_quarantine_with_http_info(password, input_file1, async_req=True)
        >>> result = thread.get()
        :param async_req bool
        :param str password: Password to place on the Zip file; the longer the password, the more secure (required)
        :param file input_file1: First input file to perform the operation on. (required)
        :param str encryption_algorithm: Encryption algorithm to use; possible values are AES-256 (recommended), AES-128, and PK-Zip (not recommended; legacy, weak encryption algorithm). Default is AES-256.
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['password', 'input_file1', 'encryption_algorithm']  
        all_params.append('async_req')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in six.iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method zip_archive_zip_create_quarantine" % key
                )
            params[key] = val
        del params['kwargs']
        if ('password' not in params or
                params['password'] is None):
            raise ValueError("Missing the required parameter `password` when calling `zip_archive_zip_create_quarantine`")  
        if ('input_file1' not in params or
                params['input_file1'] is None):
            raise ValueError("Missing the required parameter `input_file1` when calling `zip_archive_zip_create_quarantine`")  
        collection_formats = {}
        path_params = {}
        query_params = []
        header_params = {}
        if 'password' in params:
            header_params['password'] = params['password']  
        if 'encryption_algorithm' in params:
            header_params['encryptionAlgorithm'] = params['encryption_algorithm']  
        form_params = []
        local_var_files = {}
        if 'input_file1' in params:
            local_var_files['inputFile1'] = params['input_file1']  
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/octet-stream'])  
        auth_settings = ['Apikey']  
        return self.api_client.call_api(
            '/convert/archive/zip/create/quarantine', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='object',  
            auth_settings=auth_settings,
            async_req=params.get('async_req'),
            _return_http_data_only=params.get('_return_http_data_only'),
            _preload_content=params.get('_preload_content', True),
            _request_timeout=params.get('_request_timeout'),
            collection_formats=collection_formats)
def zip_archive_zip_create_quarantine_with_http_info ( self , password , input_file1 , ** kwargs ) : all_params = [ 'password' , 'input_file1' , 'encryption_algorithm' ] all_params . append ( 'async_req' ) all_params . append ( '_return_http_data_only' ) all_params . append ( '_preload_content' ) all_params . append ( '_request_timeout' ) params = locals ( ) for key , val in six . iteritems ( params [ 'kwargs' ] ) : if key not in all_params : raise TypeError ( "Got an unexpected keyword argument '%s'" " to method zip_archive_zip_create_quarantine" % key ) params [ key ] = val del params [ 'kwargs' ] if ( 'password' not in params or params [ 'password' ] is None ) : raise ValueError ( "Missing the required parameter `password` when calling `zip_archive_zip_create_quarantine`" ) if ( 'input_file1' not in params or params [ 'input_file1' ] is None ) : raise ValueError ( "Missing the required parameter `input_file1` when calling `zip_archive_zip_create_quarantine`" ) collection_formats = { } path_params = { } query_params = [ ] header_params = { } if 'password' in params : header_params [ 'password' ] = params [ 'password' ] if 'encryption_algorithm' in params : header_params [ 'encryptionAlgorithm' ] = params [ 'encryption_algorithm' ] form_params = [ ] local_var_files = { } if 'input_file1' in params : local_var_files [ 'inputFile1' ] = params [ 'input_file1' ] body_params = None header_params [ 'Accept' ] = self . api_client . select_header_accept ( [ 'application/octet-stream' ] ) auth_settings = [ 'Apikey' ] return self . api_client . call_api ( '/convert/archive/zip/create/quarantine' , 'POST' , path_params , query_params , header_params , body = body_params , post_params = form_params , files = local_var_files , response_type = 'object' , auth_settings = auth_settings , async_req = params . get ( 'async_req' ) , _return_http_data_only = params . get ( '_return_http_data_only' ) , _preload_content = params . get ( '_preload_content' , True ) , _request_timeout = params . get ( '_request_timeout' ) , collection_formats = collection_formats )
Create an encrypted zip file to quarantine a dangerous file  # noqa: E501
Create a new zip archive by compressing input files, and also applies encryption and password protection to the zip, for the purposes of quarantining the underlyikng file.
Create an encrypted zip file to quarantine a dangerous file # noqa : E501 Create a new zip archive by compressing input files and also applies encryption and password protection to the zip for the purposes of quarantining the underlyikng file .
# noqa: E501 """Create an encrypted zip file to quarantine a dangerous file  # noqa: E501

        Create a new zip archive by compressing input files, and also applies encryption and password protection to the zip, for the purposes of quarantining the underlyikng file.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.zip_archive_zip_create_quarantine_with_http_info(password, input_file1, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str password: Password to place on the Zip file; the longer the password, the more secure (required)
        :param file input_file1: First input file to perform the operation on. (required)
        :param str encryption_algorithm: Encryption algorithm to use; possible values are AES-256 (recommended), AES-128, and PK-Zip (not recommended; legacy, weak encryption algorithm). Default is AES-256.
        :return: object
                 If the method is called asynchronously,
                 returns the request thread.
        """ # noqa: E501 # verify the required parameter 'password' is set # noqa: E501 # verify the required parameter 'input_file1' is set # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # HTTP header `Accept` # noqa: E501 # Authentication setting # noqa: E501 # noqa: E501
self
password
input_file1