Class: AsposeCellsCloud::PutConvertWorkbookRequest
- Inherits:
-
Object
- Object
- AsposeCellsCloud::PutConvertWorkbookRequest
- Defined in:
- lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb
Instance Attribute Summary collapse
-
#check_excel_restriction ⇒ Object
Returns the value of attribute check_excel_restriction.
-
#file ⇒ Object
Returns the value of attribute file.
-
#format ⇒ Object
Returns the value of attribute format.
-
#out_path ⇒ Object
Returns the value of attribute out_path.
-
#page_index ⇒ Object
Returns the value of attribute page_index.
-
#page_tall_fit_on_per_sheet ⇒ Object
Returns the value of attribute page_tall_fit_on_per_sheet.
-
#page_wide_fit_on_per_sheet ⇒ Object
Returns the value of attribute page_wide_fit_on_per_sheet.
-
#password ⇒ Object
Returns the value of attribute password.
-
#region ⇒ Object
Returns the value of attribute region.
-
#sheet_name ⇒ Object
Returns the value of attribute sheet_name.
-
#storage_name ⇒ Object
Returns the value of attribute storage_name.
-
#stream_format ⇒ Object
Returns the value of attribute stream_format.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
- #create_http_request(api_client, opts = {}) ⇒ Object
-
#initialize(attributes = {}) ⇒ PutConvertWorkbookRequest
constructor
A new instance of PutConvertWorkbookRequest.
Constructor Details
#initialize(attributes = {}) ⇒ PutConvertWorkbookRequest
Returns a new instance of PutConvertWorkbookRequest.
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 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 47 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'File') self.file = attributes[:'File'] end if attributes.has_key?(:'format') self.format = attributes[:'format'] end if attributes.has_key?(:'password') self.password = attributes[:'password'] end if attributes.has_key?(:'outPath') self.out_path = attributes[:'outPath'] end if attributes.has_key?(:'storageName') self.storage_name = attributes[:'storageName'] end if attributes.has_key?(:'checkExcelRestriction') self.check_excel_restriction = attributes[:'checkExcelRestriction'] end if attributes.has_key?(:'streamFormat') self.stream_format = attributes[:'streamFormat'] end if attributes.has_key?(:'region') self.region = attributes[:'region'] end if attributes.has_key?(:'pageWideFitOnPerSheet') self.page_wide_fit_on_per_sheet = attributes[:'pageWideFitOnPerSheet'] end if attributes.has_key?(:'pageTallFitOnPerSheet') self.page_tall_fit_on_per_sheet = attributes[:'pageTallFitOnPerSheet'] end if attributes.has_key?(:'sheetName') self.sheet_name = attributes[:'sheetName'] end if attributes.has_key?(:'pageIndex') self.page_index = attributes[:'pageIndex'] end end |
Instance Attribute Details
#check_excel_restriction ⇒ Object
Returns the value of attribute check_excel_restriction.
39 40 41 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 39 def check_excel_restriction @check_excel_restriction end |
#file ⇒ Object
Returns the value of attribute file.
34 35 36 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 34 def file @file end |
#format ⇒ Object
Returns the value of attribute format.
35 36 37 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 35 def format @format end |
#out_path ⇒ Object
Returns the value of attribute out_path.
37 38 39 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 37 def out_path @out_path end |
#page_index ⇒ Object
Returns the value of attribute page_index.
45 46 47 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 45 def page_index @page_index end |
#page_tall_fit_on_per_sheet ⇒ Object
Returns the value of attribute page_tall_fit_on_per_sheet.
43 44 45 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 43 def page_tall_fit_on_per_sheet @page_tall_fit_on_per_sheet end |
#page_wide_fit_on_per_sheet ⇒ Object
Returns the value of attribute page_wide_fit_on_per_sheet.
42 43 44 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 42 def page_wide_fit_on_per_sheet @page_wide_fit_on_per_sheet end |
#password ⇒ Object
Returns the value of attribute password.
36 37 38 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 36 def password @password end |
#region ⇒ Object
Returns the value of attribute region.
41 42 43 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 41 def region @region end |
#sheet_name ⇒ Object
Returns the value of attribute sheet_name.
44 45 46 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 44 def sheet_name @sheet_name end |
#storage_name ⇒ Object
Returns the value of attribute storage_name.
38 39 40 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 38 def storage_name @storage_name end |
#stream_format ⇒ Object
Returns the value of attribute stream_format.
40 41 42 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 40 def stream_format @stream_format end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 92 def self.attribute_map { :'file' => :'File', :'format' => :'format', :'password' => :'password', :'out_path' => :'outPath', :'storage_name' => :'storageName', :'check_excel_restriction' => :'checkExcelRestriction', :'stream_format' => :'streamFormat', :'region' => :'region', :'page_wide_fit_on_per_sheet' => :'pageWideFitOnPerSheet', :'page_tall_fit_on_per_sheet' => :'pageTallFitOnPerSheet', :'sheet_name' => :'sheetName', :'page_index' => :'pageIndex' } end |
.swagger_types ⇒ Object
Attribute type mapping.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 110 def self.swagger_types { :'file' => :'Hash', :'format' => :'String', :'password' => :'String', :'out_path' => :'String', :'storage_name' => :'String', :'check_excel_restriction' => :'BOOLEAN', :'stream_format' => :'String', :'region' => :'String', :'page_wide_fit_on_per_sheet' => :'BOOLEAN', :'page_tall_fit_on_per_sheet' => :'BOOLEAN', :'sheet_name' => :'String', :'page_index' => :'Integer' } end |
Instance Method Details
#create_http_request(api_client, opts = {}) ⇒ Object
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 127 def create_http_request(api_client,opts = {}) if api_client.config.debugging api_client.config.logger.debug "Calling API: CellsApi.put_convert_workbook ..." end api_client.request_token_if_needed # verify the required parameter 'file' is set if api_client.config.client_side_validation && file.nil? fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.put_convert_workbook " end # resource path local_var_path = "/cells/convert" # query parameters query_params = {} query_params[:'format'] = self.format if !self.format.nil? query_params[:'password'] = self.password if !self.password.nil? query_params[:'outPath'] = self.out_path if !self.out_path.nil? query_params[:'storageName'] = self.storage_name if !self.storage_name.nil? query_params[:'checkExcelRestriction'] = self.check_excel_restriction if !self.check_excel_restriction.nil? query_params[:'streamFormat'] = self.stream_format if !self.stream_format.nil? query_params[:'region'] = self.region if !self.region.nil? query_params[:'pageWideFitOnPerSheet'] = self.page_wide_fit_on_per_sheet if !self.page_wide_fit_on_per_sheet.nil? query_params[:'pageTallFitOnPerSheet'] = self.page_tall_fit_on_per_sheet if !self.page_tall_fit_on_per_sheet.nil? query_params[:'sheetName'] = self.sheet_name if !self.sheet_name.nil? query_params[:'pageIndex'] = self.page_index if !self.page_index.nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = api_client.select_header_content_type(['application/json']) # form parameters form_params = {} post_body = nil if(!file.nil?) file.each do |filename , context| form_params[filename] = context end end header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data']) #auth_names = [] auth_names = ['JWT'] data, status_code, headers = api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'File') if api_client.config.debugging api_client.config.logger.debug "API called: Specification.Name>Api.put_convert_workbook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |