aspose_cells_cloud 21.5 → 21.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -5
- data/lib/aspose_cells_cloud.rb +3 -0
- data/lib/aspose_cells_cloud/api/lite_cells_api.rb +893 -0
- data/lib/aspose_cells_cloud/api_client.rb +3 -3
- data/lib/aspose_cells_cloud/models/cells_document_property.rb +46 -13
- data/lib/aspose_cells_cloud/models/file_info.rb +221 -0
- data/lib/aspose_cells_cloud/models/files_result.rb +200 -0
- data/lib/aspose_cells_cloud/models/pivot_item.rb +1 -1
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/spec/api/cells_assembly_spec.rb +44 -0
- data/spec/api/cells_clear_objects_spec.rb +43 -0
- data/spec/api/cells_export_spec.rb +43 -0
- data/spec/api/cells_merge_spec.rb +43 -0
- data/spec/api/cells_metadata_spec.rb +72 -0
- data/spec/api/cells_properties_api_spec.rb +1 -1
- data/spec/api/cells_protect_spec.rb +43 -0
- data/spec/api/cells_search_spec.rb +43 -0
- data/spec/api/cells_split_spec.rb +44 -0
- data/spec/api/cells_unlock_spec.rb +43 -0
- data/spec/api/cells_watermark_spec.rb +42 -0
- data/spec/spec_helper.rb +3 -0
- metadata +15 -2
@@ -0,0 +1,44 @@
|
|
1
|
+
=begin
|
2
|
+
#Web API Swagger specification
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for AsposeCellsCloud::CellsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'LiteCellsApi' do
|
20
|
+
before do
|
21
|
+
@instance = AsposeCellsCloud::LiteCellsApi.new($client_id,$client_secret,$api_version,$baseurl)
|
22
|
+
$VERBOSE = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'lite_cells_unit assembly test' do
|
30
|
+
it "should work" do
|
31
|
+
files = {}
|
32
|
+
|
33
|
+
name = $DataSourceXlsx
|
34
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
35
|
+
name =$AssemblyTestXlsx
|
36
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r") #{|io| io.read(io.size) }
|
37
|
+
|
38
|
+
result = @instance.post_assemble(files ,"ds")
|
39
|
+
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
@@ -0,0 +1,43 @@
|
|
1
|
+
=begin
|
2
|
+
#Web API Swagger specification
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for AsposeCellsCloud::CellsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'LiteCellsApi' do
|
20
|
+
before do
|
21
|
+
@instance = AsposeCellsCloud::LiteCellsApi.new($client_id,$client_secret,$api_version,$baseurl)
|
22
|
+
$VERBOSE = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'lite_cells_unit clear object test' do
|
30
|
+
it "should work" do
|
31
|
+
files = {}
|
32
|
+
name = $DataSourceXlsx
|
33
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
34
|
+
name =$AssemblyTestXlsx
|
35
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
36
|
+
|
37
|
+
result = @instance.post_clear_objects(files ,"chart")
|
38
|
+
|
39
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
@@ -0,0 +1,43 @@
|
|
1
|
+
=begin
|
2
|
+
#Web API Swagger specification
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for AsposeCellsCloud::CellsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'LiteCellsApi' do
|
20
|
+
before do
|
21
|
+
@instance = AsposeCellsCloud::LiteCellsApi.new($client_id,$client_secret,$api_version,$baseurl)
|
22
|
+
$VERBOSE = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'lite_cells_unit export object test' do
|
30
|
+
it "should work" do
|
31
|
+
files = {}
|
32
|
+
name = $DataSourceXlsx
|
33
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
34
|
+
name =$AssemblyTestXlsx
|
35
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
36
|
+
|
37
|
+
result = @instance.post_export(files ,"chart","pdf")
|
38
|
+
|
39
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
@@ -0,0 +1,43 @@
|
|
1
|
+
=begin
|
2
|
+
#Web API Swagger specification
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for AsposeCellsCloud::CellsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'LiteCellsApi' do
|
20
|
+
before do
|
21
|
+
@instance = AsposeCellsCloud::LiteCellsApi.new($client_id,$client_secret,$api_version,$baseurl)
|
22
|
+
$VERBOSE = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'lite_cells_unit merge object test' do
|
30
|
+
it "should work" do
|
31
|
+
files = {}
|
32
|
+
name = $DataSourceXlsx
|
33
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
34
|
+
name =$AssemblyTestXlsx
|
35
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
36
|
+
|
37
|
+
result = @instance.post_merge(files )
|
38
|
+
|
39
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
@@ -0,0 +1,72 @@
|
|
1
|
+
=begin
|
2
|
+
#Web API Swagger specification
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for AsposeCellsCloud::CellsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'LiteCellsApi' do
|
20
|
+
before do
|
21
|
+
@instance = AsposeCellsCloud::LiteCellsApi.new($client_id,$client_secret,$api_version,$baseurl)
|
22
|
+
$VERBOSE = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'lite_cells_unit get metadata test' do
|
30
|
+
it "should work" do
|
31
|
+
files = {}
|
32
|
+
name = $DataSourceXlsx
|
33
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
34
|
+
name =$AssemblyTestXlsx
|
35
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
36
|
+
|
37
|
+
result = @instance.get_metadata(files)
|
38
|
+
|
39
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
40
|
+
end
|
41
|
+
end
|
42
|
+
describe 'lite_cells_unit delete metadata test' do
|
43
|
+
it "should work" do
|
44
|
+
files = {}
|
45
|
+
name = $DataSourceXlsx
|
46
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
47
|
+
name =$AssemblyTestXlsx
|
48
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
49
|
+
|
50
|
+
result = @instance.delete_metadata(files)
|
51
|
+
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
describe 'lite_cells_unit update metadata test' do
|
56
|
+
it "should work" do
|
57
|
+
files = {}
|
58
|
+
name = $DataSourceXlsx
|
59
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
60
|
+
name =$AssemblyTestXlsx
|
61
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
62
|
+
document_property = AsposeCellsCloud::CellsDocumentProperty.new( {:Name=>'test',:Value=>'value'})
|
63
|
+
document_properties = Array.new(1)
|
64
|
+
document_properties[0] =document_property
|
65
|
+
puts document_property.to_json
|
66
|
+
result = @instance.post_metadata(files,document_properties)
|
67
|
+
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
@@ -121,7 +121,7 @@ describe 'CellsPropertiesApi' do
|
|
121
121
|
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
122
122
|
expect(result.uploaded.size).to be > 0
|
123
123
|
result = @instance.cells_properties_put_document_property(name, property_name, { :property=>property, :folder=>folder})
|
124
|
-
expect(result.code).to eql(
|
124
|
+
expect(result.code).to eql(200)
|
125
125
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
126
126
|
end
|
127
127
|
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
=begin
|
2
|
+
#Web API Swagger specification
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for AsposeCellsCloud::CellsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'LiteCellsApi' do
|
20
|
+
before do
|
21
|
+
@instance = AsposeCellsCloud::LiteCellsApi.new($client_id,$client_secret,$api_version,$baseurl)
|
22
|
+
$VERBOSE = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'lite_cells_unit protect object test' do
|
30
|
+
it "should work" do
|
31
|
+
files = {}
|
32
|
+
name = $DataSourceXlsx
|
33
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
34
|
+
name =$AssemblyTestXlsx
|
35
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
36
|
+
|
37
|
+
result = @instance.post_protect(files ,'123456' )
|
38
|
+
|
39
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
@@ -0,0 +1,43 @@
|
|
1
|
+
=begin
|
2
|
+
#Web API Swagger specification
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for AsposeCellsCloud::CellsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'LiteCellsApi' do
|
20
|
+
before do
|
21
|
+
@instance = AsposeCellsCloud::LiteCellsApi.new($client_id,$client_secret,$api_version,$baseurl)
|
22
|
+
$VERBOSE = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'lite_cells_unit search object test' do
|
30
|
+
it "should work" do
|
31
|
+
files = {}
|
32
|
+
name = $DataSourceXlsx
|
33
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
34
|
+
name =$AssemblyTestXlsx
|
35
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
36
|
+
|
37
|
+
result = @instance.post_search(files ,'1' )
|
38
|
+
|
39
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
@@ -0,0 +1,44 @@
|
|
1
|
+
=begin
|
2
|
+
#Web API Swagger specification
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for AsposeCellsCloud::CellsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'LiteCellsApi' do
|
20
|
+
before do
|
21
|
+
@instance = AsposeCellsCloud::LiteCellsApi.new($client_id,$client_secret,$api_version,$baseurl)
|
22
|
+
$VERBOSE = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'lite_cells_unit split object test' do
|
30
|
+
it "should work" do
|
31
|
+
files = {}
|
32
|
+
name = $DataSourceXlsx
|
33
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
34
|
+
name =$AssemblyTestXlsx
|
35
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
36
|
+
|
37
|
+
result = @instance.post_split(files ,'png' )
|
38
|
+
|
39
|
+
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
@@ -0,0 +1,43 @@
|
|
1
|
+
=begin
|
2
|
+
#Web API Swagger specification
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for AsposeCellsCloud::CellsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'LiteCellsApi' do
|
20
|
+
before do
|
21
|
+
@instance = AsposeCellsCloud::LiteCellsApi.new($client_id,$client_secret,$api_version,$baseurl)
|
22
|
+
$VERBOSE = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'lite_cells_unit unlock object test' do
|
30
|
+
it "should work" do
|
31
|
+
files = {}
|
32
|
+
name = $needUnlockXlsx
|
33
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
34
|
+
|
35
|
+
|
36
|
+
result = @instance.post_unlock(files ,'123456' )
|
37
|
+
|
38
|
+
|
39
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|