@@ -48,7 +48,7 @@ def get_accounting_marketing_metrics(self, request: operations.GetAccountingMark
4848
4949 def get_excel_report (self , request : operations .GetExcelReportRequest ) -> operations .GetExcelReportResponse :
5050 r"""Download generated excel report
51- Download the Excel report to a local drive.
51+ Download the previously generated Excel report to a local drive.
5252 """
5353 base_url = self ._server_url
5454
@@ -58,7 +58,7 @@ def get_excel_report(self, request: operations.GetExcelReportRequest) -> operati
5858
5959 client = self ._security_client
6060
61- http_res = client .request ('POST ' , url , params = query_params )
61+ http_res = client .request ('GET ' , url , params = query_params )
6262 content_type = http_res .headers .get ('Content-Type' )
6363
6464 res = operations .GetExcelReportResponse (status_code = http_res .status_code , content_type = content_type , raw_response = http_res )
@@ -69,8 +69,31 @@ def get_excel_report(self, request: operations.GetExcelReportRequest) -> operati
6969
7070 return res
7171
72+ def get_excel_report_post (self , request : operations .GetExcelReportPostRequest ) -> operations .GetExcelReportPostResponse :
73+ r"""Download generated excel report
74+ Download the previously generated Excel report to a local drive.
75+ """
76+ base_url = self ._server_url
77+
78+ url = utils .generate_url (operations .GetExcelReportPostRequest , base_url , '/data/companies/{companyId}/assess/excel/download' , request )
79+
80+ query_params = utils .get_query_params (operations .GetExcelReportPostRequest , request )
81+
82+ client = self ._security_client
83+
84+ http_res = client .request ('POST' , url , params = query_params )
85+ content_type = http_res .headers .get ('Content-Type' )
86+
87+ res = operations .GetExcelReportPostResponse (status_code = http_res .status_code , content_type = content_type , raw_response = http_res )
88+
89+ if http_res .status_code == 200 :
90+ if utils .match_content_type (content_type , 'application/octet-stream' ):
91+ res .body = http_res .content
92+
93+ return res
94+
7295 def make_request_to_download_excel_report (self , request : operations .MakeRequestToDownloadExcelReportRequest ) -> operations .MakeRequestToDownloadExcelReportResponse :
73- r"""Request an Excel report for download
96+ r"""Get status of Excel report
7497 Returns the status of the latest report requested.
7598 """
7699 base_url = self ._server_url
@@ -94,8 +117,8 @@ def make_request_to_download_excel_report(self, request: operations.MakeRequestT
94117 return res
95118
96119 def request_excel_report_for_download (self , request : operations .RequestExcelReportForDownloadRequest ) -> operations .RequestExcelReportForDownloadResponse :
97- r"""Request an Excel report for download
98- Request an Excel report for download .
120+ r"""Generate an Excel report
121+ Generate an Excel report which can subsequently be downloaded .
99122 """
100123 base_url = self ._server_url
101124
0 commit comments