aspose_cells_cloud 1.0.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 +7 -0
- data/LICENSE +22 -0
- data/README.md +40 -0
- data/aspose_cells_cloud.gemspec +26 -0
- data/lib/aspose_cells_cloud/api/cells_api.rb +9820 -0
- data/lib/aspose_cells_cloud/api_client.rb +335 -0
- data/lib/aspose_cells_cloud/api_error.rb +24 -0
- data/lib/aspose_cells_cloud/configuration.rb +166 -0
- data/lib/aspose_cells_cloud/models/auto_filter.rb +63 -0
- data/lib/aspose_cells_cloud/models/auto_fitter_options.rb +53 -0
- data/lib/aspose_cells_cloud/models/auto_shape_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/auto_shapes_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/barcode_response.rb +63 -0
- data/lib/aspose_cells_cloud/models/barcode_response_list.rb +63 -0
- data/lib/aspose_cells_cloud/models/base_object.rb +86 -0
- data/lib/aspose_cells_cloud/models/base_response.rb +53 -0
- data/lib/aspose_cells_cloud/models/border.rb +53 -0
- data/lib/aspose_cells_cloud/models/cell.rb +165 -0
- data/lib/aspose_cells_cloud/models/cell_area.rb +61 -0
- data/lib/aspose_cells_cloud/models/cell_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/cells.rb +87 -0
- data/lib/aspose_cells_cloud/models/cells_color.rb +69 -0
- data/lib/aspose_cells_cloud/models/cells_document_properties.rb +47 -0
- data/lib/aspose_cells_cloud/models/cells_document_properties_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/cells_document_property.rb +61 -0
- data/lib/aspose_cells_cloud/models/cells_document_property_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/cells_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/chart_area_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/charts_chart_area.rb +143 -0
- data/lib/aspose_cells_cloud/models/charts_charts.rb +47 -0
- data/lib/aspose_cells_cloud/models/charts_legend.rb +159 -0
- data/lib/aspose_cells_cloud/models/charts_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/charts_title.rb +199 -0
- data/lib/aspose_cells_cloud/models/color.rb +61 -0
- data/lib/aspose_cells_cloud/models/color_filter.rb +37 -0
- data/lib/aspose_cells_cloud/models/column.rb +77 -0
- data/lib/aspose_cells_cloud/models/column_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/columns.rb +63 -0
- data/lib/aspose_cells_cloud/models/columns_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/comment.rb +125 -0
- data/lib/aspose_cells_cloud/models/comment_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/comments.rb +47 -0
- data/lib/aspose_cells_cloud/models/comments_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/create_pivot_table_request.rb +91 -0
- data/lib/aspose_cells_cloud/models/custom_filter.rb +45 -0
- data/lib/aspose_cells_cloud/models/data_sorter.rb +63 -0
- data/lib/aspose_cells_cloud/models/date_time_group_item.rb +85 -0
- data/lib/aspose_cells_cloud/models/drawing_area.rb +77 -0
- data/lib/aspose_cells_cloud/models/drawing_auto_shapes.rb +47 -0
- data/lib/aspose_cells_cloud/models/drawing_fill_format.rb +77 -0
- data/lib/aspose_cells_cloud/models/drawing_gradient_fill.rb +63 -0
- data/lib/aspose_cells_cloud/models/drawing_gradient_fill_stop.rb +53 -0
- data/lib/aspose_cells_cloud/models/drawing_line.rb +181 -0
- data/lib/aspose_cells_cloud/models/drawing_ole_object.rb +365 -0
- data/lib/aspose_cells_cloud/models/drawing_ole_objects.rb +47 -0
- data/lib/aspose_cells_cloud/models/drawing_pattern_fill.rb +85 -0
- data/lib/aspose_cells_cloud/models/drawing_pic_format_option.rb +77 -0
- data/lib/aspose_cells_cloud/models/drawing_picture.rb +357 -0
- data/lib/aspose_cells_cloud/models/drawing_pictures.rb +47 -0
- data/lib/aspose_cells_cloud/models/drawing_solid_fill.rb +53 -0
- data/lib/aspose_cells_cloud/models/drawing_texture_fill.rb +77 -0
- data/lib/aspose_cells_cloud/models/drawing_tile_pic_option.rb +77 -0
- data/lib/aspose_cells_cloud/models/dynamic_filter.rb +53 -0
- data/lib/aspose_cells_cloud/models/fill_format_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/filter_column.rb +103 -0
- data/lib/aspose_cells_cloud/models/font.rb +109 -0
- data/lib/aspose_cells_cloud/models/hyperlink.rb +69 -0
- data/lib/aspose_cells_cloud/models/hyperlink_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/hyperlinks.rb +55 -0
- data/lib/aspose_cells_cloud/models/hyperlinks_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/icon_filter.rb +45 -0
- data/lib/aspose_cells_cloud/models/import_data_import_option.rb +45 -0
- data/lib/aspose_cells_cloud/models/legend_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/line_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/link.rb +61 -0
- data/lib/aspose_cells_cloud/models/link_element.rb +37 -0
- data/lib/aspose_cells_cloud/models/merged_cell.rb +69 -0
- data/lib/aspose_cells_cloud/models/merged_cell_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/merged_cells.rb +55 -0
- data/lib/aspose_cells_cloud/models/merged_cells_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/multiple_filters.rb +47 -0
- data/lib/aspose_cells_cloud/models/name.rb +93 -0
- data/lib/aspose_cells_cloud/models/name_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/names.rb +55 -0
- data/lib/aspose_cells_cloud/models/names_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/ole_object_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/ole_objects_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/password_request.rb +37 -0
- data/lib/aspose_cells_cloud/models/picture_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/pictures_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/pivot_field_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/pivot_pivot_field.rb +347 -0
- data/lib/aspose_cells_cloud/models/pivot_pivot_filter.rb +101 -0
- data/lib/aspose_cells_cloud/models/pivot_pivot_item.rb +61 -0
- data/lib/aspose_cells_cloud/models/pivot_pivot_table.rb +595 -0
- data/lib/aspose_cells_cloud/models/pivot_pivot_tables.rb +47 -0
- data/lib/aspose_cells_cloud/models/pivot_table_field_request.rb +39 -0
- data/lib/aspose_cells_cloud/models/pivot_table_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/pivot_tables_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/protect_sheet_parameter.rb +159 -0
- data/lib/aspose_cells_cloud/models/row.rb +93 -0
- data/lib/aspose_cells_cloud/models/row_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/rows.rb +63 -0
- data/lib/aspose_cells_cloud/models/rows_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/save_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/save_result.rb +55 -0
- data/lib/aspose_cells_cloud/models/saving_save_options.rb +85 -0
- data/lib/aspose_cells_cloud/models/single_value.rb +45 -0
- data/lib/aspose_cells_cloud/models/single_value_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/sort_key.rb +45 -0
- data/lib/aspose_cells_cloud/models/split_result.rb +39 -0
- data/lib/aspose_cells_cloud/models/split_result_document.rb +45 -0
- data/lib/aspose_cells_cloud/models/split_result_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/style.rb +207 -0
- data/lib/aspose_cells_cloud/models/style_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/text_item.rb +45 -0
- data/lib/aspose_cells_cloud/models/text_items.rb +47 -0
- data/lib/aspose_cells_cloud/models/text_items_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/theme_color.rb +45 -0
- data/lib/aspose_cells_cloud/models/title_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/top10_filter.rb +61 -0
- data/lib/aspose_cells_cloud/models/validation.rb +167 -0
- data/lib/aspose_cells_cloud/models/validation_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/validations.rb +55 -0
- data/lib/aspose_cells_cloud/models/validations_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/workbook.rb +119 -0
- data/lib/aspose_cells_cloud/models/workbook_encryption_request.rb +53 -0
- data/lib/aspose_cells_cloud/models/workbook_protection_request.rb +45 -0
- data/lib/aspose_cells_cloud/models/workbook_replace_response.rb +69 -0
- data/lib/aspose_cells_cloud/models/workbook_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/workbook_settings.rb +389 -0
- data/lib/aspose_cells_cloud/models/workbook_settings_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/worksheet.rb +287 -0
- data/lib/aspose_cells_cloud/models/worksheet_moving_request.rb +45 -0
- data/lib/aspose_cells_cloud/models/worksheet_replace_response.rb +69 -0
- data/lib/aspose_cells_cloud/models/worksheet_response.rb +61 -0
- data/lib/aspose_cells_cloud/models/worksheets.rb +47 -0
- data/lib/aspose_cells_cloud/models/worksheets_response.rb +61 -0
- data/lib/aspose_cells_cloud/version.rb +3 -0
- data/lib/aspose_cells_cloud.rb +161 -0
- data/test/cells_tests.rb +1732 -0
- data/test/data/Creative.jpg +0 -0
- data/test/data/Embeded_OleObject_Sample_Book1.xlsx +0 -0
- data/test/data/Sample_Book1.xlsx +0 -0
- data/test/data/Sample_Book2.xls +0 -0
- data/test/data/Sample_Pivot_Table_Example.xls +0 -0
- data/test/data/Sample_Protected_Test_Book.xls +0 -0
- data/test/data/Sample_SmartMarker.xlsx +0 -0
- data/test/data/Sample_SmartMarker_Data.xml +14 -0
- data/test/data/Sample_Test_Book.xls +0 -0
- data/test/data/WorkSheetBackground_Sample_Test_Book.xls +0 -0
- data/test/data/aspose-cloud.png +0 -0
- data/test/data/aspose-logo.png +0 -0
- data/test/data/calendar.xlsx +0 -0
- data/test/data/encrypted_Sample_Test_Book.xls +0 -0
- data/test/data/myWorkbook.xlsx +0 -0
- data/test/data/testfile.txt +1 -0
- metadata +289 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
module AsposeCellsCloud
|
|
2
|
+
#
|
|
3
|
+
class AutoFilter < BaseObject
|
|
4
|
+
attr_accessor :filter_columns, :range, :sorter, :link
|
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
:'filter_columns' => :'FilterColumns',
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
:'range' => :'Range',
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
:'sorter' => :'Sorter',
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
:'link' => :'link'
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# attribute type
|
|
25
|
+
def self.swagger_types
|
|
26
|
+
{
|
|
27
|
+
:'filter_columns' => :'Array<FilterColumn>',
|
|
28
|
+
:'range' => :'String',
|
|
29
|
+
:'sorter' => :'DataSorter',
|
|
30
|
+
:'link' => :'Link'
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(attributes = {})
|
|
36
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
|
37
|
+
|
|
38
|
+
# convert string to symbol for hash key
|
|
39
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
if attributes[:'FilterColumns']
|
|
43
|
+
if (value = attributes[:'FilterColumns']).is_a?(Array)
|
|
44
|
+
self.filter_columns = value
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
if attributes[:'Range']
|
|
49
|
+
self.range = attributes[:'Range']
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
if attributes[:'Sorter']
|
|
53
|
+
self.sorter = attributes[:'Sorter']
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
if attributes[:'link']
|
|
57
|
+
self.link = attributes[:'link']
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
module AsposeCellsCloud
|
|
2
|
+
#
|
|
3
|
+
class AutoFitterOptions < BaseObject
|
|
4
|
+
attr_accessor :auto_fit_merged_cells, :ignore_hidden, :only_auto
|
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
:'auto_fit_merged_cells' => :'AutoFitMergedCells',
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
:'ignore_hidden' => :'IgnoreHidden',
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
:'only_auto' => :'OnlyAuto'
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# attribute type
|
|
22
|
+
def self.swagger_types
|
|
23
|
+
{
|
|
24
|
+
:'auto_fit_merged_cells' => :'BOOLEAN',
|
|
25
|
+
:'ignore_hidden' => :'BOOLEAN',
|
|
26
|
+
:'only_auto' => :'BOOLEAN'
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def initialize(attributes = {})
|
|
32
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
|
33
|
+
|
|
34
|
+
# convert string to symbol for hash key
|
|
35
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
if attributes[:'AutoFitMergedCells']
|
|
39
|
+
self.auto_fit_merged_cells = attributes[:'AutoFitMergedCells']
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
if attributes[:'IgnoreHidden']
|
|
43
|
+
self.ignore_hidden = attributes[:'IgnoreHidden']
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
if attributes[:'OnlyAuto']
|
|
47
|
+
self.only_auto = attributes[:'OnlyAuto']
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module AsposeCellsCloud
|
|
2
|
+
#
|
|
3
|
+
class AutoShapeResponse < BaseObject
|
|
4
|
+
attr_accessor :auto_shape, :code, :status
|
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
:'auto_shape' => :'AutoShape',
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
:'code' => :'Code',
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
:'status' => :'Status'
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# attribute type
|
|
22
|
+
def self.swagger_types
|
|
23
|
+
{
|
|
24
|
+
:'auto_shape' => :'DrawingPicture',
|
|
25
|
+
:'code' => :'String',
|
|
26
|
+
:'status' => :'String'
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def initialize(attributes = {})
|
|
32
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
|
33
|
+
|
|
34
|
+
# convert string to symbol for hash key
|
|
35
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
if attributes[:'AutoShape']
|
|
39
|
+
self.auto_shape = attributes[:'AutoShape']
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
if attributes[:'Code']
|
|
43
|
+
self.code = attributes[:'Code']
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
if attributes[:'Status']
|
|
47
|
+
self.status = attributes[:'Status']
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def status=(status)
|
|
53
|
+
allowed_values = ["Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", "HttpVersionNotSupported"]
|
|
54
|
+
if status && !allowed_values.include?(status)
|
|
55
|
+
fail "invalid value for 'status', must be one of #{allowed_values}"
|
|
56
|
+
end
|
|
57
|
+
@status = status
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module AsposeCellsCloud
|
|
2
|
+
#
|
|
3
|
+
class AutoShapesResponse < BaseObject
|
|
4
|
+
attr_accessor :auto_shapes, :code, :status
|
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
:'auto_shapes' => :'AutoShapes',
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
:'code' => :'Code',
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
:'status' => :'Status'
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# attribute type
|
|
22
|
+
def self.swagger_types
|
|
23
|
+
{
|
|
24
|
+
:'auto_shapes' => :'DrawingAutoShapes',
|
|
25
|
+
:'code' => :'String',
|
|
26
|
+
:'status' => :'String'
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def initialize(attributes = {})
|
|
32
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
|
33
|
+
|
|
34
|
+
# convert string to symbol for hash key
|
|
35
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
if attributes[:'AutoShapes']
|
|
39
|
+
self.auto_shapes = attributes[:'AutoShapes']
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
if attributes[:'Code']
|
|
43
|
+
self.code = attributes[:'Code']
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
if attributes[:'Status']
|
|
47
|
+
self.status = attributes[:'Status']
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def status=(status)
|
|
53
|
+
allowed_values = ["Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", "HttpVersionNotSupported"]
|
|
54
|
+
if status && !allowed_values.include?(status)
|
|
55
|
+
fail "invalid value for 'status', must be one of #{allowed_values}"
|
|
56
|
+
end
|
|
57
|
+
@status = status
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
module AsposeCellsCloud
|
|
2
|
+
#
|
|
3
|
+
class BarcodeResponse < BaseObject
|
|
4
|
+
attr_accessor :barcode_value, :barcode_type, :region, :checksum
|
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
:'barcode_value' => :'BarcodeValue',
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
:'barcode_type' => :'BarcodeType',
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
:'region' => :'Region',
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
:'checksum' => :'Checksum'
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# attribute type
|
|
25
|
+
def self.swagger_types
|
|
26
|
+
{
|
|
27
|
+
:'barcode_value' => :'String',
|
|
28
|
+
:'barcode_type' => :'String',
|
|
29
|
+
:'region' => :'Array<String>',
|
|
30
|
+
:'checksum' => :'String'
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(attributes = {})
|
|
36
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
|
37
|
+
|
|
38
|
+
# convert string to symbol for hash key
|
|
39
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
if attributes[:'BarcodeValue']
|
|
43
|
+
self.barcode_value = attributes[:'BarcodeValue']
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
if attributes[:'BarcodeType']
|
|
47
|
+
self.barcode_type = attributes[:'BarcodeType']
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
if attributes[:'Region']
|
|
51
|
+
if (value = attributes[:'Region']).is_a?(Array)
|
|
52
|
+
self.region = value
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
if attributes[:'Checksum']
|
|
57
|
+
self.checksum = attributes[:'Checksum']
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
module AsposeCellsCloud
|
|
2
|
+
#
|
|
3
|
+
class BarcodeResponseList < BaseObject
|
|
4
|
+
attr_accessor :barcodes, :code, :status
|
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
:'barcodes' => :'Barcodes',
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
:'code' => :'Code',
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
:'status' => :'Status'
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# attribute type
|
|
22
|
+
def self.swagger_types
|
|
23
|
+
{
|
|
24
|
+
:'barcodes' => :'Array<BarcodeResponse>',
|
|
25
|
+
:'code' => :'String',
|
|
26
|
+
:'status' => :'String'
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def initialize(attributes = {})
|
|
32
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
|
33
|
+
|
|
34
|
+
# convert string to symbol for hash key
|
|
35
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
if attributes[:'Barcodes']
|
|
39
|
+
if (value = attributes[:'Barcodes']).is_a?(Array)
|
|
40
|
+
self.barcodes = value
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
if attributes[:'Code']
|
|
45
|
+
self.code = attributes[:'Code']
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
if attributes[:'Status']
|
|
49
|
+
self.status = attributes[:'Status']
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def status=(status)
|
|
55
|
+
allowed_values = ["Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", "HttpVersionNotSupported"]
|
|
56
|
+
if status && !allowed_values.include?(status)
|
|
57
|
+
fail "invalid value for 'status', must be one of #{allowed_values}"
|
|
58
|
+
end
|
|
59
|
+
@status = status
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
require 'date'
|
|
2
|
+
|
|
3
|
+
module AsposeCellsCloud
|
|
4
|
+
# base class containing fundamental method such as to_hash, build_from_hash and more
|
|
5
|
+
class BaseObject
|
|
6
|
+
|
|
7
|
+
# build the object from hash
|
|
8
|
+
def build_from_hash(attributes)
|
|
9
|
+
return nil unless attributes.is_a?(Hash)
|
|
10
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
11
|
+
if type =~ /^Array<(.*)>/i
|
|
12
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
13
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
14
|
+
else
|
|
15
|
+
#TODO show warning in debug mode
|
|
16
|
+
end
|
|
17
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
18
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
19
|
+
else
|
|
20
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
self
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def _deserialize(type, value)
|
|
28
|
+
case type.to_sym
|
|
29
|
+
when :DateTime
|
|
30
|
+
DateTime.parse(value)
|
|
31
|
+
when :Date
|
|
32
|
+
Date.parse(value)
|
|
33
|
+
when :String
|
|
34
|
+
value.to_s
|
|
35
|
+
when :Integer
|
|
36
|
+
value.to_i
|
|
37
|
+
when :Float
|
|
38
|
+
value.to_f
|
|
39
|
+
when :BOOLEAN
|
|
40
|
+
if value =~ /^(true|t|yes|y|1)$/i
|
|
41
|
+
true
|
|
42
|
+
else
|
|
43
|
+
false
|
|
44
|
+
end
|
|
45
|
+
else # model
|
|
46
|
+
_model = AsposeCellsCloud.const_get(type).new
|
|
47
|
+
_model.build_from_hash(value)
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def to_s
|
|
52
|
+
to_hash.to_s
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# to_body is an alias to to_body (backward compatibility))
|
|
56
|
+
def to_body
|
|
57
|
+
to_hash
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# return the object in the form of hash
|
|
61
|
+
def to_hash
|
|
62
|
+
hash = {}
|
|
63
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
64
|
+
value = self.send(attr)
|
|
65
|
+
next if value.nil?
|
|
66
|
+
if value.is_a?(Array)
|
|
67
|
+
hash[param] = value.compact.map{ |v| _to_hash(v) }
|
|
68
|
+
else
|
|
69
|
+
hash[param] = _to_hash(value)
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
hash
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Method to output non-array value in the form of hash
|
|
76
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
77
|
+
def _to_hash(value)
|
|
78
|
+
if value.respond_to? :to_hash
|
|
79
|
+
value.to_hash
|
|
80
|
+
else
|
|
81
|
+
value
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
end
|
|
86
|
+
end
|