aspose_cells_cloud 23.10 → 23.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 +16 -13
- data/lib/aspose_cells_cloud/api/cells_api.rb +159 -22830
- data/lib/aspose_cells_cloud/models/{value_type.rb → barcode_response.rb} +77 -20
- data/lib/aspose_cells_cloud/models/{total_request.rb → barcode_response_list.rb} +2 -2
- data/lib/aspose_cells_cloud/models/{cells_error.rb → import_json_request.rb} +60 -55
- data/lib/aspose_cells_cloud/models/import_xml_request.rb +16 -4
- data/lib/aspose_cells_cloud/models/{spreadsheet_ml2003_save_options.rb → spreadsheet_m_l2003_save_options.rb} +134 -96
- data/lib/aspose_cells_cloud/requests/post_workbook_import_json_request.rb +156 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +9 -5
- data/spec/api/folder_controller_spec.rb +1 -1
- data/spec/api/workbook_controller_spec.rb +2 -2
- data/spec/conversion/conversion_json_spec.rb +0 -198
- data/spec/conversion/conversion_png_spec.rb +0 -264
- data/spec/conversion/conversion_spec.rb +92 -653
- data/spec/document/light_cells_spec.rb +6 -5
- metadata +9 -12
- data/lib/aspose_cells_cloud/api/light_cells_api.rb +0 -1304
- data/lib/aspose_cells_cloud/api/lite_cells_api.rb +0 -1179
- data/lib/aspose_cells_cloud/models/access_token_response.rb +0 -261
- data/spec/one_case_spec.rb +0 -26
@@ -1,40 +1,62 @@
|
|
1
1
|
=begin
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
copies
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
3
|
+
<copyright company="Aspose" file="BarcodeResponserb.cs">
|
4
|
+
Copyright (c) 2023 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>
|
19
25
|
--------------------------------------------------------------------------------------------------------------------
|
20
|
-
|
21
26
|
=end
|
22
27
|
|
28
|
+
|
23
29
|
require 'date'
|
24
30
|
|
25
31
|
module AsposeCellsCloud
|
26
32
|
|
27
|
-
class
|
33
|
+
class BarcodeResponse
|
34
|
+
#Gets or sets barcode data.
|
35
|
+
attr_accessor :barcode_value
|
36
|
+
#Gets or sets type of the barcode.
|
37
|
+
attr_accessor :barcode_type
|
38
|
+
#Gets or sets region with barcode.
|
39
|
+
attr_accessor :region
|
40
|
+
#Gets or sets checksum of barcode.
|
41
|
+
attr_accessor :checksum
|
28
42
|
|
29
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
44
|
def self.attribute_map
|
31
45
|
{
|
46
|
+
:'barcode_value' => :'BarcodeValue',
|
47
|
+
:'barcode_type' => :'BarcodeType',
|
48
|
+
:'region' => :'Region',
|
49
|
+
:'checksum' => :'Checksum'
|
32
50
|
}
|
33
51
|
end
|
34
52
|
|
35
53
|
# Attribute type mapping.
|
36
54
|
def self.swagger_types
|
37
55
|
{
|
56
|
+
:'barcode_value' => :'String',
|
57
|
+
:'barcode_type' => :'String',
|
58
|
+
:'region' => :'Array<Point>',
|
59
|
+
:'checksum' => :'String'
|
38
60
|
}
|
39
61
|
end
|
40
62
|
|
@@ -46,18 +68,48 @@ module AsposeCellsCloud
|
|
46
68
|
# convert string to symbol for hash key
|
47
69
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
70
|
|
71
|
+
if attributes.has_key?(:'BarcodeValue')
|
72
|
+
self.barcode_value = attributes[:'BarcodeValue']
|
73
|
+
end
|
74
|
+
if attributes.has_key?(:'BarcodeType')
|
75
|
+
self.barcode_type = attributes[:'BarcodeType']
|
76
|
+
end
|
77
|
+
if attributes.has_key?(:'Region')
|
78
|
+
self.region = attributes[:'Region']
|
79
|
+
end
|
80
|
+
if attributes.has_key?(:'Checksum')
|
81
|
+
self.checksum = attributes[:'Checksum']
|
82
|
+
end
|
83
|
+
|
49
84
|
end
|
50
85
|
|
51
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
52
87
|
# @return Array for valid properies with the reasons
|
53
88
|
def list_invalid_properties
|
54
89
|
invalid_properties = Array.new
|
90
|
+
if @barcode_value.nil?
|
91
|
+
invalid_properties.push("invalid value for 'barcode_value', barcode_value cannot be nil.")
|
92
|
+
end
|
93
|
+
if @barcode_type.nil?
|
94
|
+
invalid_properties.push("invalid value for 'barcode_type', barcode_type cannot be nil.")
|
95
|
+
end
|
96
|
+
if @region.nil?
|
97
|
+
invalid_properties.push("invalid value for 'region', region cannot be nil.")
|
98
|
+
end
|
99
|
+
if @checksum.nil?
|
100
|
+
invalid_properties.push("invalid value for 'checksum', checksum cannot be nil.")
|
101
|
+
end
|
102
|
+
|
55
103
|
return invalid_properties
|
56
104
|
end
|
57
105
|
|
58
106
|
# Check to see if the all the properties in the model are valid
|
59
107
|
# @return true if the model is valid
|
60
108
|
def valid?
|
109
|
+
return false if @barcode_value.nil?
|
110
|
+
return false if @barcode_type.nil?
|
111
|
+
return false if @region.nil?
|
112
|
+
return false if @checksum.nil?
|
61
113
|
return true
|
62
114
|
end
|
63
115
|
|
@@ -65,7 +117,12 @@ module AsposeCellsCloud
|
|
65
117
|
# @param [Object] Object to be compared
|
66
118
|
def ==(o)
|
67
119
|
return true if self.equal?(o)
|
68
|
-
self.class == o.class
|
120
|
+
self.class == o.class &&
|
121
|
+
barcode_value == o.barcode_value &&
|
122
|
+
barcode_type == o.barcode_type &&
|
123
|
+
region == o.region &&
|
124
|
+
checksum == o.checksum
|
125
|
+
std_dev == o.std_dev
|
69
126
|
end
|
70
127
|
|
71
128
|
# @see the `==` method
|
@@ -77,7 +134,7 @@ module AsposeCellsCloud
|
|
77
134
|
# Calculates hash code according to all attributes.
|
78
135
|
# @return [Fixnum] Hash code
|
79
136
|
def hash
|
80
|
-
[].hash
|
137
|
+
[ barcode_value , barcode_type , region , checksum ].hash
|
81
138
|
end
|
82
139
|
|
83
140
|
# Builds the object from hash
|
@@ -1,6 +1,6 @@
|
|
1
1
|
=begin
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
3
|
-
<copyright company="Aspose" file="
|
3
|
+
<copyright company="Aspose" file="BarcodeResponseListrb.cs">
|
4
4
|
Copyright (c) 2023 Aspose.Cells Cloud
|
5
5
|
</copyright>
|
6
6
|
<summary>
|
@@ -30,7 +30,7 @@ require 'date'
|
|
30
30
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
|
-
class
|
33
|
+
class BarcodeResponseList
|
34
34
|
|
35
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
36
|
def self.attribute_map
|
@@ -1,60 +1,58 @@
|
|
1
1
|
=begin
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
copies
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
3
|
+
<copyright company="Aspose" file="ImportJsonRequestrb.cs">
|
4
|
+
Copyright (c) 2023 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>
|
19
25
|
--------------------------------------------------------------------------------------------------------------------
|
20
|
-
|
21
26
|
=end
|
22
27
|
|
28
|
+
|
23
29
|
require 'date'
|
24
30
|
|
25
31
|
module AsposeCellsCloud
|
26
|
-
# Error
|
27
|
-
class CellsError
|
28
|
-
# Code
|
29
|
-
attr_accessor :code
|
30
|
-
|
31
|
-
# Message
|
32
|
-
attr_accessor :message
|
33
|
-
|
34
|
-
# Description
|
35
|
-
attr_accessor :description
|
36
|
-
|
37
|
-
# Inner Error
|
38
|
-
attr_accessor :inner_error
|
39
32
|
|
33
|
+
class ImportJsonRequest
|
34
|
+
#XML file source
|
35
|
+
attr_accessor :json_file_source
|
36
|
+
#Import position description.
|
37
|
+
attr_accessor :import_position
|
38
|
+
#Base64String default is null
|
39
|
+
attr_accessor :json_content
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'
|
45
|
-
:'
|
46
|
-
:'
|
47
|
-
:'inner_error' => :'InnerError'
|
44
|
+
:'json_file_source' => :'JsonFileSource',
|
45
|
+
:'import_position' => :'ImportPosition',
|
46
|
+
:'json_content' => :'JsonContent'
|
48
47
|
}
|
49
48
|
end
|
50
49
|
|
51
50
|
# Attribute type mapping.
|
52
51
|
def self.swagger_types
|
53
52
|
{
|
54
|
-
:'
|
55
|
-
:'
|
56
|
-
:'
|
57
|
-
:'inner_error' => :'ErrorDetails'
|
53
|
+
:'json_file_source' => :'FileSource',
|
54
|
+
:'import_position' => :'ImportPosition',
|
55
|
+
:'json_content' => :'String'
|
58
56
|
}
|
59
57
|
end
|
60
58
|
|
@@ -66,20 +64,14 @@ module AsposeCellsCloud
|
|
66
64
|
# convert string to symbol for hash key
|
67
65
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
68
66
|
|
69
|
-
if attributes.has_key?(:'
|
70
|
-
|
67
|
+
if attributes.has_key?(:'JsonFileSource')
|
68
|
+
self.json_file_source = attributes[:'JsonFileSource']
|
71
69
|
end
|
72
|
-
|
73
|
-
|
74
|
-
self.message = attributes[:'Message']
|
70
|
+
if attributes.has_key?(:'ImportPosition')
|
71
|
+
self.import_position = attributes[:'ImportPosition']
|
75
72
|
end
|
76
|
-
|
77
|
-
|
78
|
-
self.description = attributes[:'Description']
|
79
|
-
end
|
80
|
-
|
81
|
-
if attributes.has_key?(:'InnerError')
|
82
|
-
self.inner_error = attributes[:'InnerError']
|
73
|
+
if attributes.has_key?(:'JsonContent')
|
74
|
+
self.json_content = attributes[:'JsonContent']
|
83
75
|
end
|
84
76
|
|
85
77
|
end
|
@@ -88,12 +80,25 @@ module AsposeCellsCloud
|
|
88
80
|
# @return Array for valid properies with the reasons
|
89
81
|
def list_invalid_properties
|
90
82
|
invalid_properties = Array.new
|
83
|
+
if @json_file_source.nil?
|
84
|
+
invalid_properties.push("invalid value for 'json_file_source', json_file_source cannot be nil.")
|
85
|
+
end
|
86
|
+
if @import_position.nil?
|
87
|
+
invalid_properties.push("invalid value for 'import_position', import_position cannot be nil.")
|
88
|
+
end
|
89
|
+
if @json_content.nil?
|
90
|
+
invalid_properties.push("invalid value for 'json_content', json_content cannot be nil.")
|
91
|
+
end
|
92
|
+
|
91
93
|
return invalid_properties
|
92
94
|
end
|
93
95
|
|
94
96
|
# Check to see if the all the properties in the model are valid
|
95
97
|
# @return true if the model is valid
|
96
98
|
def valid?
|
99
|
+
return false if @json_file_source.nil?
|
100
|
+
return false if @import_position.nil?
|
101
|
+
return false if @json_content.nil?
|
97
102
|
return true
|
98
103
|
end
|
99
104
|
|
@@ -102,10 +107,10 @@ module AsposeCellsCloud
|
|
102
107
|
def ==(o)
|
103
108
|
return true if self.equal?(o)
|
104
109
|
self.class == o.class &&
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
110
|
+
json_file_source == o.json_file_source &&
|
111
|
+
import_position == o.import_position &&
|
112
|
+
json_content == o.json_content
|
113
|
+
std_dev == o.std_dev
|
109
114
|
end
|
110
115
|
|
111
116
|
# @see the `==` method
|
@@ -117,7 +122,7 @@ module AsposeCellsCloud
|
|
117
122
|
# Calculates hash code according to all attributes.
|
118
123
|
# @return [Fixnum] Hash code
|
119
124
|
def hash
|
120
|
-
[
|
125
|
+
[ json_file_source , import_position , json_content ].hash
|
121
126
|
end
|
122
127
|
|
123
128
|
# Builds the object from hash
|
@@ -35,12 +35,15 @@ module AsposeCellsCloud
|
|
35
35
|
attr_accessor :xml_file_source
|
36
36
|
#Import position description.
|
37
37
|
attr_accessor :import_position
|
38
|
+
#Base64String default is null
|
39
|
+
attr_accessor :xml_content
|
38
40
|
|
39
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
42
|
def self.attribute_map
|
41
43
|
{
|
42
44
|
:'xml_file_source' => :'XMLFileSource',
|
43
|
-
:'import_position' => :'ImportPosition'
|
45
|
+
:'import_position' => :'ImportPosition',
|
46
|
+
:'xml_content' => :'XMLContent'
|
44
47
|
}
|
45
48
|
end
|
46
49
|
|
@@ -48,7 +51,8 @@ module AsposeCellsCloud
|
|
48
51
|
def self.swagger_types
|
49
52
|
{
|
50
53
|
:'xml_file_source' => :'FileSource',
|
51
|
-
:'import_position' => :'ImportPosition'
|
54
|
+
:'import_position' => :'ImportPosition',
|
55
|
+
:'xml_content' => :'String'
|
52
56
|
}
|
53
57
|
end
|
54
58
|
|
@@ -66,6 +70,9 @@ module AsposeCellsCloud
|
|
66
70
|
if attributes.has_key?(:'ImportPosition')
|
67
71
|
self.import_position = attributes[:'ImportPosition']
|
68
72
|
end
|
73
|
+
if attributes.has_key?(:'XMLContent')
|
74
|
+
self.xml_content = attributes[:'XMLContent']
|
75
|
+
end
|
69
76
|
|
70
77
|
end
|
71
78
|
|
@@ -79,6 +86,9 @@ module AsposeCellsCloud
|
|
79
86
|
if @import_position.nil?
|
80
87
|
invalid_properties.push("invalid value for 'import_position', import_position cannot be nil.")
|
81
88
|
end
|
89
|
+
if @xml_content.nil?
|
90
|
+
invalid_properties.push("invalid value for 'xml_content', xml_content cannot be nil.")
|
91
|
+
end
|
82
92
|
|
83
93
|
return invalid_properties
|
84
94
|
end
|
@@ -88,6 +98,7 @@ module AsposeCellsCloud
|
|
88
98
|
def valid?
|
89
99
|
return false if @xml_file_source.nil?
|
90
100
|
return false if @import_position.nil?
|
101
|
+
return false if @xml_content.nil?
|
91
102
|
return true
|
92
103
|
end
|
93
104
|
|
@@ -97,7 +108,8 @@ module AsposeCellsCloud
|
|
97
108
|
return true if self.equal?(o)
|
98
109
|
self.class == o.class &&
|
99
110
|
xml_file_source == o.xml_file_source &&
|
100
|
-
import_position == o.import_position
|
111
|
+
import_position == o.import_position &&
|
112
|
+
xml_content == o.xml_content
|
101
113
|
std_dev == o.std_dev
|
102
114
|
end
|
103
115
|
|
@@ -110,7 +122,7 @@ module AsposeCellsCloud
|
|
110
122
|
# Calculates hash code according to all attributes.
|
111
123
|
# @return [Fixnum] Hash code
|
112
124
|
def hash
|
113
|
-
[ xml_file_source , import_position ].hash
|
125
|
+
[ xml_file_source , import_position , xml_content ].hash
|
114
126
|
end
|
115
127
|
|
116
128
|
# Builds the object from hash
|