Class: AsposeEmailCloud::AiBcrOcrStorageRequestData
- Inherits:
-
EmailRequest
- Object
- EmailRequest
- AsposeEmailCloud::AiBcrOcrStorageRequestData
- Defined in:
- lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb
Overview
Request model for ai_bcr_ocr_storage operation.
Instance Attribute Summary collapse
-
#rq ⇒ AiBcrStorageImageRq
Request with images located on storage.
Instance Method Summary collapse
-
#initialize(rq) ⇒ AiBcrOcrStorageRequestData
constructor
Ocr images from storage.
- #to_http_info(api_client) ⇒ Object
Constructor Details
#initialize(rq) ⇒ AiBcrOcrStorageRequestData
Ocr images from storage
41 42 43 |
# File 'lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb', line 41 def initialize(rq) self.rq = rq if rq end |
Instance Attribute Details
#rq ⇒ AiBcrStorageImageRq
Request with images located on storage
37 38 39 |
# File 'lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb', line 37 def rq @rq end |
Instance Method Details
#to_http_info(api_client) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb', line 45 def to_http_info(api_client) # verify the required parameter 'rq' is set if api_client.config.client_side_validation && self.rq.nil? raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_bcr_ocr_storage" end # resource path local_var_path = '/email/AiBcr/ocr-storage' # query parameters query_params = {} # form parameters form_params = {} # http body (model) post_body = api_client.object_to_http_body(self.rq) auth_names = ['JWT'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json']) AsposeEmailCloud::HttpRequest.new(local_var_path, header_params, query_params, form_params, post_body, auth_names) end |