aspose_cells_cloud 24.8 → 24.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec919c4c4c70d01f602512a48d0b30a9b4d99ce0b704ad72e557f2fba4d555ac
4
- data.tar.gz: a7fb6162caecb1074f8e36968733adaffb0eaf4545961cd4ff0151f5960bdcaa
3
+ metadata.gz: e0ed9ffde4c5720d38ce2c83a23ed895c344a44bae73ad1ff0aefb4f4ecf0167
4
+ data.tar.gz: 4492ebb6618270b0347cdd4e3b61622c77fe12bc680659373377bbbb8a3df963
5
5
  SHA512:
6
- metadata.gz: 0f4e851ab86e6c9ccb2c5b5dd652a8954068b77f92747a1ca91c2c9b06dc678a19f6f37305c7b6f0ca6194a040484393fd1ed48e0028c070be501ee41e90fde2
7
- data.tar.gz: defc2e78b5da7c73a70482af12cfeff4a5c7f8e5ce8daa6bb122423ea0458dde5c8aac57dcee56454d4c89e6073fe1737508c119652cbba17f14bed733718697
6
+ metadata.gz: fd81350bac60ecdf90e7fa82ddb80d77673039f2fdbf694d5418bc72e9c7866329241e2e6bc77c8b82b423f69f04d5a1c64339e8f8c6490808b2ea6d6394476b
7
+ data.tar.gz: f2a8d44243c662b1dd3de7ae4e8d1b9bb9279969fecab3ec90d4a29fcdd4530651c7593a620664eb229cb96867ff8b2f5152566b829d777d1930f56b253d081d
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Gem](https://img.shields.io/gem/v/aspose_cells_cloud) ![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/24.8)
1
+ ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Gem](https://img.shields.io/gem/v/aspose_cells_cloud) ![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/24.9)
2
2
 
3
3
 
4
4
  Aspose.Cells Cloud for Ruby enables you to handle various aspects of Excel files, including cell data, styles, formulas, charts, pivot tables, data validation, comments, drawing objects, images, hyperlinks, and so on. Additionally, it supports operations such as splitting, merging, repairing, and converting to other compatible file formats.
@@ -22,11 +22,12 @@ Enhance your Ruby applications with the [Aspose.Cells Cloud](https://products.as
22
22
  - Security Management: Offers a range of security features like data encryption, access control, and permission management to safeguard the security and integrity of spreadsheet data.
23
23
 
24
24
 
25
- ## Feature & Enhancements in Version 24.8
25
+ ## Feature & Enhancements in Version 24.9
26
26
 
27
27
  Full list of issues covering all changes in this release:
28
28
 
29
- - Add text trim feature on Cells Cloud Services.
29
+ - Add word case function for TextProcessingController.
30
+ - Support to export Worksheet to HTML with cell address or id.
30
31
 
31
32
  ## Support file format
32
33
 
@@ -125,6 +126,10 @@ request = AsposeCellsCloud::PutConvertWorkbookRequest.new(:File=>mapFiles,:for
125
126
 
126
127
  # Release history version
127
128
 
129
+ ## Enhancements in Version 24.8
130
+
131
+ - Add text trim feature on Cells Cloud Services.
132
+
128
133
  ## Enhancements in Version 24.7
129
134
 
130
135
  - Add a new feature about adding text content.
@@ -2087,6 +2087,13 @@ module AsposeCellsCloud
2087
2087
  return data
2088
2088
  end
2089
2089
 
2090
+
2091
+ def post_update_word_case( post_update_word_case_request, opts = {})
2092
+
2093
+ data, _status_code, _headers = post_update_word_case_request.create_http_request(@api_client,opts )
2094
+ return data
2095
+ end
2096
+
2090
2097
  # Retrieve the description of the default style for the workbook .
2091
2098
 
2092
2099
  def get_workbook_default_style( get_workbook_default_style_request, opts = {})
@@ -445,9 +445,9 @@ module AsposeCellsCloud
445
445
  local_var_path ="/oauth2/token"
446
446
  end
447
447
  url = build_request_url(local_var_path)
448
- # url = build_request_url(local_var_path).gsub('/'+config.api_version, '')
449
- # url = build_request_url(local_var_path).gsub('/v3.0', '')
450
- # print url
448
+ #url = build_request_url(local_var_path).gsub('/'+config.api_version, '')
449
+ #url = build_request_url(local_var_path).gsub('/v3.0', '')
450
+
451
451
  # header parameters
452
452
  header_params = {}
453
453
  # HTTP header 'Content-Type'
@@ -95,9 +95,9 @@ module AsposeCellsCloud
95
95
  attr_accessor :export_chart_image_format
96
96
  #
97
97
  attr_accessor :export_images_as_base64
98
- #Hidden column(the width of this column is 0) in excel,before save this into html format, if HtmlHiddenColDisplayType is "Remove",the hidden column would ont been output, if the value is "Hidden", the column would been output,but was hidden,the default value is "Hidden"
98
+ #Hidden column(the width of this column is 0) in excel,before save this into html format, if HtmlHiddenColDisplayType is "Remove",the hidden column would ont been output, if the value is "Hidden", the column would been output,but was hidden,the default value is "Hidden"
99
99
  attr_accessor :hidden_col_display_type
100
- #Hidden row(the height of this row is 0) in excel,before save this into html format, if HtmlHiddenRowDisplayType is "Remove",the hidden row would ont been output, if the value is "Hidden", the row would been output,but was hidden,the default value is "Hidden"
100
+ #Hidden row(the height of this row is 0) in excel,before save this into html format, if HtmlHiddenRowDisplayType is "Remove",the hidden row would ont been output, if the value is "Hidden", the row would been output,but was hidden,the default value is "Hidden"
101
101
  attr_accessor :hidden_row_display_type
102
102
  #Indicates if a cross-cell string will be displayed in the same way as MS Excel when saving an Excel file in html format. By default the value is Default, so, for cross-cell strings, there is little difference between the html files created by Aspose.Cells and MS Excel. But the performance for creating large html files,setting the value to Cross would be several times faster than setting it to Default or Fit2Cell.
103
103
  attr_accessor :html_cross_string_type
@@ -108,6 +108,8 @@ module AsposeCellsCloud
108
108
  #Parse html tag in cell,like ,as cell value,or as html tag,default is true
109
109
  attr_accessor :parse_html_tag_in_cell
110
110
  #
111
+ attr_accessor :cell_name_attribute
112
+ #
111
113
  attr_accessor :save_format
112
114
  #
113
115
  attr_accessor :cached_file_folder
@@ -165,6 +167,7 @@ module AsposeCellsCloud
165
167
  :'is_exp_image_to_temp_dir' => :'IsExpImageToTempDir',
166
168
  :'page_title' => :'PageTitle',
167
169
  :'parse_html_tag_in_cell' => :'ParseHtmlTagInCell',
170
+ :'cell_name_attribute' => :'CellNameAttribute',
168
171
  :'save_format' => :'SaveFormat',
169
172
  :'cached_file_folder' => :'CachedFileFolder',
170
173
  :'clear_data' => :'ClearData',
@@ -217,6 +220,7 @@ module AsposeCellsCloud
217
220
  :'is_exp_image_to_temp_dir' => :'BOOLEAN',
218
221
  :'page_title' => :'String',
219
222
  :'parse_html_tag_in_cell' => :'BOOLEAN',
223
+ :'cell_name_attribute' => :'String',
220
224
  :'save_format' => :'String',
221
225
  :'cached_file_folder' => :'String',
222
226
  :'clear_data' => :'BOOLEAN',
@@ -350,6 +354,9 @@ module AsposeCellsCloud
350
354
  if attributes.has_key?(:'ParseHtmlTagInCell')
351
355
  self.parse_html_tag_in_cell = attributes[:'ParseHtmlTagInCell']
352
356
  end
357
+ if attributes.has_key?(:'CellNameAttribute')
358
+ self.cell_name_attribute = attributes[:'CellNameAttribute']
359
+ end
353
360
  if attributes.has_key?(:'SaveFormat')
354
361
  self.save_format = attributes[:'SaveFormat']
355
362
  end
@@ -495,6 +502,9 @@ module AsposeCellsCloud
495
502
  if @parse_html_tag_in_cell.nil?
496
503
  invalid_properties.push("invalid value for 'parse_html_tag_in_cell', parse_html_tag_in_cell cannot be nil.")
497
504
  end
505
+ if @cell_name_attribute.nil?
506
+ invalid_properties.push("invalid value for 'cell_name_attribute', cell_name_attribute cannot be nil.")
507
+ end
498
508
  if @save_format.nil?
499
509
  invalid_properties.push("invalid value for 'save_format', save_format cannot be nil.")
500
510
  end
@@ -564,6 +574,7 @@ module AsposeCellsCloud
564
574
  return false if @is_exp_image_to_temp_dir.nil?
565
575
  return false if @page_title.nil?
566
576
  return false if @parse_html_tag_in_cell.nil?
577
+ return false if @cell_name_attribute.nil?
567
578
  return false if @save_format.nil?
568
579
  return false if @cached_file_folder.nil?
569
580
  return false if @clear_data.nil?
@@ -618,6 +629,7 @@ module AsposeCellsCloud
618
629
  is_exp_image_to_temp_dir == o.is_exp_image_to_temp_dir &&
619
630
  page_title == o.page_title &&
620
631
  parse_html_tag_in_cell == o.parse_html_tag_in_cell &&
632
+ cell_name_attribute == o.cell_name_attribute &&
621
633
  save_format == o.save_format &&
622
634
  cached_file_folder == o.cached_file_folder &&
623
635
  clear_data == o.clear_data &&
@@ -638,7 +650,7 @@ module AsposeCellsCloud
638
650
  # Calculates hash code according to all attributes.
639
651
  # @return [Fixnum] Hash code
640
652
  def hash
641
- [ export_page_headers , export_page_footers , export_row_column_headings , show_all_sheets , image_options , save_as_single_file , export_hidden_worksheet , export_grid_lines , presentation_preference , cell_css_prefix , table_css_id , is_full_path_link , export_worksheet_css_separately , export_similar_border_style , merge_empty_td_forcely , export_cell_coordinate , export_extra_headings , export_headings , export_formula , add_tooltip_text , export_bogus_row_data , exclude_unused_styles , export_document_properties , export_worksheet_properties , export_workbook_properties , export_frame_scripts_and_properties , attached_files_directory , attached_files_url_prefix , encoding , export_active_worksheet_only , export_chart_image_format , export_images_as_base64 , hidden_col_display_type , hidden_row_display_type , html_cross_string_type , is_exp_image_to_temp_dir , page_title , parse_html_tag_in_cell , save_format , cached_file_folder , clear_data , create_directory , enable_http_compression , refresh_chart_cache , sort_names , validate_merged_areas ].hash
653
+ [ export_page_headers , export_page_footers , export_row_column_headings , show_all_sheets , image_options , save_as_single_file , export_hidden_worksheet , export_grid_lines , presentation_preference , cell_css_prefix , table_css_id , is_full_path_link , export_worksheet_css_separately , export_similar_border_style , merge_empty_td_forcely , export_cell_coordinate , export_extra_headings , export_headings , export_formula , add_tooltip_text , export_bogus_row_data , exclude_unused_styles , export_document_properties , export_worksheet_properties , export_workbook_properties , export_frame_scripts_and_properties , attached_files_directory , attached_files_url_prefix , encoding , export_active_worksheet_only , export_chart_image_format , export_images_as_base64 , hidden_col_display_type , hidden_row_display_type , html_cross_string_type , is_exp_image_to_temp_dir , page_title , parse_html_tag_in_cell , cell_name_attribute , save_format , cached_file_folder , clear_data , create_directory , enable_http_compression , refresh_chart_cache , sort_names , validate_merged_areas ].hash
642
654
  end
643
655
 
644
656
  # Builds the object from hash
@@ -37,6 +37,8 @@ module AsposeCellsCloud
37
37
  attr_accessor :encrypt_with_password
38
38
  #Represents the various types of protection options available for a worksheet.
39
39
  attr_accessor :protect_current_sheet
40
+ #Represents the various types of protection options available for all worksheets.
41
+ attr_accessor :protect_all_sheets
40
42
  #Indicates protect workbook structure. All, Contents, Objects, Scenarios, Structure, Windows, and None.
41
43
  attr_accessor :protect_workbook_structure
42
44
  #Indicates signature in file.
@@ -50,6 +52,7 @@ module AsposeCellsCloud
50
52
  :'aways_open_read_only' => :'AwaysOpenReadOnly',
51
53
  :'encrypt_with_password' => :'EncryptWithPassword',
52
54
  :'protect_current_sheet' => :'ProtectCurrentSheet',
55
+ :'protect_all_sheets' => :'ProtectAllSheets',
53
56
  :'protect_workbook_structure' => :'ProtectWorkbookStructure',
54
57
  :'digital_signature' => :'DigitalSignature',
55
58
  :'mark_as_final' => :'MarkAsFinal'
@@ -62,6 +65,7 @@ module AsposeCellsCloud
62
65
  :'aways_open_read_only' => :'BOOLEAN',
63
66
  :'encrypt_with_password' => :'String',
64
67
  :'protect_current_sheet' => :'Protection',
68
+ :'protect_all_sheets' => :'Protection',
65
69
  :'protect_workbook_structure' => :'String',
66
70
  :'digital_signature' => :'DigitalSignature',
67
71
  :'mark_as_final' => :'BOOLEAN'
@@ -85,6 +89,9 @@ module AsposeCellsCloud
85
89
  if attributes.has_key?(:'ProtectCurrentSheet')
86
90
  self.protect_current_sheet = attributes[:'ProtectCurrentSheet']
87
91
  end
92
+ if attributes.has_key?(:'ProtectAllSheets')
93
+ self.protect_all_sheets = attributes[:'ProtectAllSheets']
94
+ end
88
95
  if attributes.has_key?(:'ProtectWorkbookStructure')
89
96
  self.protect_workbook_structure = attributes[:'ProtectWorkbookStructure']
90
97
  end
@@ -110,6 +117,9 @@ module AsposeCellsCloud
110
117
  if @protect_current_sheet.nil?
111
118
  invalid_properties.push("invalid value for 'protect_current_sheet', protect_current_sheet cannot be nil.")
112
119
  end
120
+ if @protect_all_sheets.nil?
121
+ invalid_properties.push("invalid value for 'protect_all_sheets', protect_all_sheets cannot be nil.")
122
+ end
113
123
  if @protect_workbook_structure.nil?
114
124
  invalid_properties.push("invalid value for 'protect_workbook_structure', protect_workbook_structure cannot be nil.")
115
125
  end
@@ -129,6 +139,7 @@ module AsposeCellsCloud
129
139
  return false if @aways_open_read_only.nil?
130
140
  return false if @encrypt_with_password.nil?
131
141
  return false if @protect_current_sheet.nil?
142
+ return false if @protect_all_sheets.nil?
132
143
  return false if @protect_workbook_structure.nil?
133
144
  return false if @digital_signature.nil?
134
145
  return false if @mark_as_final.nil?
@@ -143,6 +154,7 @@ module AsposeCellsCloud
143
154
  aways_open_read_only == o.aways_open_read_only &&
144
155
  encrypt_with_password == o.encrypt_with_password &&
145
156
  protect_current_sheet == o.protect_current_sheet &&
157
+ protect_all_sheets == o.protect_all_sheets &&
146
158
  protect_workbook_structure == o.protect_workbook_structure &&
147
159
  digital_signature == o.digital_signature &&
148
160
  mark_as_final == o.mark_as_final
@@ -158,7 +170,7 @@ module AsposeCellsCloud
158
170
  # Calculates hash code according to all attributes.
159
171
  # @return [Fixnum] Hash code
160
172
  def hash
161
- [ aways_open_read_only , encrypt_with_password , protect_current_sheet , protect_workbook_structure , digital_signature , mark_as_final ].hash
173
+ [ aways_open_read_only , encrypt_with_password , protect_current_sheet , protect_all_sheets , protect_workbook_structure , digital_signature , mark_as_final ].hash
162
174
  end
163
175
 
164
176
  # Builds the object from hash
@@ -41,6 +41,8 @@ module AsposeCellsCloud
41
41
  attr_accessor :height
42
42
  #Indicates image width.
43
43
  attr_accessor :width
44
+ #
45
+ attr_accessor :image_adapt_option
44
46
 
45
47
  # Attribute mapping from ruby-style variable name to JSON key.
46
48
  def self.attribute_map
@@ -49,7 +51,8 @@ module AsposeCellsCloud
49
51
  :'font_name' => :'FontName',
50
52
  :'font_size' => :'FontSize',
51
53
  :'height' => :'Height',
52
- :'width' => :'Width'
54
+ :'width' => :'Width',
55
+ :'image_adapt_option' => :'ImageAdaptOption'
53
56
  }
54
57
  end
55
58
 
@@ -60,7 +63,8 @@ module AsposeCellsCloud
60
63
  :'font_name' => :'String',
61
64
  :'font_size' => :'Integer',
62
65
  :'height' => :'Integer',
63
- :'width' => :'Integer'
66
+ :'width' => :'Integer',
67
+ :'image_adapt_option' => :'String'
64
68
  }
65
69
  end
66
70
 
@@ -87,6 +91,9 @@ module AsposeCellsCloud
87
91
  if attributes.has_key?(:'Width')
88
92
  self.width = attributes[:'Width']
89
93
  end
94
+ if attributes.has_key?(:'ImageAdaptOption')
95
+ self.image_adapt_option = attributes[:'ImageAdaptOption']
96
+ end
90
97
 
91
98
  end
92
99
 
@@ -109,6 +116,9 @@ module AsposeCellsCloud
109
116
  if @width.nil?
110
117
  invalid_properties.push("invalid value for 'width', width cannot be nil.")
111
118
  end
119
+ if @image_adapt_option.nil?
120
+ invalid_properties.push("invalid value for 'image_adapt_option', image_adapt_option cannot be nil.")
121
+ end
112
122
 
113
123
  return invalid_properties
114
124
  end
@@ -121,6 +131,7 @@ module AsposeCellsCloud
121
131
  return false if @font_size.nil?
122
132
  return false if @height.nil?
123
133
  return false if @width.nil?
134
+ return false if @image_adapt_option.nil?
124
135
  return true
125
136
  end
126
137
 
@@ -133,7 +144,8 @@ module AsposeCellsCloud
133
144
  font_name == o.font_name &&
134
145
  font_size == o.font_size &&
135
146
  height == o.height &&
136
- width == o.width
147
+ width == o.width &&
148
+ image_adapt_option == o.image_adapt_option
137
149
  std_dev == o.std_dev
138
150
  end
139
151
 
@@ -146,7 +158,7 @@ module AsposeCellsCloud
146
158
  # Calculates hash code according to all attributes.
147
159
  # @return [Fixnum] Hash code
148
160
  def hash
149
- [ text , font_name , font_size , height , width ].hash
161
+ [ text , font_name , font_size , height , width , image_adapt_option ].hash
150
162
  end
151
163
 
152
164
  # Builds the object from hash
@@ -0,0 +1,246 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="WordCaseOptionsrb.cs">
4
+ Copyright (c) 2024 Aspose.Cells Cloud
5
+ </copyright>
6
+ <summary>
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
24
+ </summary>
25
+ --------------------------------------------------------------------------------------------------------------------
26
+ =end
27
+
28
+
29
+ require 'date'
30
+
31
+ module AsposeCellsCloud
32
+
33
+ class WordCaseOptions
34
+ #
35
+ attr_accessor :data_source
36
+ #
37
+ attr_accessor :file_info
38
+ #
39
+ attr_accessor :word_case_type
40
+ #
41
+ attr_accessor :scope_options
42
+
43
+ # Attribute mapping from ruby-style variable name to JSON key.
44
+ def self.attribute_map
45
+ {
46
+ :'data_source' => :'DataSource',
47
+ :'file_info' => :'FileInfo',
48
+ :'word_case_type' => :'WordCaseType',
49
+ :'scope_options' => :'ScopeOptions'
50
+ }
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.swagger_types
55
+ {
56
+ :'data_source' => :'DataSource',
57
+ :'file_info' => :'FileInfo',
58
+ :'word_case_type' => :'String',
59
+ :'scope_options' => :'ScopeOptions'
60
+ }
61
+ end
62
+
63
+ # Initializes the object
64
+ # @param [Hash] attributes Model attributes in the form of hash
65
+ def initialize(attributes = {})
66
+ return unless attributes.is_a?(Hash)
67
+
68
+ # convert string to symbol for hash key
69
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
70
+
71
+ if attributes.has_key?(:'DataSource')
72
+ self.data_source = attributes[:'DataSource']
73
+ end
74
+ if attributes.has_key?(:'FileInfo')
75
+ self.file_info = attributes[:'FileInfo']
76
+ end
77
+ if attributes.has_key?(:'WordCaseType')
78
+ self.word_case_type = attributes[:'WordCaseType']
79
+ end
80
+ if attributes.has_key?(:'ScopeOptions')
81
+ self.scope_options = attributes[:'ScopeOptions']
82
+ end
83
+
84
+ end
85
+
86
+ # Show invalid properties with the reasons. Usually used together with valid?
87
+ # @return Array for valid properies with the reasons
88
+ def list_invalid_properties
89
+ invalid_properties = Array.new
90
+ if @data_source.nil?
91
+ invalid_properties.push("invalid value for 'data_source', data_source cannot be nil.")
92
+ end
93
+ if @file_info.nil?
94
+ invalid_properties.push("invalid value for 'file_info', file_info cannot be nil.")
95
+ end
96
+ if @word_case_type.nil?
97
+ invalid_properties.push("invalid value for 'word_case_type', word_case_type cannot be nil.")
98
+ end
99
+ if @scope_options.nil?
100
+ invalid_properties.push("invalid value for 'scope_options', scope_options cannot be nil.")
101
+ end
102
+
103
+ return invalid_properties
104
+ end
105
+
106
+ # Check to see if the all the properties in the model are valid
107
+ # @return true if the model is valid
108
+ def valid?
109
+ return false if @data_source.nil?
110
+ return false if @file_info.nil?
111
+ return false if @word_case_type.nil?
112
+ return false if @scope_options.nil?
113
+ return true
114
+ end
115
+
116
+ # Checks equality by comparing each attribute.
117
+ # @param [Object] Object to be compared
118
+ def ==(o)
119
+ return true if self.equal?(o)
120
+ self.class == o.class &&
121
+ data_source == o.data_source &&
122
+ file_info == o.file_info &&
123
+ word_case_type == o.word_case_type &&
124
+ scope_options == o.scope_options
125
+ std_dev == o.std_dev
126
+ end
127
+
128
+ # @see the `==` method
129
+ # @param [Object] Object to be compared
130
+ def eql?(o)
131
+ self == o
132
+ end
133
+
134
+ # Calculates hash code according to all attributes.
135
+ # @return [Fixnum] Hash code
136
+ def hash
137
+ [ data_source , file_info , word_case_type , scope_options ].hash
138
+ end
139
+
140
+ # Builds the object from hash
141
+ # @param [Hash] attributes Model attributes in the form of hash
142
+ # @return [Object] Returns the model itself
143
+ def build_from_hash(attributes)
144
+ return nil unless attributes.is_a?(Hash)
145
+ self.class.swagger_types.each_pair do |key, type|
146
+ if type =~ /\AArray<(.*)>/i
147
+ # check to ensure the input is an array given that the the attribute
148
+ # is documented as an array but the input is not
149
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
150
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
151
+ end
152
+ elsif !attributes[self.class.attribute_map[key]].nil?
153
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
154
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
155
+ end
156
+
157
+ self
158
+ end
159
+
160
+ # Deserializes the data based on type
161
+ # @param string type Data type
162
+ # @param string value Value to be deserialized
163
+ # @return [Object] Deserialized data
164
+ def _deserialize(type, value)
165
+ case type.to_sym
166
+ when :DateTime
167
+ DateTime.parse(value)
168
+ when :Date
169
+ Date.parse(value)
170
+ when :String
171
+ value.to_s
172
+ when :Integer
173
+ value.to_i
174
+ when :Float
175
+ value.to_f
176
+ when :BOOLEAN
177
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
178
+ true
179
+ else
180
+ false
181
+ end
182
+ when :Object
183
+ # generic object (usually a Hash), return directly
184
+ value
185
+ when /\AArray<(?<inner_type>.+)>\z/
186
+ inner_type = Regexp.last_match[:inner_type]
187
+ value.map { |v| _deserialize(inner_type, v) }
188
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
189
+ k_type = Regexp.last_match[:k_type]
190
+ v_type = Regexp.last_match[:v_type]
191
+ {}.tap do |hash|
192
+ value.each do |k, v|
193
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
194
+ end
195
+ end
196
+ else # model
197
+ temp_model = AsposeCellsCloud.const_get(type).new
198
+ temp_model.build_from_hash(value)
199
+ end
200
+ end
201
+
202
+ # Returns the string representation of the object
203
+ # @return [String] String presentation of the object
204
+ def to_s
205
+ to_hash.to_s
206
+ end
207
+
208
+ # to_body is an alias to to_hash (backward compatibility)
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_body
211
+ to_hash
212
+ end
213
+
214
+ # Returns the object in the form of hash
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_hash
217
+ hash = {}
218
+ self.class.attribute_map.each_pair do |attr, param|
219
+ value = self.send(attr)
220
+ next if value.nil?
221
+ hash[param] = _to_hash(value)
222
+ end
223
+ hash
224
+ end
225
+
226
+ # Outputs non-array value in the form of hash
227
+ # For object, use to_hash. Otherwise, just return the value
228
+ # @param [Object] value Any valid value
229
+ # @return [Hash] Returns the value in the form of hash
230
+ def _to_hash(value)
231
+ if value.is_a?(Array)
232
+ value.compact.map{ |v| _to_hash(v) }
233
+ elsif value.is_a?(Hash)
234
+ {}.tap do |hash|
235
+ value.each { |k, v| hash[k] = _to_hash(v) }
236
+ end
237
+ elsif value.respond_to? :to_hash
238
+ value.to_hash
239
+ else
240
+ value
241
+ end
242
+ end
243
+
244
+ end
245
+
246
+ end
@@ -0,0 +1,103 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="PostUpdateWordCase_request.rb.cs">
4
+ Copyright (c) 2024 Aspose.Cells Cloud
5
+ </copyright>
6
+ <summary>
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
24
+ </summary>
25
+ --------------------------------------------------------------------------------------------------------------------
26
+ =end
27
+
28
+
29
+ require "uri"
30
+
31
+ module AsposeCellsCloud
32
+ class PostUpdateWordCaseRequest
33
+
34
+ attr_accessor :word_case_options
35
+
36
+ def initialize(attributes = {})
37
+ return unless attributes.is_a?(Hash)
38
+
39
+ # convert string to symbol for hash key
40
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
41
+
42
+ if attributes.has_key?(:'wordCaseOptions')
43
+ self.word_case_options = attributes[:'wordCaseOptions']
44
+ end
45
+
46
+ end
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ def self.attribute_map
49
+ {
50
+ :'word_case_options' => :'wordCaseOptions'
51
+ }
52
+ end
53
+
54
+ # Attribute type mapping.
55
+ def self.swagger_types
56
+ {
57
+ :'word_case_options' => :'WordCaseOptions'
58
+ }
59
+ end
60
+
61
+ def create_http_request(api_client,opts = {})
62
+ if api_client.config.debugging
63
+ api_client.config.logger.debug "Calling API: CellsApi.post_update_word_case ..."
64
+ end
65
+ api_client.request_token_if_needed
66
+ # verify the required parameter 'word_case_options' is set
67
+ if api_client.config.client_side_validation && word_case_options.nil?
68
+ fail ArgumentError, "Missing the required parameter 'word_case_options' when calling CellsApi.post_update_word_case "
69
+ end
70
+
71
+ # resource path
72
+ local_var_path = "/cells/updatewordcase"
73
+ # query parameters
74
+ query_params = {}
75
+ # header parameters
76
+ header_params = {}
77
+ # HTTP header 'Accept' (if needed)
78
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
79
+ # HTTP header 'Content-Type'
80
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
81
+
82
+ # form parameters
83
+ form_params = {}
84
+ post_body = nil
85
+ post_body = api_client.object_to_http_body(word_case_options)
86
+
87
+
88
+ #auth_names = []
89
+ auth_names = ['JWT']
90
+ data, status_code, headers = api_client.call_api(:POST, local_var_path,
91
+ :header_params => header_params,
92
+ :query_params => query_params,
93
+ :form_params => form_params,
94
+ :body => post_body,
95
+ :auth_names => auth_names,
96
+ :return_type => 'FileInfo')
97
+ if api_client.config.debugging
98
+ api_client.config.logger.debug "API called: Specification.Name>Api.post_update_word_case\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
99
+ end
100
+ return data, status_code, headers
101
+ end
102
+ end
103
+ end
@@ -41,6 +41,8 @@ module AsposeCellsCloud
41
41
  attr_accessor :region
42
42
  attr_accessor :page_wide_fit_on_per_sheet
43
43
  attr_accessor :page_tall_fit_on_per_sheet
44
+ attr_accessor :sheet_name
45
+ attr_accessor :page_index
44
46
 
45
47
  def initialize(attributes = {})
46
48
  return unless attributes.is_a?(Hash)
@@ -78,6 +80,12 @@ module AsposeCellsCloud
78
80
  if attributes.has_key?(:'pageTallFitOnPerSheet')
79
81
  self.page_tall_fit_on_per_sheet = attributes[:'pageTallFitOnPerSheet']
80
82
  end
83
+ if attributes.has_key?(:'sheetName')
84
+ self.sheet_name = attributes[:'sheetName']
85
+ end
86
+ if attributes.has_key?(:'pageIndex')
87
+ self.page_index = attributes[:'pageIndex']
88
+ end
81
89
 
82
90
  end
83
91
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -92,7 +100,9 @@ module AsposeCellsCloud
92
100
  :'stream_format' => :'streamFormat',
93
101
  :'region' => :'region',
94
102
  :'page_wide_fit_on_per_sheet' => :'pageWideFitOnPerSheet',
95
- :'page_tall_fit_on_per_sheet' => :'pageTallFitOnPerSheet'
103
+ :'page_tall_fit_on_per_sheet' => :'pageTallFitOnPerSheet',
104
+ :'sheet_name' => :'sheetName',
105
+ :'page_index' => :'pageIndex'
96
106
  }
97
107
  end
98
108
 
@@ -108,7 +118,9 @@ module AsposeCellsCloud
108
118
  :'stream_format' => :'String',
109
119
  :'region' => :'String',
110
120
  :'page_wide_fit_on_per_sheet' => :'BOOLEAN',
111
- :'page_tall_fit_on_per_sheet' => :'BOOLEAN'
121
+ :'page_tall_fit_on_per_sheet' => :'BOOLEAN',
122
+ :'sheet_name' => :'String',
123
+ :'page_index' => :'Integer'
112
124
  }
113
125
  end
114
126
 
@@ -135,6 +147,8 @@ module AsposeCellsCloud
135
147
  query_params[:'region'] = self.region if !self.region.nil?
136
148
  query_params[:'pageWideFitOnPerSheet'] = self.page_wide_fit_on_per_sheet if !self.page_wide_fit_on_per_sheet.nil?
137
149
  query_params[:'pageTallFitOnPerSheet'] = self.page_tall_fit_on_per_sheet if !self.page_tall_fit_on_per_sheet.nil?
150
+ query_params[:'sheetName'] = self.sheet_name if !self.sheet_name.nil?
151
+ query_params[:'pageIndex'] = self.page_index if !self.page_index.nil?
138
152
 
139
153
  # header parameters
140
154
  header_params = {}
@@ -33,6 +33,7 @@ module AsposeCellsCloud
33
33
 
34
34
  attr_accessor :name
35
35
  attr_accessor :pic_path
36
+ attr_accessor :image_adapt_option
36
37
  attr_accessor :folder
37
38
  attr_accessor :storage_name
38
39
  attr_accessor :file
@@ -49,6 +50,9 @@ module AsposeCellsCloud
49
50
  if attributes.has_key?(:'picPath')
50
51
  self.pic_path = attributes[:'picPath']
51
52
  end
53
+ if attributes.has_key?(:'imageAdaptOption')
54
+ self.image_adapt_option = attributes[:'imageAdaptOption']
55
+ end
52
56
  if attributes.has_key?(:'folder')
53
57
  self.folder = attributes[:'folder']
54
58
  end
@@ -65,6 +69,7 @@ module AsposeCellsCloud
65
69
  {
66
70
  :'name' => :'name',
67
71
  :'pic_path' => :'picPath',
72
+ :'image_adapt_option' => :'imageAdaptOption',
68
73
  :'folder' => :'folder',
69
74
  :'storage_name' => :'storageName',
70
75
  :'file' => :'File'
@@ -76,6 +81,7 @@ module AsposeCellsCloud
76
81
  {
77
82
  :'name' => :'String',
78
83
  :'pic_path' => :'String',
84
+ :'image_adapt_option' => :'String',
79
85
  :'folder' => :'String',
80
86
  :'storage_name' => :'String',
81
87
  :'file' => :'Hash'
@@ -97,6 +103,7 @@ module AsposeCellsCloud
97
103
  # query parameters
98
104
  query_params = {}
99
105
  query_params[:'picPath'] = self.pic_path if !self.pic_path.nil?
106
+ query_params[:'imageAdaptOption'] = self.image_adapt_option if !self.image_adapt_option.nil?
100
107
  query_params[:'folder'] = self.folder if !self.folder.nil?
101
108
  query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
102
109
 
@@ -34,6 +34,7 @@ module AsposeCellsCloud
34
34
  attr_accessor :name
35
35
  attr_accessor :sheet_name
36
36
  attr_accessor :pic_path
37
+ attr_accessor :image_adapt_option
37
38
  attr_accessor :folder
38
39
  attr_accessor :storage_name
39
40
  attr_accessor :file
@@ -53,6 +54,9 @@ module AsposeCellsCloud
53
54
  if attributes.has_key?(:'picPath')
54
55
  self.pic_path = attributes[:'picPath']
55
56
  end
57
+ if attributes.has_key?(:'imageAdaptOption')
58
+ self.image_adapt_option = attributes[:'imageAdaptOption']
59
+ end
56
60
  if attributes.has_key?(:'folder')
57
61
  self.folder = attributes[:'folder']
58
62
  end
@@ -70,6 +74,7 @@ module AsposeCellsCloud
70
74
  :'name' => :'name',
71
75
  :'sheet_name' => :'sheetName',
72
76
  :'pic_path' => :'picPath',
77
+ :'image_adapt_option' => :'imageAdaptOption',
73
78
  :'folder' => :'folder',
74
79
  :'storage_name' => :'storageName',
75
80
  :'file' => :'File'
@@ -82,6 +87,7 @@ module AsposeCellsCloud
82
87
  :'name' => :'String',
83
88
  :'sheet_name' => :'String',
84
89
  :'pic_path' => :'String',
90
+ :'image_adapt_option' => :'String',
85
91
  :'folder' => :'String',
86
92
  :'storage_name' => :'String',
87
93
  :'file' => :'Hash'
@@ -107,6 +113,7 @@ module AsposeCellsCloud
107
113
  # query parameters
108
114
  query_params = {}
109
115
  query_params[:'picPath'] = self.pic_path if !self.pic_path.nil?
116
+ query_params[:'imageAdaptOption'] = self.image_adapt_option if !self.image_adapt_option.nil?
110
117
  query_params[:'folder'] = self.folder if !self.folder.nil?
111
118
  query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
112
119
 
@@ -27,5 +27,5 @@
27
27
 
28
28
 
29
29
  module AsposeCellsCloud
30
- VERSION = "24.8"
30
+ VERSION = "24.9"
31
31
  end
@@ -354,6 +354,7 @@ require 'aspose_cells_cloud/models/base_operate_options'
354
354
  require 'aspose_cells_cloud/models/scope_item'
355
355
  require 'aspose_cells_cloud/models/scope_options'
356
356
  require 'aspose_cells_cloud/models/trim_content_options'
357
+ require 'aspose_cells_cloud/models/word_case_options'
357
358
  require 'aspose_cells_cloud/models/cell_value'
358
359
  require 'aspose_cells_cloud/models/custom_parser_config'
359
360
  require 'aspose_cells_cloud/models/import2_dimension_double_array_option'
@@ -704,6 +705,7 @@ require 'aspose_cells_cloud/requests/post_worksheet_sparkline_group_request'
704
705
  require 'aspose_cells_cloud/requests/post_run_task_request'
705
706
  require 'aspose_cells_cloud/requests/post_add_text_content_request'
706
707
  require 'aspose_cells_cloud/requests/post_trim_content_request'
708
+ require 'aspose_cells_cloud/requests/post_update_word_case_request'
707
709
  require 'aspose_cells_cloud/requests/get_workbook_default_style_request'
708
710
  require 'aspose_cells_cloud/requests/get_workbook_text_items_request'
709
711
  require 'aspose_cells_cloud/requests/get_workbook_names_request'
@@ -45,7 +45,9 @@ describe 'CellsApi' do
45
45
 
46
46
  uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
47
47
  @instance.upload_file(uploadrequest)
48
- deduplicationRegion = AsposeCellsCloud::DeduplicationRegion.new();
48
+ deduplicationRegionRanges = [
49
+ ];
50
+ deduplicationRegion = AsposeCellsCloud::DeduplicationRegion.new(:Ranges=>deduplicationRegionRanges );
49
51
  request = AsposeCellsCloud::PostWorkbookDataDeduplicationRequest.new(:name=>remote_name,:deduplicationRegion=>deduplicationRegion,:folder=>remote_folder,:storageName=>'');
50
52
  @instance.post_workbook_data_deduplication(request);
51
53
  end
@@ -66,40 +66,4 @@ describe 'CellsApi' do
66
66
  @instance.copy_file(request);
67
67
  end
68
68
  end
69
-
70
- describe 'move_file test' do
71
- it "should work" do
72
- remote_folder = 'TestData/In'
73
-
74
- local_name = 'Book1.xlsx'
75
- remote_name = 'Book1.xlsx'
76
-
77
-
78
- mapFiles = { }
79
- mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
80
-
81
- uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
82
- @instance.upload_file(uploadrequest)
83
- request = AsposeCellsCloud::MoveFileRequest.new(:srcPath=>remote_folder + '/' + remote_name,:destPath=>'OutResult/' + remote_name,:srcStorageName=>'',:destStorageName=>'',:versionId=>'');
84
- @instance.move_file(request);
85
- end
86
- end
87
-
88
- describe 'delete_file test' do
89
- it "should work" do
90
- remote_folder = 'TestData/In'
91
-
92
- local_name = 'Book1.xlsx'
93
- remote_name = 'Book1.xlsx'
94
-
95
-
96
- mapFiles = { }
97
- mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
98
-
99
- uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
100
- @instance.upload_file(uploadrequest)
101
- request = AsposeCellsCloud::DeleteFileRequest.new(:path=>remote_folder + '/' + remote_name,:storageName=>'',:versionId=>'');
102
- @instance.delete_file(request);
103
- end
104
- end
105
69
  end
@@ -51,4 +51,25 @@ describe 'CellsApi' do
51
51
  @instance.post_trim_content(request);
52
52
  end
53
53
  end
54
+
55
+ describe 'post_update_word_case test' do
56
+ it "should work" do
57
+ remote_folder = 'TestData/In'
58
+
59
+ local_name = 'BookText.xlsx'
60
+ remote_name = 'BookText.xlsx'
61
+
62
+
63
+ mapFiles = { }
64
+ mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
65
+
66
+ uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
67
+ @instance.upload_file(uploadrequest)
68
+ wordCaseOptionsDataSource = AsposeCellsCloud::DataSource.new(:DataSourceType=>'CloudFileSystem' ,:DataPath=>'BookText.xlsx' );
69
+ wordCaseOptionsScopeOptions = AsposeCellsCloud::ScopeOptions.new(:Scope=>'EntireWorkbook' );
70
+ wordCaseOptions = AsposeCellsCloud::WordCaseOptions.new(:DataSource=>wordCaseOptionsDataSource ,:WordCaseType=>'None' ,:ScopeOptions=>wordCaseOptionsScopeOptions );
71
+ request = AsposeCellsCloud::PostUpdateWordCaseRequest.new(:wordCaseOptions=>wordCaseOptions);
72
+ @instance.post_update_word_case(request);
73
+ end
74
+ end
54
75
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_cells_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: '24.8'
4
+ version: '24.9'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aspose Cells Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-12 00:00:00.000000000 Z
11
+ date: 2024-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -628,6 +628,7 @@ files:
628
628
  - lib/aspose_cells_cloud/models/vertical_page_breaks_response.rb
629
629
  - lib/aspose_cells_cloud/models/walls.rb
630
630
  - lib/aspose_cells_cloud/models/walls_response.rb
631
+ - lib/aspose_cells_cloud/models/word_case_options.rb
631
632
  - lib/aspose_cells_cloud/models/workbook.rb
632
633
  - lib/aspose_cells_cloud/models/workbook_encryption_request.rb
633
634
  - lib/aspose_cells_cloud/models/workbook_operate_parameter.rb
@@ -881,6 +882,7 @@ files:
881
882
  - lib/aspose_cells_cloud/requests/post_unhide_worksheet_columns_request.rb
882
883
  - lib/aspose_cells_cloud/requests/post_unhide_worksheet_rows_request.rb
883
884
  - lib/aspose_cells_cloud/requests/post_unlock_request.rb
885
+ - lib/aspose_cells_cloud/requests/post_update_word_case_request.rb
884
886
  - lib/aspose_cells_cloud/requests/post_update_worksheet_cell_style_request.rb
885
887
  - lib/aspose_cells_cloud/requests/post_update_worksheet_ole_object_request.rb
886
888
  - lib/aspose_cells_cloud/requests/post_update_worksheet_property_request.rb