aspose_cells_cloud 24.9 → 24.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -11
- data/lib/aspose_cells_cloud/api/cells_api.rb +14 -0
- data/lib/aspose_cells_cloud/models/convert_text_options.rb +294 -0
- data/lib/aspose_cells_cloud/models/remove_characters_by_character.rb +234 -0
- data/lib/aspose_cells_cloud/models/remove_characters_by_position.rb +246 -0
- data/lib/aspose_cells_cloud/models/remove_characters_options.rb +282 -0
- data/lib/aspose_cells_cloud/requests/post_convert_text_request.rb +103 -0
- data/lib/aspose_cells_cloud/requests/post_remove_characters_request.rb +103 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +6 -0
- metadata +8 -2
@@ -0,0 +1,103 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="PostRemoveCharacters_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 PostRemoveCharactersRequest
|
33
|
+
|
34
|
+
attr_accessor :remove_characters_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?(:'removeCharactersOptions')
|
43
|
+
self.remove_characters_options = attributes[:'removeCharactersOptions']
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
48
|
+
def self.attribute_map
|
49
|
+
{
|
50
|
+
:'remove_characters_options' => :'removeCharactersOptions'
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute type mapping.
|
55
|
+
def self.swagger_types
|
56
|
+
{
|
57
|
+
:'remove_characters_options' => :'RemoveCharactersOptions'
|
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_remove_characters ..."
|
64
|
+
end
|
65
|
+
api_client.request_token_if_needed
|
66
|
+
# verify the required parameter 'remove_characters_options' is set
|
67
|
+
if api_client.config.client_side_validation && remove_characters_options.nil?
|
68
|
+
fail ArgumentError, "Missing the required parameter 'remove_characters_options' when calling CellsApi.post_remove_characters "
|
69
|
+
end
|
70
|
+
|
71
|
+
# resource path
|
72
|
+
local_var_path = "/cells/removecharacters"
|
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(remove_characters_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_remove_characters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
99
|
+
end
|
100
|
+
return data, status_code, headers
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
data/lib/aspose_cells_cloud.rb
CHANGED
@@ -351,6 +351,10 @@ require 'aspose_cells_cloud/models/pivot_table'
|
|
351
351
|
require 'aspose_cells_cloud/models/pivot_tables'
|
352
352
|
require 'aspose_cells_cloud/models/add_text_options'
|
353
353
|
require 'aspose_cells_cloud/models/base_operate_options'
|
354
|
+
require 'aspose_cells_cloud/models/convert_text_options'
|
355
|
+
require 'aspose_cells_cloud/models/remove_characters_by_character'
|
356
|
+
require 'aspose_cells_cloud/models/remove_characters_by_position'
|
357
|
+
require 'aspose_cells_cloud/models/remove_characters_options'
|
354
358
|
require 'aspose_cells_cloud/models/scope_item'
|
355
359
|
require 'aspose_cells_cloud/models/scope_options'
|
356
360
|
require 'aspose_cells_cloud/models/trim_content_options'
|
@@ -706,6 +710,8 @@ require 'aspose_cells_cloud/requests/post_run_task_request'
|
|
706
710
|
require 'aspose_cells_cloud/requests/post_add_text_content_request'
|
707
711
|
require 'aspose_cells_cloud/requests/post_trim_content_request'
|
708
712
|
require 'aspose_cells_cloud/requests/post_update_word_case_request'
|
713
|
+
require 'aspose_cells_cloud/requests/post_remove_characters_request'
|
714
|
+
require 'aspose_cells_cloud/requests/post_convert_text_request'
|
709
715
|
require 'aspose_cells_cloud/requests/get_workbook_default_style_request'
|
710
716
|
require 'aspose_cells_cloud/requests/get_workbook_text_items_request'
|
711
717
|
require 'aspose_cells_cloud/requests/get_workbook_names_request'
|
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.
|
4
|
+
version: '24.11'
|
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-
|
11
|
+
date: 2024-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -330,6 +330,7 @@ files:
|
|
330
330
|
- lib/aspose_cells_cloud/models/conditional_formattings_response.rb
|
331
331
|
- lib/aspose_cells_cloud/models/convert_parameter.rb
|
332
332
|
- lib/aspose_cells_cloud/models/convert_task_parameter.rb
|
333
|
+
- lib/aspose_cells_cloud/models/convert_text_options.rb
|
333
334
|
- lib/aspose_cells_cloud/models/convert_worksheet_task_parameter.rb
|
334
335
|
- lib/aspose_cells_cloud/models/copy_options.rb
|
335
336
|
- lib/aspose_cells_cloud/models/create_pivot_table_request.rb
|
@@ -534,6 +535,9 @@ files:
|
|
534
535
|
- lib/aspose_cells_cloud/models/ranges_response.rb
|
535
536
|
- lib/aspose_cells_cloud/models/rectangle_shape.rb
|
536
537
|
- lib/aspose_cells_cloud/models/rectangle_shape_response.rb
|
538
|
+
- lib/aspose_cells_cloud/models/remove_characters_by_character.rb
|
539
|
+
- lib/aspose_cells_cloud/models/remove_characters_by_position.rb
|
540
|
+
- lib/aspose_cells_cloud/models/remove_characters_options.rb
|
537
541
|
- lib/aspose_cells_cloud/models/rendering_font.rb
|
538
542
|
- lib/aspose_cells_cloud/models/rendering_watermark.rb
|
539
543
|
- lib/aspose_cells_cloud/models/result_destination.rb
|
@@ -820,6 +824,7 @@ files:
|
|
820
824
|
- lib/aspose_cells_cloud/requests/post_clear_objects_request.rb
|
821
825
|
- lib/aspose_cells_cloud/requests/post_column_style_request.rb
|
822
826
|
- lib/aspose_cells_cloud/requests/post_compress_request.rb
|
827
|
+
- lib/aspose_cells_cloud/requests/post_convert_text_request.rb
|
823
828
|
- lib/aspose_cells_cloud/requests/post_convert_workbook_to_csv_request.rb
|
824
829
|
- lib/aspose_cells_cloud/requests/post_convert_workbook_to_docx_request.rb
|
825
830
|
- lib/aspose_cells_cloud/requests/post_convert_workbook_to_html_request.rb
|
@@ -864,6 +869,7 @@ files:
|
|
864
869
|
- lib/aspose_cells_cloud/requests/post_pivot_table_update_pivot_fields_request.rb
|
865
870
|
- lib/aspose_cells_cloud/requests/post_protect_request.rb
|
866
871
|
- lib/aspose_cells_cloud/requests/post_protect_workbook_request.rb
|
872
|
+
- lib/aspose_cells_cloud/requests/post_remove_characters_request.rb
|
867
873
|
- lib/aspose_cells_cloud/requests/post_rename_worksheet_request.rb
|
868
874
|
- lib/aspose_cells_cloud/requests/post_repair_request.rb
|
869
875
|
- lib/aspose_cells_cloud/requests/post_replace_request.rb
|