#NEWLINE# def download( dataset , node , entityids , products , api_key = None ) : #NEWLINE# #INDENT# '\n    The use of this request will be to obtain valid data download URLs.\n    \n    :param dataset:\n    \n    :param entityIds:\n        list\n    \n    :param products:\n        list\n    \n    :param node:\n    \n    :param api_key:\n        API key is required.\n    ' #NEWLINE# if ( api_key is None ) : #NEWLINE# #INDENT# raise USGSApiKeyRequiredError #NEWLINE# #UNINDENT# ( root , body ) = create_root_request ( ) #NEWLINE# el = create_request_type ( body , 'download' ) #NEWLINE# create_dataset_element ( el , dataset ) #NEWLINE# create_node_element ( el , node ) #NEWLINE# create_api_key_element ( el , api_key ) #NEWLINE# create_entity_ids_element ( el , entityids ) #NEWLINE# products_el = SubElement ( el , 'products' ) #NEWLINE# products_el . set ( 'xsi:type' , 'soap:ArrayOfString' ) #NEWLINE# for product in products : #NEWLINE# #INDENT# product_el = SubElement ( products_el , 'item' ) #NEWLINE# product_el . set ( 'xsi:type' , 'xsd:string' ) #NEWLINE# product_el . text = product #NEWLINE# #UNINDENT# return tostring ( root )