Class: AsposeCellsCloud::PutConvertWorkbookRequest
- Inherits:
-
Object
- Object
- AsposeCellsCloud::PutConvertWorkbookRequest
- Defined in:
- lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb
Instance Attribute Summary collapse
-
#auto_columns_fit ⇒ Object
Returns the value of attribute auto_columns_fit.
-
#auto_rows_fit ⇒ Object
Returns the value of attribute auto_rows_fit.
-
#check_excel_restriction ⇒ Object
Returns the value of attribute check_excel_restriction.
-
#file ⇒ Object
Returns the value of attribute file.
-
#fonts_location ⇒ Object
Returns the value of attribute fonts_location.
-
#format ⇒ Object
Returns the value of attribute format.
-
#one_page_per_sheet ⇒ Object
Returns the value of attribute one_page_per_sheet.
-
#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.
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 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 51 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 if attributes.has_key?(:'onePagePerSheet') self.one_page_per_sheet = attributes[:'onePagePerSheet'] end if attributes.has_key?(:'AutoRowsFit') self.auto_rows_fit = attributes[:'AutoRowsFit'] end if attributes.has_key?(:'AutoColumnsFit') self.auto_columns_fit = attributes[:'AutoColumnsFit'] end if attributes.has_key?(:'FontsLocation') self.fonts_location = attributes[:'FontsLocation'] end end |
Instance Attribute Details
#auto_columns_fit ⇒ Object
Returns the value of attribute auto_columns_fit.
48 49 50 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 48 def auto_columns_fit @auto_columns_fit end |
#auto_rows_fit ⇒ Object
Returns the value of attribute auto_rows_fit.
47 48 49 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 47 def auto_rows_fit @auto_rows_fit end |
#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 |
#fonts_location ⇒ Object
Returns the value of attribute fonts_location.
49 50 51 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 49 def fonts_location @fonts_location 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 |
#one_page_per_sheet ⇒ Object
Returns the value of attribute one_page_per_sheet.
46 47 48 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 46 def one_page_per_sheet @one_page_per_sheet 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.
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 123 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', :'one_page_per_sheet' => :'onePagePerSheet', :'auto_rows_fit' => :'AutoRowsFit', :'auto_columns_fit' => :'AutoColumnsFit', :'fonts_location' => :'FontsLocation' } end |
.swagger_types ⇒ Object
Attribute type mapping.
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 145 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', :'one_page_per_sheet' => :'BOOLEAN', :'auto_rows_fit' => :'BOOLEAN', :'auto_columns_fit' => :'BOOLEAN', :'fonts_location' => :'String' } end |
Instance Method Details
#create_http_request(api_client, opts = {}) ⇒ Object
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
# File 'lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb', line 166 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 # verify the required parameter 'format' is set if api_client.config.client_side_validation && format.nil? fail ArgumentError, "Missing the required parameter 'format' when calling CellsApi.put_convert_workbook " end # resource path local_var_path = "v3.0/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? query_params[:'onePagePerSheet'] = self.one_page_per_sheet if !self.one_page_per_sheet.nil? query_params[:'AutoRowsFit'] = self.auto_rows_fit if !self.auto_rows_fit.nil? query_params[:'AutoColumnsFit'] = self.auto_columns_fit if !self.auto_columns_fit.nil? query_params[:'FontsLocation'] = self.fonts_location if !self.fonts_location.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 header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data']) file.each do |filename , context| form_params[File.basename(filename)] = context end #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 |