@@ -3847,6 +3847,271 @@ def _download_document_video_serialize(
38473847
38483848
38493849
3850+ @validate_call
3851+ def download_evidence_folder(
3852+ self,
3853+ workflow_run_id: Annotated[StrictStr, Field(description="Workflow Run ID")],
3854+ _request_timeout: Union[
3855+ None,
3856+ Annotated[StrictFloat, Field(gt=0)],
3857+ Tuple[
3858+ Annotated[StrictFloat, Field(gt=0)],
3859+ Annotated[StrictFloat, Field(gt=0)]
3860+ ]
3861+ ] = None,
3862+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3863+ _content_type: Optional[StrictStr] = None,
3864+ _headers: Optional[Dict[StrictStr, Any]] = None,
3865+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3866+ ) -> bytearray:
3867+ """Retrieve Workflow Run Evidence Folder
3868+
3869+ Retrieves the evidence folder for the designated Workflow Run
3870+
3871+ :param workflow_run_id: Workflow Run ID (required)
3872+ :type workflow_run_id: str
3873+ :param _request_timeout: timeout setting for this request. If one
3874+ number provided, it will be total request
3875+ timeout. It can also be a pair (tuple) of
3876+ (connection, read) timeouts.
3877+ :type _request_timeout: int, tuple(int, int), optional
3878+ :param _request_auth: set to override the auth_settings for an a single
3879+ request; this effectively ignores the
3880+ authentication in the spec for a single request.
3881+ :type _request_auth: dict, optional
3882+ :param _content_type: force content-type for the request.
3883+ :type _content_type: str, Optional
3884+ :param _headers: set to override the headers for a single
3885+ request; this effectively ignores the headers
3886+ in the spec for a single request.
3887+ :type _headers: dict, optional
3888+ :param _host_index: set to override the host_index for a single
3889+ request; this effectively ignores the host_index
3890+ in the spec for a single request.
3891+ :type _host_index: int, optional
3892+ :return: Returns the result object.
3893+ """ # noqa: E501
3894+
3895+ _param = self._download_evidence_folder_serialize(
3896+ workflow_run_id=workflow_run_id,
3897+ _request_auth=_request_auth,
3898+ _content_type=_content_type,
3899+ _headers=_headers,
3900+ _host_index=_host_index
3901+ )
3902+
3903+ _response_types_map: Dict[str, Optional[str]] = {
3904+ '302': None,
3905+ '200': "bytearray",
3906+ }
3907+ response_data = self.api_client.call_api(
3908+ *_param,
3909+ _request_timeout=_request_timeout
3910+ )
3911+ response_data.read()
3912+ return self.api_client.response_deserialize(
3913+ response_data=response_data,
3914+ response_types_map=_response_types_map,
3915+ ).data
3916+
3917+
3918+ @validate_call
3919+ def download_evidence_folder_with_http_info(
3920+ self,
3921+ workflow_run_id: Annotated[StrictStr, Field(description="Workflow Run ID")],
3922+ _request_timeout: Union[
3923+ None,
3924+ Annotated[StrictFloat, Field(gt=0)],
3925+ Tuple[
3926+ Annotated[StrictFloat, Field(gt=0)],
3927+ Annotated[StrictFloat, Field(gt=0)]
3928+ ]
3929+ ] = None,
3930+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3931+ _content_type: Optional[StrictStr] = None,
3932+ _headers: Optional[Dict[StrictStr, Any]] = None,
3933+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3934+ ) -> ApiResponse[bytearray]:
3935+ """Retrieve Workflow Run Evidence Folder
3936+
3937+ Retrieves the evidence folder for the designated Workflow Run
3938+
3939+ :param workflow_run_id: Workflow Run ID (required)
3940+ :type workflow_run_id: str
3941+ :param _request_timeout: timeout setting for this request. If one
3942+ number provided, it will be total request
3943+ timeout. It can also be a pair (tuple) of
3944+ (connection, read) timeouts.
3945+ :type _request_timeout: int, tuple(int, int), optional
3946+ :param _request_auth: set to override the auth_settings for an a single
3947+ request; this effectively ignores the
3948+ authentication in the spec for a single request.
3949+ :type _request_auth: dict, optional
3950+ :param _content_type: force content-type for the request.
3951+ :type _content_type: str, Optional
3952+ :param _headers: set to override the headers for a single
3953+ request; this effectively ignores the headers
3954+ in the spec for a single request.
3955+ :type _headers: dict, optional
3956+ :param _host_index: set to override the host_index for a single
3957+ request; this effectively ignores the host_index
3958+ in the spec for a single request.
3959+ :type _host_index: int, optional
3960+ :return: Returns the result object.
3961+ """ # noqa: E501
3962+
3963+ _param = self._download_evidence_folder_serialize(
3964+ workflow_run_id=workflow_run_id,
3965+ _request_auth=_request_auth,
3966+ _content_type=_content_type,
3967+ _headers=_headers,
3968+ _host_index=_host_index
3969+ )
3970+
3971+ _response_types_map: Dict[str, Optional[str]] = {
3972+ '302': None,
3973+ '200': "bytearray",
3974+ }
3975+ response_data = self.api_client.call_api(
3976+ *_param,
3977+ _request_timeout=_request_timeout
3978+ )
3979+ response_data.read()
3980+ return self.api_client.response_deserialize(
3981+ response_data=response_data,
3982+ response_types_map=_response_types_map,
3983+ )
3984+
3985+
3986+ @validate_call
3987+ def download_evidence_folder_without_preload_content(
3988+ self,
3989+ workflow_run_id: Annotated[StrictStr, Field(description="Workflow Run ID")],
3990+ _request_timeout: Union[
3991+ None,
3992+ Annotated[StrictFloat, Field(gt=0)],
3993+ Tuple[
3994+ Annotated[StrictFloat, Field(gt=0)],
3995+ Annotated[StrictFloat, Field(gt=0)]
3996+ ]
3997+ ] = None,
3998+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3999+ _content_type: Optional[StrictStr] = None,
4000+ _headers: Optional[Dict[StrictStr, Any]] = None,
4001+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4002+ ) -> RESTResponseType:
4003+ """Retrieve Workflow Run Evidence Folder
4004+
4005+ Retrieves the evidence folder for the designated Workflow Run
4006+
4007+ :param workflow_run_id: Workflow Run ID (required)
4008+ :type workflow_run_id: str
4009+ :param _request_timeout: timeout setting for this request. If one
4010+ number provided, it will be total request
4011+ timeout. It can also be a pair (tuple) of
4012+ (connection, read) timeouts.
4013+ :type _request_timeout: int, tuple(int, int), optional
4014+ :param _request_auth: set to override the auth_settings for an a single
4015+ request; this effectively ignores the
4016+ authentication in the spec for a single request.
4017+ :type _request_auth: dict, optional
4018+ :param _content_type: force content-type for the request.
4019+ :type _content_type: str, Optional
4020+ :param _headers: set to override the headers for a single
4021+ request; this effectively ignores the headers
4022+ in the spec for a single request.
4023+ :type _headers: dict, optional
4024+ :param _host_index: set to override the host_index for a single
4025+ request; this effectively ignores the host_index
4026+ in the spec for a single request.
4027+ :type _host_index: int, optional
4028+ :return: Returns the result object.
4029+ """ # noqa: E501
4030+
4031+ _param = self._download_evidence_folder_serialize(
4032+ workflow_run_id=workflow_run_id,
4033+ _request_auth=_request_auth,
4034+ _content_type=_content_type,
4035+ _headers=_headers,
4036+ _host_index=_host_index
4037+ )
4038+
4039+ _response_types_map: Dict[str, Optional[str]] = {
4040+ '302': None,
4041+ '200': "bytearray",
4042+ }
4043+ response_data = self.api_client.call_api(
4044+ *_param,
4045+ _request_timeout=_request_timeout
4046+ )
4047+ return response_data.response
4048+
4049+
4050+ def _download_evidence_folder_serialize(
4051+ self,
4052+ workflow_run_id,
4053+ _request_auth,
4054+ _content_type,
4055+ _headers,
4056+ _host_index,
4057+ ) -> RequestSerialized:
4058+
4059+ _host = None
4060+
4061+ _collection_formats: Dict[str, str] = {
4062+ }
4063+
4064+ _path_params: Dict[str, str] = {}
4065+ _query_params: List[Tuple[str, str]] = []
4066+ _header_params: Dict[str, Optional[str]] = _headers or {}
4067+ _form_params: List[Tuple[str, str]] = []
4068+ _files: Dict[
4069+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4070+ ] = {}
4071+ _body_params: Optional[bytes] = None
4072+
4073+ # process the path parameters
4074+ if workflow_run_id is not None:
4075+ _path_params['workflow_run_id'] = workflow_run_id
4076+ # process the query parameters
4077+ # process the header parameters
4078+ # process the form parameters
4079+ # process the body parameter
4080+
4081+
4082+ # set the HTTP header `Accept`
4083+ if 'Accept' not in _header_params:
4084+ _header_params['Accept'] = self.api_client.select_header_accept(
4085+ [
4086+ 'application/zip',
4087+ 'application/json'
4088+ ]
4089+ )
4090+
4091+
4092+ # authentication setting
4093+ _auth_settings: List[str] = [
4094+ 'Token'
4095+ ]
4096+
4097+ return self.api_client.param_serialize(
4098+ method='GET',
4099+ resource_path='/workflow_runs/{workflow_run_id}/evidence_folder',
4100+ path_params=_path_params,
4101+ query_params=_query_params,
4102+ header_params=_header_params,
4103+ body=_body_params,
4104+ post_params=_form_params,
4105+ files=_files,
4106+ auth_settings=_auth_settings,
4107+ collection_formats=_collection_formats,
4108+ _host=_host,
4109+ _request_auth=_request_auth
4110+ )
4111+
4112+
4113+
4114+
38504115 @validate_call
38514116 def download_id_photo(
38524117 self,
0 commit comments