aspose_cells_cloud 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,47 @@
|
|
1
|
+
module AsposeCellsCloud
|
2
|
+
#
|
3
|
+
class ChartsCharts < BaseObject
|
4
|
+
attr_accessor :chart_list, :link
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'chart_list' => :'ChartList',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'link' => :'link'
|
14
|
+
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'chart_list' => :'Array<LinkElement>',
|
22
|
+
:'link' => :'Link'
|
23
|
+
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
def initialize(attributes = {})
|
28
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
29
|
+
|
30
|
+
# convert string to symbol for hash key
|
31
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
32
|
+
|
33
|
+
|
34
|
+
if attributes[:'ChartList']
|
35
|
+
if (value = attributes[:'ChartList']).is_a?(Array)
|
36
|
+
self.chart_list = value
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
if attributes[:'link']
|
41
|
+
self.link = attributes[:'link']
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,159 @@
|
|
1
|
+
module AsposeCellsCloud
|
2
|
+
#
|
3
|
+
class ChartsLegend < BaseObject
|
4
|
+
attr_accessor :position, :legend_entries, :area, :auto_scale_font, :background_mode, :border, :font, :is_automatic_size, :is_inner_mode, :shadow, :shape_properties, :width, :height, :x, :y, :link
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'position' => :'Position',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'legend_entries' => :'LegendEntries',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'area' => :'Area',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'auto_scale_font' => :'AutoScaleFont',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'background_mode' => :'BackgroundMode',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'border' => :'Border',
|
26
|
+
|
27
|
+
#
|
28
|
+
:'font' => :'Font',
|
29
|
+
|
30
|
+
#
|
31
|
+
:'is_automatic_size' => :'IsAutomaticSize',
|
32
|
+
|
33
|
+
#
|
34
|
+
:'is_inner_mode' => :'IsInnerMode',
|
35
|
+
|
36
|
+
#
|
37
|
+
:'shadow' => :'Shadow',
|
38
|
+
|
39
|
+
#
|
40
|
+
:'shape_properties' => :'ShapeProperties',
|
41
|
+
|
42
|
+
#
|
43
|
+
:'width' => :'Width',
|
44
|
+
|
45
|
+
#
|
46
|
+
:'height' => :'Height',
|
47
|
+
|
48
|
+
#
|
49
|
+
:'x' => :'X',
|
50
|
+
|
51
|
+
#
|
52
|
+
:'y' => :'Y',
|
53
|
+
|
54
|
+
#
|
55
|
+
:'link' => :'link'
|
56
|
+
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# attribute type
|
61
|
+
def self.swagger_types
|
62
|
+
{
|
63
|
+
:'position' => :'String',
|
64
|
+
:'legend_entries' => :'LinkElement',
|
65
|
+
:'area' => :'DrawingArea',
|
66
|
+
:'auto_scale_font' => :'BOOLEAN',
|
67
|
+
:'background_mode' => :'String',
|
68
|
+
:'border' => :'DrawingLine',
|
69
|
+
:'font' => :'Font',
|
70
|
+
:'is_automatic_size' => :'BOOLEAN',
|
71
|
+
:'is_inner_mode' => :'BOOLEAN',
|
72
|
+
:'shadow' => :'BOOLEAN',
|
73
|
+
:'shape_properties' => :'Array<LinkElement>',
|
74
|
+
:'width' => :'Integer',
|
75
|
+
:'height' => :'Integer',
|
76
|
+
:'x' => :'Integer',
|
77
|
+
:'y' => :'Integer',
|
78
|
+
:'link' => :'Link'
|
79
|
+
|
80
|
+
}
|
81
|
+
end
|
82
|
+
|
83
|
+
def initialize(attributes = {})
|
84
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
85
|
+
|
86
|
+
# convert string to symbol for hash key
|
87
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
88
|
+
|
89
|
+
|
90
|
+
if attributes[:'Position']
|
91
|
+
self.position = attributes[:'Position']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes[:'LegendEntries']
|
95
|
+
self.legend_entries = attributes[:'LegendEntries']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes[:'Area']
|
99
|
+
self.area = attributes[:'Area']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes[:'AutoScaleFont']
|
103
|
+
self.auto_scale_font = attributes[:'AutoScaleFont']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes[:'BackgroundMode']
|
107
|
+
self.background_mode = attributes[:'BackgroundMode']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes[:'Border']
|
111
|
+
self.border = attributes[:'Border']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes[:'Font']
|
115
|
+
self.font = attributes[:'Font']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes[:'IsAutomaticSize']
|
119
|
+
self.is_automatic_size = attributes[:'IsAutomaticSize']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes[:'IsInnerMode']
|
123
|
+
self.is_inner_mode = attributes[:'IsInnerMode']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes[:'Shadow']
|
127
|
+
self.shadow = attributes[:'Shadow']
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes[:'ShapeProperties']
|
131
|
+
if (value = attributes[:'ShapeProperties']).is_a?(Array)
|
132
|
+
self.shape_properties = value
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes[:'Width']
|
137
|
+
self.width = attributes[:'Width']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes[:'Height']
|
141
|
+
self.height = attributes[:'Height']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes[:'X']
|
145
|
+
self.x = attributes[:'X']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes[:'Y']
|
149
|
+
self.y = attributes[:'Y']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes[:'link']
|
153
|
+
self.link = attributes[:'link']
|
154
|
+
end
|
155
|
+
|
156
|
+
end
|
157
|
+
|
158
|
+
end
|
159
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module AsposeCellsCloud
|
2
|
+
#
|
3
|
+
class ChartsResponse < BaseObject
|
4
|
+
attr_accessor :charts, :code, :status
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'charts' => :'Charts',
|
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
|
+
:'charts' => :'ChartsCharts',
|
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[:'Charts']
|
39
|
+
self.charts = attributes[:'Charts']
|
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,199 @@
|
|
1
|
+
module AsposeCellsCloud
|
2
|
+
#
|
3
|
+
class ChartsTitle < BaseObject
|
4
|
+
attr_accessor :is_visible, :linked_source, :rotation_angle, :text, :text_direction, :text_horizontal_alignment, :text_vertical_alignment, :area, :auto_scale_font, :background_mode, :border, :font, :is_automatic_size, :is_inner_mode, :shadow, :shape_properties, :width, :height, :x, :y, :link
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'is_visible' => :'IsVisible',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'linked_source' => :'LinkedSource',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'rotation_angle' => :'RotationAngle',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'text' => :'Text',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'text_direction' => :'TextDirection',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'text_horizontal_alignment' => :'TextHorizontalAlignment',
|
26
|
+
|
27
|
+
#
|
28
|
+
:'text_vertical_alignment' => :'TextVerticalAlignment',
|
29
|
+
|
30
|
+
#
|
31
|
+
:'area' => :'Area',
|
32
|
+
|
33
|
+
#
|
34
|
+
:'auto_scale_font' => :'AutoScaleFont',
|
35
|
+
|
36
|
+
#
|
37
|
+
:'background_mode' => :'BackgroundMode',
|
38
|
+
|
39
|
+
#
|
40
|
+
:'border' => :'Border',
|
41
|
+
|
42
|
+
#
|
43
|
+
:'font' => :'Font',
|
44
|
+
|
45
|
+
#
|
46
|
+
:'is_automatic_size' => :'IsAutomaticSize',
|
47
|
+
|
48
|
+
#
|
49
|
+
:'is_inner_mode' => :'IsInnerMode',
|
50
|
+
|
51
|
+
#
|
52
|
+
:'shadow' => :'Shadow',
|
53
|
+
|
54
|
+
#
|
55
|
+
:'shape_properties' => :'ShapeProperties',
|
56
|
+
|
57
|
+
#
|
58
|
+
:'width' => :'Width',
|
59
|
+
|
60
|
+
#
|
61
|
+
:'height' => :'Height',
|
62
|
+
|
63
|
+
#
|
64
|
+
:'x' => :'X',
|
65
|
+
|
66
|
+
#
|
67
|
+
:'y' => :'Y',
|
68
|
+
|
69
|
+
#
|
70
|
+
:'link' => :'link'
|
71
|
+
|
72
|
+
}
|
73
|
+
end
|
74
|
+
|
75
|
+
# attribute type
|
76
|
+
def self.swagger_types
|
77
|
+
{
|
78
|
+
:'is_visible' => :'BOOLEAN',
|
79
|
+
:'linked_source' => :'String',
|
80
|
+
:'rotation_angle' => :'Integer',
|
81
|
+
:'text' => :'String',
|
82
|
+
:'text_direction' => :'String',
|
83
|
+
:'text_horizontal_alignment' => :'String',
|
84
|
+
:'text_vertical_alignment' => :'String',
|
85
|
+
:'area' => :'DrawingArea',
|
86
|
+
:'auto_scale_font' => :'BOOLEAN',
|
87
|
+
:'background_mode' => :'String',
|
88
|
+
:'border' => :'DrawingLine',
|
89
|
+
:'font' => :'Font',
|
90
|
+
:'is_automatic_size' => :'BOOLEAN',
|
91
|
+
:'is_inner_mode' => :'BOOLEAN',
|
92
|
+
:'shadow' => :'BOOLEAN',
|
93
|
+
:'shape_properties' => :'Array<LinkElement>',
|
94
|
+
:'width' => :'Integer',
|
95
|
+
:'height' => :'Integer',
|
96
|
+
:'x' => :'Integer',
|
97
|
+
:'y' => :'Integer',
|
98
|
+
:'link' => :'Link'
|
99
|
+
|
100
|
+
}
|
101
|
+
end
|
102
|
+
|
103
|
+
def initialize(attributes = {})
|
104
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
105
|
+
|
106
|
+
# convert string to symbol for hash key
|
107
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
108
|
+
|
109
|
+
|
110
|
+
if attributes[:'IsVisible']
|
111
|
+
self.is_visible = attributes[:'IsVisible']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes[:'LinkedSource']
|
115
|
+
self.linked_source = attributes[:'LinkedSource']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes[:'RotationAngle']
|
119
|
+
self.rotation_angle = attributes[:'RotationAngle']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes[:'Text']
|
123
|
+
self.text = attributes[:'Text']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes[:'TextDirection']
|
127
|
+
self.text_direction = attributes[:'TextDirection']
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes[:'TextHorizontalAlignment']
|
131
|
+
self.text_horizontal_alignment = attributes[:'TextHorizontalAlignment']
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes[:'TextVerticalAlignment']
|
135
|
+
self.text_vertical_alignment = attributes[:'TextVerticalAlignment']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes[:'Area']
|
139
|
+
self.area = attributes[:'Area']
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes[:'AutoScaleFont']
|
143
|
+
self.auto_scale_font = attributes[:'AutoScaleFont']
|
144
|
+
end
|
145
|
+
|
146
|
+
if attributes[:'BackgroundMode']
|
147
|
+
self.background_mode = attributes[:'BackgroundMode']
|
148
|
+
end
|
149
|
+
|
150
|
+
if attributes[:'Border']
|
151
|
+
self.border = attributes[:'Border']
|
152
|
+
end
|
153
|
+
|
154
|
+
if attributes[:'Font']
|
155
|
+
self.font = attributes[:'Font']
|
156
|
+
end
|
157
|
+
|
158
|
+
if attributes[:'IsAutomaticSize']
|
159
|
+
self.is_automatic_size = attributes[:'IsAutomaticSize']
|
160
|
+
end
|
161
|
+
|
162
|
+
if attributes[:'IsInnerMode']
|
163
|
+
self.is_inner_mode = attributes[:'IsInnerMode']
|
164
|
+
end
|
165
|
+
|
166
|
+
if attributes[:'Shadow']
|
167
|
+
self.shadow = attributes[:'Shadow']
|
168
|
+
end
|
169
|
+
|
170
|
+
if attributes[:'ShapeProperties']
|
171
|
+
if (value = attributes[:'ShapeProperties']).is_a?(Array)
|
172
|
+
self.shape_properties = value
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
if attributes[:'Width']
|
177
|
+
self.width = attributes[:'Width']
|
178
|
+
end
|
179
|
+
|
180
|
+
if attributes[:'Height']
|
181
|
+
self.height = attributes[:'Height']
|
182
|
+
end
|
183
|
+
|
184
|
+
if attributes[:'X']
|
185
|
+
self.x = attributes[:'X']
|
186
|
+
end
|
187
|
+
|
188
|
+
if attributes[:'Y']
|
189
|
+
self.y = attributes[:'Y']
|
190
|
+
end
|
191
|
+
|
192
|
+
if attributes[:'link']
|
193
|
+
self.link = attributes[:'link']
|
194
|
+
end
|
195
|
+
|
196
|
+
end
|
197
|
+
|
198
|
+
end
|
199
|
+
end
|