aspose_cells_cloud 22.11 → 22.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -5
- data/lib/aspose_cells_cloud/api/cells_api.rb +876 -98
- data/lib/aspose_cells_cloud/models/axis.rb +516 -0
- data/lib/aspose_cells_cloud/models/axis_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/tick_labels.rb +298 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +3 -0
- data/spec/api/cells_chart_axis_api_spec.rb +248 -0
- metadata +6 -2
@@ -0,0 +1,248 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
require 'json'
|
5
|
+
|
6
|
+
# Unit tests for AsposeCellsCloud::CellsChartAxisApi
|
7
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
8
|
+
# Please update as you see appropriate
|
9
|
+
describe 'CellsChartAxisApi' do
|
10
|
+
before do
|
11
|
+
@instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
|
12
|
+
$VERBOSE = nil
|
13
|
+
end
|
14
|
+
|
15
|
+
after do
|
16
|
+
# run after each test
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
# unit tests for cells_charts_get_chart_category_axis
|
22
|
+
#
|
23
|
+
# @param name Workbook name.
|
24
|
+
# @param sheet_name Worksheet name.
|
25
|
+
# @param chart_index The chart index.
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [String] :folder Workbook folder.
|
28
|
+
# @option opts [String] :storage storage name.
|
29
|
+
# @return [ChartAreaResponse]
|
30
|
+
describe 'cells_charts_get_chart_category_axis test' do
|
31
|
+
it "should work" do
|
32
|
+
name = $BOOK1
|
33
|
+
sheet_name = $SHEET4
|
34
|
+
chart_index = 0
|
35
|
+
folder = $TEMPFOLDER
|
36
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
37
|
+
expect(result.uploaded.size).to be > 0
|
38
|
+
result = @instance.cells_charts_get_chart_category_axis(name, sheet_name, chart_index, { :folder=>folder})
|
39
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
# unit tests for cells_charts_get_chart_second_category_axis
|
44
|
+
#
|
45
|
+
# @param name Workbook name.
|
46
|
+
# @param sheet_name Worksheet name.
|
47
|
+
# @param chart_index The chart index.
|
48
|
+
# @param [Hash] opts the optional parameters
|
49
|
+
# @option opts [String] :folder Workbook folder.
|
50
|
+
# @option opts [String] :storage storage name.
|
51
|
+
# @return [ChartAreaResponse]
|
52
|
+
describe 'cells_charts_get_chart_second_category_axis test' do
|
53
|
+
it "should work" do
|
54
|
+
name = $BOOK1
|
55
|
+
sheet_name = $SHEET4
|
56
|
+
chart_index = 0
|
57
|
+
folder = $TEMPFOLDER
|
58
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
59
|
+
expect(result.uploaded.size).to be > 0
|
60
|
+
result = @instance.cells_charts_get_chart_second_category_axis(name, sheet_name, chart_index, { :folder=>folder})
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# unit tests for cells_charts_get_chart_value_axis
|
66
|
+
#
|
67
|
+
# @param name Workbook name.
|
68
|
+
# @param sheet_name Worksheet name.
|
69
|
+
# @param chart_index The chart index.
|
70
|
+
# @param [Hash] opts the optional parameters
|
71
|
+
# @option opts [String] :folder Workbook folder.
|
72
|
+
# @option opts [String] :storage storage name.
|
73
|
+
# @return [ChartAreaResponse]
|
74
|
+
describe 'cells_charts_get_chart_value_axis test' do
|
75
|
+
it "should work" do
|
76
|
+
name = $BOOK1
|
77
|
+
sheet_name = $SHEET4
|
78
|
+
chart_index = 0
|
79
|
+
folder = $TEMPFOLDER
|
80
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
81
|
+
expect(result.uploaded.size).to be > 0
|
82
|
+
result = @instance.cells_charts_get_chart_value_axis(name, sheet_name, chart_index, { :folder=>folder})
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
# unit tests for cells_charts_get_second_chart_value_axis
|
87
|
+
#
|
88
|
+
# @param name Workbook name.
|
89
|
+
# @param sheet_name Worksheet name.
|
90
|
+
# @param chart_index The chart index.
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @option opts [String] :folder Workbook folder.
|
93
|
+
# @option opts [String] :storage storage name.
|
94
|
+
# @return [ChartAreaResponse]
|
95
|
+
describe 'cells_charts_get_chart_second_value_axis test' do
|
96
|
+
it "should work" do
|
97
|
+
name = $BOOK1
|
98
|
+
sheet_name = $SHEET4
|
99
|
+
chart_index = 0
|
100
|
+
folder = $TEMPFOLDER
|
101
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
102
|
+
expect(result.uploaded.size).to be > 0
|
103
|
+
result = @instance.cells_charts_get_chart_second_value_axis(name, sheet_name, chart_index, { :folder=>folder})
|
104
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
105
|
+
end
|
106
|
+
end
|
107
|
+
# unit tests for cells_charts_get_chart_series_axis
|
108
|
+
#
|
109
|
+
# @param name Workbook name.
|
110
|
+
# @param sheet_name Worksheet name.
|
111
|
+
# @param chart_index The chart index.
|
112
|
+
# @param [Hash] opts the optional parameters
|
113
|
+
# @option opts [String] :folder Workbook folder.
|
114
|
+
# @option opts [String] :storage storage name.
|
115
|
+
# @return [ChartAreaResponse]
|
116
|
+
describe 'cells_charts_get_chart_series_axis test' do
|
117
|
+
it "should work" do
|
118
|
+
name = $BOOK1
|
119
|
+
sheet_name = $SHEET4
|
120
|
+
chart_index = 0
|
121
|
+
folder = $TEMPFOLDER
|
122
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
123
|
+
expect(result.uploaded.size).to be > 0
|
124
|
+
result = @instance.cells_charts_get_chart_series_axis(name, sheet_name, chart_index, { :folder=>folder})
|
125
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
|
130
|
+
# unit tests for cells_charts_post_chart_category_axis
|
131
|
+
#
|
132
|
+
# @param name Workbook name.
|
133
|
+
# @param sheet_name Worksheet name.
|
134
|
+
# @param chart_index The chart index.
|
135
|
+
# @param [Hash] opts the optional parameters
|
136
|
+
# @option opts [String] :folder Workbook folder.
|
137
|
+
# @option opts [String] :storage storage name.
|
138
|
+
# @return [ChartAreaResponse]
|
139
|
+
describe 'cells_charts_post_chart_category_axis test' do
|
140
|
+
it "should work" do
|
141
|
+
name = $BOOK1
|
142
|
+
sheet_name = $SHEET4
|
143
|
+
chart_index = 0
|
144
|
+
axis = AsposeCellsCloud::Axis.new
|
145
|
+
axis.min_value = 10.0
|
146
|
+
folder = $TEMPFOLDER
|
147
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
148
|
+
expect(result.uploaded.size).to be > 0
|
149
|
+
result = @instance.cells_charts_post_chart_category_axis(name, sheet_name, chart_index, axis,{ :folder=>folder})
|
150
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
# unit tests for cells_charts_post_chart_second_category_axis
|
155
|
+
#
|
156
|
+
# @param name Workbook name.
|
157
|
+
# @param sheet_name Worksheet name.
|
158
|
+
# @param chart_index The chart index.
|
159
|
+
# @param [Hash] opts the optional parameters
|
160
|
+
# @option opts [String] :folder Workbook folder.
|
161
|
+
# @option opts [String] :storage storage name.
|
162
|
+
# @return [ChartAreaResponse]
|
163
|
+
describe 'cells_charts_post_chart_second_category_axis test' do
|
164
|
+
it "should work" do
|
165
|
+
name = $BOOK1
|
166
|
+
sheet_name = $SHEET4
|
167
|
+
chart_index = 0
|
168
|
+
axis = AsposeCellsCloud::Axis.new
|
169
|
+
axis.min_value = 10.0
|
170
|
+
folder = $TEMPFOLDER
|
171
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
172
|
+
expect(result.uploaded.size).to be > 0
|
173
|
+
result = @instance.cells_charts_post_chart_second_category_axis(name, sheet_name, chart_index, axis,{ :folder=>folder})
|
174
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# unit tests for cells_charts_post_chart_value_axis
|
179
|
+
#
|
180
|
+
# @param name Workbook name.
|
181
|
+
# @param sheet_name Worksheet name.
|
182
|
+
# @param chart_index The chart index.
|
183
|
+
# @param [Hash] opts the optional parameters
|
184
|
+
# @option opts [String] :folder Workbook folder.
|
185
|
+
# @option opts [String] :storage storage name.
|
186
|
+
# @return [ChartAreaResponse]
|
187
|
+
describe 'cells_charts_post_chart_value_axis test' do
|
188
|
+
it "should work" do
|
189
|
+
name = $BOOK1
|
190
|
+
sheet_name = $SHEET4
|
191
|
+
chart_index = 0
|
192
|
+
axis = AsposeCellsCloud::Axis.new
|
193
|
+
axis.min_value = 10.0
|
194
|
+
folder = $TEMPFOLDER
|
195
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
196
|
+
expect(result.uploaded.size).to be > 0
|
197
|
+
result = @instance.cells_charts_post_chart_value_axis(name, sheet_name, chart_index, axis,{ :folder=>folder})
|
198
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
199
|
+
end
|
200
|
+
end
|
201
|
+
# unit tests for cells_charts_get_second_chart_value_axis
|
202
|
+
#
|
203
|
+
# @param name Workbook name.
|
204
|
+
# @param sheet_name Worksheet name.
|
205
|
+
# @param chart_index The chart index.
|
206
|
+
# @param [Hash] opts the optional parameters
|
207
|
+
# @option opts [String] :folder Workbook folder.
|
208
|
+
# @option opts [String] :storage storage name.
|
209
|
+
# @return [ChartAreaResponse]
|
210
|
+
describe 'cells_charts_post_chart_second_value_axis test' do
|
211
|
+
it "should work" do
|
212
|
+
name = $BOOK1
|
213
|
+
sheet_name = $SHEET4
|
214
|
+
chart_index = 0
|
215
|
+
axis = AsposeCellsCloud::Axis.new
|
216
|
+
axis.min_value = 10.0
|
217
|
+
folder = $TEMPFOLDER
|
218
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
219
|
+
expect(result.uploaded.size).to be > 0
|
220
|
+
result = @instance.cells_charts_post_chart_second_value_axis(name, sheet_name, chart_index,axis, { :folder=>folder})
|
221
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
222
|
+
end
|
223
|
+
end
|
224
|
+
# unit tests for cells_charts_post_chart_series_axis
|
225
|
+
#
|
226
|
+
# @param name Workbook name.
|
227
|
+
# @param sheet_name Worksheet name.
|
228
|
+
# @param chart_index The chart index.
|
229
|
+
# @param [Hash] opts the optional parameters
|
230
|
+
# @option opts [String] :folder Workbook folder.
|
231
|
+
# @option opts [String] :storage storage name.
|
232
|
+
# @return [ChartAreaResponse]
|
233
|
+
describe 'cells_charts_post_chart_series_axis test' do
|
234
|
+
it "should work" do
|
235
|
+
name = $BOOK1
|
236
|
+
sheet_name = $SHEET4
|
237
|
+
chart_index = 0
|
238
|
+
axis = AsposeCellsCloud::Axis.new
|
239
|
+
axis.min_value = 10.0
|
240
|
+
folder = $TEMPFOLDER
|
241
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
242
|
+
expect(result.uploaded.size).to be > 0
|
243
|
+
result = @instance.cells_charts_post_chart_series_axis(name, sheet_name, chart_index,axis, { :folder=>folder})
|
244
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
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: '22.
|
4
|
+
version: '22.12'
|
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: 2022-
|
11
|
+
date: 2022-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -246,6 +246,8 @@ files:
|
|
246
246
|
- lib/aspose_cells_cloud/models/auto_shape_response.rb
|
247
247
|
- lib/aspose_cells_cloud/models/auto_shapes.rb
|
248
248
|
- lib/aspose_cells_cloud/models/auto_shapes_response.rb
|
249
|
+
- lib/aspose_cells_cloud/models/axis.rb
|
250
|
+
- lib/aspose_cells_cloud/models/axis_response.rb
|
249
251
|
- lib/aspose_cells_cloud/models/barcode_response.rb
|
250
252
|
- lib/aspose_cells_cloud/models/barcode_response_list.rb
|
251
253
|
- lib/aspose_cells_cloud/models/batch_convert_request.rb
|
@@ -462,6 +464,7 @@ files:
|
|
462
464
|
- lib/aspose_cells_cloud/models/text_water_marker_request.rb
|
463
465
|
- lib/aspose_cells_cloud/models/texture_fill.rb
|
464
466
|
- lib/aspose_cells_cloud/models/theme_color.rb
|
467
|
+
- lib/aspose_cells_cloud/models/tick_labels.rb
|
465
468
|
- lib/aspose_cells_cloud/models/tile_pic_option.rb
|
466
469
|
- lib/aspose_cells_cloud/models/title.rb
|
467
470
|
- lib/aspose_cells_cloud/models/title_response.rb
|
@@ -503,6 +506,7 @@ files:
|
|
503
506
|
- spec/api/cells_barcode_spec.rb
|
504
507
|
- spec/api/cells_batch_spec.rb
|
505
508
|
- spec/api/cells_chart_area_api_spec.rb
|
509
|
+
- spec/api/cells_chart_axis_api_spec.rb
|
506
510
|
- spec/api/cells_charts_api_spec.rb
|
507
511
|
- spec/api/cells_clear_objects_spec.rb
|
508
512
|
- spec/api/cells_compress_spec.rb
|