aspose_cells_cloud 23.10 → 23.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +23 -13
- data/lib/aspose_cells_cloud/api/cells_api.rb +234 -22899
- 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/batch_convert_request.rb +13 -1
- data/lib/aspose_cells_cloud/models/batch_split_request.rb +13 -1
- data/lib/aspose_cells_cloud/models/convert_task_parameter.rb +13 -1
- 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/delete_metadata_request.rb +7 -0
- data/lib/aspose_cells_cloud/requests/get_workbook_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_assemble_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_clear_objects_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_csv_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_docx_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_html_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_json_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_markdown_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_pdf_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_png_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_pptx_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_sql_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_export_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_import_data_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_import_request.rb +31 -2
- data/lib/aspose_cells_cloud/requests/post_merge_request.rb +15 -8
- data/lib/aspose_cells_cloud/requests/post_metadata_request.rb +16 -2
- data/lib/aspose_cells_cloud/requests/post_repair_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/post_reverse_request.rb +15 -8
- data/lib/aspose_cells_cloud/requests/post_rotate_request.rb +15 -8
- data/lib/aspose_cells_cloud/requests/post_split_request.rb +18 -11
- data/lib/aspose_cells_cloud/requests/post_watermark_request.rb +16 -2
- data/lib/aspose_cells_cloud/requests/post_workbook_export_xml_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_workbook_import_json_request.rb +163 -0
- data/lib/aspose_cells_cloud/requests/post_workbook_import_xml_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_workbook_save_as_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb +9 -2
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +7 -5
- data/spec/api/batch_controller_spec.rb +4 -4
- data/spec/api/folder_controller_spec.rb +1 -1
- data/spec/api/workbook_controller_spec.rb +3 -3
- data/spec/conversion/conversion_json_spec.rb +0 -242
- data/spec/conversion/conversion_png_spec.rb +0 -352
- data/spec/conversion/conversion_spec.rb +203 -1003
- data/spec/document/light_cells_spec.rb +86 -197
- 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
|
@@ -43,6 +43,8 @@ module AsposeCellsCloud
|
|
43
43
|
attr_accessor :out_folder
|
44
44
|
#Aspose Cloud storage name.
|
45
45
|
attr_accessor :out_storage
|
46
|
+
#The regional settings for workbook.
|
47
|
+
attr_accessor :region
|
46
48
|
#Indicates save options.
|
47
49
|
attr_accessor :save_options
|
48
50
|
|
@@ -55,6 +57,7 @@ module AsposeCellsCloud
|
|
55
57
|
:'format' => :'Format',
|
56
58
|
:'out_folder' => :'OutFolder',
|
57
59
|
:'out_storage' => :'OutStorage',
|
60
|
+
:'region' => :'Region',
|
58
61
|
:'save_options' => :'SaveOptions'
|
59
62
|
}
|
60
63
|
end
|
@@ -68,6 +71,7 @@ module AsposeCellsCloud
|
|
68
71
|
:'format' => :'String',
|
69
72
|
:'out_folder' => :'String',
|
70
73
|
:'out_storage' => :'String',
|
74
|
+
:'region' => :'String',
|
71
75
|
:'save_options' => :'SaveOptions'
|
72
76
|
}
|
73
77
|
end
|
@@ -98,6 +102,9 @@ module AsposeCellsCloud
|
|
98
102
|
if attributes.has_key?(:'OutStorage')
|
99
103
|
self.out_storage = attributes[:'OutStorage']
|
100
104
|
end
|
105
|
+
if attributes.has_key?(:'Region')
|
106
|
+
self.region = attributes[:'Region']
|
107
|
+
end
|
101
108
|
if attributes.has_key?(:'SaveOptions')
|
102
109
|
self.save_options = attributes[:'SaveOptions']
|
103
110
|
end
|
@@ -126,6 +133,9 @@ module AsposeCellsCloud
|
|
126
133
|
if @out_storage.nil?
|
127
134
|
invalid_properties.push("invalid value for 'out_storage', out_storage cannot be nil.")
|
128
135
|
end
|
136
|
+
if @region.nil?
|
137
|
+
invalid_properties.push("invalid value for 'region', region cannot be nil.")
|
138
|
+
end
|
129
139
|
if @save_options.nil?
|
130
140
|
invalid_properties.push("invalid value for 'save_options', save_options cannot be nil.")
|
131
141
|
end
|
@@ -142,6 +152,7 @@ module AsposeCellsCloud
|
|
142
152
|
return false if @format.nil?
|
143
153
|
return false if @out_folder.nil?
|
144
154
|
return false if @out_storage.nil?
|
155
|
+
return false if @region.nil?
|
145
156
|
return false if @save_options.nil?
|
146
157
|
return true
|
147
158
|
end
|
@@ -157,6 +168,7 @@ module AsposeCellsCloud
|
|
157
168
|
format == o.format &&
|
158
169
|
out_folder == o.out_folder &&
|
159
170
|
out_storage == o.out_storage &&
|
171
|
+
region == o.region &&
|
160
172
|
save_options == o.save_options
|
161
173
|
std_dev == o.std_dev
|
162
174
|
end
|
@@ -170,7 +182,7 @@ module AsposeCellsCloud
|
|
170
182
|
# Calculates hash code according to all attributes.
|
171
183
|
# @return [Fixnum] Hash code
|
172
184
|
def hash
|
173
|
-
[ source_folder , source_storage , match_condition , format , out_folder , out_storage , save_options ].hash
|
185
|
+
[ source_folder , source_storage , match_condition , format , out_folder , out_storage , region , save_options ].hash
|
174
186
|
end
|
175
187
|
|
176
188
|
# Builds the object from hash
|
@@ -47,6 +47,8 @@ module AsposeCellsCloud
|
|
47
47
|
attr_accessor :out_folder
|
48
48
|
#Aspose Cloud storage name.
|
49
49
|
attr_accessor :out_storage
|
50
|
+
#The regional settings for workbook.
|
51
|
+
attr_accessor :region
|
50
52
|
#Indicates save options.
|
51
53
|
attr_accessor :save_options
|
52
54
|
|
@@ -61,6 +63,7 @@ module AsposeCellsCloud
|
|
61
63
|
:'to_index' => :'ToIndex',
|
62
64
|
:'out_folder' => :'OutFolder',
|
63
65
|
:'out_storage' => :'OutStorage',
|
66
|
+
:'region' => :'Region',
|
64
67
|
:'save_options' => :'SaveOptions'
|
65
68
|
}
|
66
69
|
end
|
@@ -76,6 +79,7 @@ module AsposeCellsCloud
|
|
76
79
|
:'to_index' => :'Integer',
|
77
80
|
:'out_folder' => :'String',
|
78
81
|
:'out_storage' => :'String',
|
82
|
+
:'region' => :'String',
|
79
83
|
:'save_options' => :'SaveOptions'
|
80
84
|
}
|
81
85
|
end
|
@@ -112,6 +116,9 @@ module AsposeCellsCloud
|
|
112
116
|
if attributes.has_key?(:'OutStorage')
|
113
117
|
self.out_storage = attributes[:'OutStorage']
|
114
118
|
end
|
119
|
+
if attributes.has_key?(:'Region')
|
120
|
+
self.region = attributes[:'Region']
|
121
|
+
end
|
115
122
|
if attributes.has_key?(:'SaveOptions')
|
116
123
|
self.save_options = attributes[:'SaveOptions']
|
117
124
|
end
|
@@ -146,6 +153,9 @@ module AsposeCellsCloud
|
|
146
153
|
if @out_storage.nil?
|
147
154
|
invalid_properties.push("invalid value for 'out_storage', out_storage cannot be nil.")
|
148
155
|
end
|
156
|
+
if @region.nil?
|
157
|
+
invalid_properties.push("invalid value for 'region', region cannot be nil.")
|
158
|
+
end
|
149
159
|
if @save_options.nil?
|
150
160
|
invalid_properties.push("invalid value for 'save_options', save_options cannot be nil.")
|
151
161
|
end
|
@@ -164,6 +174,7 @@ module AsposeCellsCloud
|
|
164
174
|
return false if @to_index.nil?
|
165
175
|
return false if @out_folder.nil?
|
166
176
|
return false if @out_storage.nil?
|
177
|
+
return false if @region.nil?
|
167
178
|
return false if @save_options.nil?
|
168
179
|
return true
|
169
180
|
end
|
@@ -181,6 +192,7 @@ module AsposeCellsCloud
|
|
181
192
|
to_index == o.to_index &&
|
182
193
|
out_folder == o.out_folder &&
|
183
194
|
out_storage == o.out_storage &&
|
195
|
+
region == o.region &&
|
184
196
|
save_options == o.save_options
|
185
197
|
std_dev == o.std_dev
|
186
198
|
end
|
@@ -194,7 +206,7 @@ module AsposeCellsCloud
|
|
194
206
|
# Calculates hash code according to all attributes.
|
195
207
|
# @return [Fixnum] Hash code
|
196
208
|
def hash
|
197
|
-
[ source_folder , source_storage , match_condition , format , from_index , to_index , out_folder , out_storage , save_options ].hash
|
209
|
+
[ source_folder , source_storage , match_condition , format , from_index , to_index , out_folder , out_storage , region , save_options ].hash
|
198
210
|
end
|
199
211
|
|
200
212
|
# Builds the object from hash
|
@@ -36,6 +36,8 @@ module AsposeCellsCloud
|
|
36
36
|
#
|
37
37
|
attr_accessor :destination_file
|
38
38
|
#
|
39
|
+
attr_accessor :region
|
40
|
+
#
|
39
41
|
attr_accessor :save_options
|
40
42
|
|
41
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -43,6 +45,7 @@ module AsposeCellsCloud
|
|
43
45
|
{
|
44
46
|
:'workbook' => :'Workbook',
|
45
47
|
:'destination_file' => :'DestinationFile',
|
48
|
+
:'region' => :'Region',
|
46
49
|
:'save_options' => :'SaveOptions'
|
47
50
|
}
|
48
51
|
end
|
@@ -52,6 +55,7 @@ module AsposeCellsCloud
|
|
52
55
|
{
|
53
56
|
:'workbook' => :'FileSource',
|
54
57
|
:'destination_file' => :'String',
|
58
|
+
:'region' => :'String',
|
55
59
|
:'save_options' => :'SaveOptions'
|
56
60
|
}
|
57
61
|
end
|
@@ -70,6 +74,9 @@ module AsposeCellsCloud
|
|
70
74
|
if attributes.has_key?(:'DestinationFile')
|
71
75
|
self.destination_file = attributes[:'DestinationFile']
|
72
76
|
end
|
77
|
+
if attributes.has_key?(:'Region')
|
78
|
+
self.region = attributes[:'Region']
|
79
|
+
end
|
73
80
|
if attributes.has_key?(:'SaveOptions')
|
74
81
|
self.save_options = attributes[:'SaveOptions']
|
75
82
|
end
|
@@ -86,6 +93,9 @@ module AsposeCellsCloud
|
|
86
93
|
if @destination_file.nil?
|
87
94
|
invalid_properties.push("invalid value for 'destination_file', destination_file cannot be nil.")
|
88
95
|
end
|
96
|
+
if @region.nil?
|
97
|
+
invalid_properties.push("invalid value for 'region', region cannot be nil.")
|
98
|
+
end
|
89
99
|
if @save_options.nil?
|
90
100
|
invalid_properties.push("invalid value for 'save_options', save_options cannot be nil.")
|
91
101
|
end
|
@@ -98,6 +108,7 @@ module AsposeCellsCloud
|
|
98
108
|
def valid?
|
99
109
|
return false if @workbook.nil?
|
100
110
|
return false if @destination_file.nil?
|
111
|
+
return false if @region.nil?
|
101
112
|
return false if @save_options.nil?
|
102
113
|
return true
|
103
114
|
end
|
@@ -109,6 +120,7 @@ module AsposeCellsCloud
|
|
109
120
|
self.class == o.class &&
|
110
121
|
workbook == o.workbook &&
|
111
122
|
destination_file == o.destination_file &&
|
123
|
+
region == o.region &&
|
112
124
|
save_options == o.save_options
|
113
125
|
std_dev == o.std_dev
|
114
126
|
end
|
@@ -122,7 +134,7 @@ module AsposeCellsCloud
|
|
122
134
|
# Calculates hash code according to all attributes.
|
123
135
|
# @return [Fixnum] Hash code
|
124
136
|
def hash
|
125
|
-
[ workbook , destination_file , save_options ].hash
|
137
|
+
[ workbook , destination_file , region , save_options ].hash
|
126
138
|
end
|
127
139
|
|
128
140
|
# Builds the object from hash
|
@@ -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
|
+
#Json 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
|