aspose_cells_cloud 20.7 → 20.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (311) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +46 -52
  4. data/lib/aspose_cells_cloud.rb +7 -1
  5. data/lib/aspose_cells_cloud/api/cells_api.rb +19867 -19233
  6. data/lib/aspose_cells_cloud/api_client.rb +493 -489
  7. data/lib/aspose_cells_cloud/api_error.rb +18 -8
  8. data/lib/aspose_cells_cloud/configuration.rb +4 -4
  9. data/lib/aspose_cells_cloud/models/cells_cloud_file_info.rb +230 -0
  10. data/lib/aspose_cells_cloud/models/{error.rb → cells_error.rb} +1 -1
  11. data/lib/aspose_cells_cloud/models/files_upload_result.rb +1 -1
  12. data/lib/aspose_cells_cloud/models/save_result.rb +8 -26
  13. data/lib/aspose_cells_cloud/models/sparkline.rb +226 -0
  14. data/lib/aspose_cells_cloud/models/sparkline_group.rb +434 -0
  15. data/lib/aspose_cells_cloud/models/sparkline_group_response.rb +221 -0
  16. data/lib/aspose_cells_cloud/models/sparkline_groups.rb +200 -0
  17. data/lib/aspose_cells_cloud/models/sparkline_groups_response.rb +221 -0
  18. data/lib/aspose_cells_cloud/models/split_result.rb +1 -1
  19. data/lib/aspose_cells_cloud/models/text_water_marker_request.rb +239 -239
  20. data/lib/aspose_cells_cloud/version.rb +25 -25
  21. data/spec/api/cells_api_spec.rb +2 -1
  22. data/spec/api/cells_auto_filter_api_spec.rb +2 -1
  23. data/spec/api/cells_chart_area_api_spec.rb +2 -1
  24. data/spec/api/cells_charts_api_spec.rb +2 -1
  25. data/spec/api/cells_conditional_formattings_api_spec.rb +2 -1
  26. data/spec/api/cells_hypelinks_api_spec.rb +2 -1
  27. data/spec/api/cells_list_objects_api_spec.rb +2 -1
  28. data/spec/api/cells_ole_objects_api_spec.rb +2 -1
  29. data/spec/api/cells_page_breaks_api_spec.rb +2 -1
  30. data/spec/api/cells_page_setup_api_spec.rb +2 -1
  31. data/spec/api/cells_pictures_api_spec.rb +2 -1
  32. data/spec/api/cells_pivot_tables_api_spec.rb +33 -1
  33. data/spec/api/cells_properties_api_spec.rb +2 -1
  34. data/spec/api/cells_ranges_api_spec.rb +2 -1
  35. data/spec/api/cells_save_as_api_spec.rb +2 -1
  36. data/spec/api/cells_shapes_api_spec.rb +3 -2
  37. data/spec/api/cells_simple_spec.rb +2 -1
  38. data/spec/api/cells_sparkline_group_spec.rb +43 -0
  39. data/spec/api/cells_storage_api_spec.rb +69 -68
  40. data/spec/api/cells_storage_spec.rb +3 -2
  41. data/spec/api/cells_task_api_spec.rb +2 -1
  42. data/spec/api/cells_workbook_api_spec.rb +3 -2
  43. data/spec/api/cells_worksheet_validations_api_spec.rb +2 -1
  44. data/spec/api/cells_worksheets_api_spec.rb +60 -58
  45. data/spec/spec_helper.rb +6 -3
  46. metadata +12 -297
  47. data/Gemfile +0 -7
  48. data/Rakefile +0 -8
  49. data/aspose_cells_cloud-20.2.gem +0 -0
  50. data/aspose_cells_cloud-20.4.gem +0 -0
  51. data/aspose_cells_cloud-20.6.gem +0 -0
  52. data/aspose_cells_cloud.gemspec +0 -48
  53. data/data/Book1.xlsx +0 -0
  54. data/data/ImportData.xlsx +0 -0
  55. data/data/NewCopy.xlsx +0 -0
  56. data/data/OLEDoc.docx +0 -0
  57. data/data/PivTestFile2.xlsx +0 -0
  58. data/data/ReportData.xml +0 -1
  59. data/data/TestCase.xlsx +0 -0
  60. data/data/TestImportData.xlsx +0 -0
  61. data/data/TestImportDataCSV.csv +0 -3
  62. data/data/WaterMark.png +0 -0
  63. data/data/markdowntest.md +0 -41
  64. data/data/myDocument.xlsx +0 -0
  65. data/data/word.jpg +0 -0
  66. data/docs/AboveAverage.md +0 -10
  67. data/docs/AccessTokenResponse.md +0 -15
  68. data/docs/Area.md +0 -13
  69. data/docs/AutoFilter.md +0 -11
  70. data/docs/AutoFilterResponse.md +0 -10
  71. data/docs/AutoFitterOptions.md +0 -10
  72. data/docs/AutoShape.md +0 -42
  73. data/docs/AutoShapeResponse.md +0 -10
  74. data/docs/AutoShapes.md +0 -9
  75. data/docs/AutoShapesResponse.md +0 -10
  76. data/docs/Border.md +0 -10
  77. data/docs/CalculationOptions.md +0 -11
  78. data/docs/Cell.md +0 -24
  79. data/docs/CellArea.md +0 -11
  80. data/docs/CellResponse.md +0 -10
  81. data/docs/CellValue.md +0 -12
  82. data/docs/Cells.md +0 -14
  83. data/docs/CellsApi.md +0 -14581
  84. data/docs/CellsCloudResponse.md +0 -9
  85. data/docs/CellsColor.md +0 -12
  86. data/docs/CellsDocumentProperties.md +0 -9
  87. data/docs/CellsDocumentPropertiesResponse.md +0 -10
  88. data/docs/CellsDocumentProperty.md +0 -11
  89. data/docs/CellsDocumentPropertyResponse.md +0 -10
  90. data/docs/CellsObjectOperateTaskParameter.md +0 -10
  91. data/docs/CellsResponse.md +0 -10
  92. data/docs/Chart.md +0 -51
  93. data/docs/ChartArea.md +0 -21
  94. data/docs/ChartAreaResponse.md +0 -10
  95. data/docs/ChartFrame.md +0 -21
  96. data/docs/ChartOperateParameter.md +0 -17
  97. data/docs/Charts.md +0 -9
  98. data/docs/ChartsResponse.md +0 -10
  99. data/docs/Color.md +0 -11
  100. data/docs/ColorFilter.md +0 -12
  101. data/docs/ColorFilterRequest.md +0 -10
  102. data/docs/ColorScale.md +0 -13
  103. data/docs/Column.md +0 -13
  104. data/docs/ColumnResponse.md +0 -10
  105. data/docs/Columns.md +0 -11
  106. data/docs/ColumnsResponse.md +0 -10
  107. data/docs/Comment.md +0 -19
  108. data/docs/CommentResponse.md +0 -10
  109. data/docs/Comments.md +0 -9
  110. data/docs/CommentsResponse.md +0 -10
  111. data/docs/ConditionalFormatting.md +0 -10
  112. data/docs/ConditionalFormattingIcon.md +0 -10
  113. data/docs/ConditionalFormattingResponse.md +0 -10
  114. data/docs/ConditionalFormattingValue.md +0 -10
  115. data/docs/ConditionalFormattings.md +0 -10
  116. data/docs/ConditionalFormattingsResponse.md +0 -10
  117. data/docs/ConvertTaskParameter.md +0 -10
  118. data/docs/CopyOptions.md +0 -13
  119. data/docs/CreatePivotTableRequest.md +0 -14
  120. data/docs/CustomFilter.md +0 -9
  121. data/docs/CustomParserConfig.md +0 -10
  122. data/docs/DataBar.md +0 -19
  123. data/docs/DataBarBorder.md +0 -9
  124. data/docs/DataSorter.md +0 -11
  125. data/docs/DifSaveOptions.md +0 -15
  126. data/docs/DiscUsage.md +0 -9
  127. data/docs/DynamicFilter.md +0 -10
  128. data/docs/Error.md +0 -11
  129. data/docs/ErrorDetails.md +0 -9
  130. data/docs/FileSource.md +0 -9
  131. data/docs/FileVersion.md +0 -14
  132. data/docs/FileVersions.md +0 -8
  133. data/docs/FilesList.md +0 -8
  134. data/docs/FilesUploadResult.md +0 -9
  135. data/docs/FillFormat.md +0 -13
  136. data/docs/FillFormatResponse.md +0 -10
  137. data/docs/FilterColumn.md +0 -16
  138. data/docs/Font.md +0 -17
  139. data/docs/FontSetting.md +0 -12
  140. data/docs/FormatCondition.md +0 -22
  141. data/docs/GradientFill.md +0 -11
  142. data/docs/GradientFillStop.md +0 -10
  143. data/docs/HorizontalPageBreak.md +0 -10
  144. data/docs/HorizontalPageBreakResponse.md +0 -10
  145. data/docs/HorizontalPageBreaks.md +0 -9
  146. data/docs/HorizontalPageBreaksResponse.md +0 -10
  147. data/docs/HtmlSaveOptions.md +0 -27
  148. data/docs/Hyperlink.md +0 -12
  149. data/docs/HyperlinkResponse.md +0 -10
  150. data/docs/Hyperlinks.md +0 -10
  151. data/docs/HyperlinksResponse.md +0 -10
  152. data/docs/IconFilter.md +0 -9
  153. data/docs/IconSet.md +0 -13
  154. data/docs/ImageSaveOptions.md +0 -27
  155. data/docs/ImportBatchDataOption.md +0 -12
  156. data/docs/ImportCSVDataOption.md +0 -17
  157. data/docs/ImportDataTaskParameter.md +0 -10
  158. data/docs/ImportDoubleArrayOption.md +0 -15
  159. data/docs/ImportIntArrayOption.md +0 -15
  160. data/docs/ImportOption.md +0 -11
  161. data/docs/ImportStringArrayOption.md +0 -15
  162. data/docs/Legend.md +0 -23
  163. data/docs/LegendResponse.md +0 -10
  164. data/docs/Line.md +0 -26
  165. data/docs/LineFormat.md +0 -24
  166. data/docs/LineResponse.md +0 -10
  167. data/docs/Link.md +0 -11
  168. data/docs/LinkElement.md +0 -8
  169. data/docs/ListColumn.md +0 -9
  170. data/docs/ListObject.md +0 -23
  171. data/docs/ListObjectOperateParameter.md +0 -9
  172. data/docs/ListObjectResponse.md +0 -10
  173. data/docs/ListObjects.md +0 -9
  174. data/docs/ListObjectsResponse.md +0 -10
  175. data/docs/MHtmlSaveOptions.md +0 -27
  176. data/docs/MarkdownSaveOptions.md +0 -18
  177. data/docs/MergedCell.md +0 -12
  178. data/docs/MergedCellResponse.md +0 -10
  179. data/docs/MergedCells.md +0 -10
  180. data/docs/MergedCellsResponse.md +0 -10
  181. data/docs/MultipleFilter.md +0 -7
  182. data/docs/MultipleFilters.md +0 -9
  183. data/docs/Name.md +0 -15
  184. data/docs/NameResponse.md +0 -10
  185. data/docs/Names.md +0 -10
  186. data/docs/NamesResponse.md +0 -10
  187. data/docs/NegativeBarFormat.md +0 -11
  188. data/docs/ObjectExist.md +0 -9
  189. data/docs/OdsSaveOptions.md +0 -15
  190. data/docs/OleObject.md +0 -49
  191. data/docs/OleObjectResponse.md +0 -10
  192. data/docs/OleObjects.md +0 -9
  193. data/docs/OleObjectsResponse.md +0 -10
  194. data/docs/OoxmlSaveOptions.md +0 -16
  195. data/docs/OperateObject.md +0 -9
  196. data/docs/OperateObjectPosition.md +0 -13
  197. data/docs/OperateParameter.md +0 -8
  198. data/docs/PageBreakOperateParameter.md +0 -14
  199. data/docs/PageSection.md +0 -12
  200. data/docs/PageSectionsResponse.md +0 -10
  201. data/docs/PageSetup.md +0 -42
  202. data/docs/PageSetupOperateParameter.md +0 -9
  203. data/docs/PageSetupResponse.md +0 -10
  204. data/docs/PasswordRequest.md +0 -8
  205. data/docs/PasteOptions.md +0 -11
  206. data/docs/PatternFill.md +0 -14
  207. data/docs/PdfSaveOptions.md +0 -25
  208. data/docs/PdfSecurityOptions.md +0 -17
  209. data/docs/PicFormatOption.md +0 -13
  210. data/docs/Picture.md +0 -48
  211. data/docs/PictureResponse.md +0 -10
  212. data/docs/Pictures.md +0 -9
  213. data/docs/PicturesResponse.md +0 -10
  214. data/docs/PivotField.md +0 -46
  215. data/docs/PivotFieldResponse.md +0 -10
  216. data/docs/PivotFilter.md +0 -16
  217. data/docs/PivotFilterResponse.md +0 -10
  218. data/docs/PivotFiltersResponse.md +0 -10
  219. data/docs/PivotItem.md +0 -11
  220. data/docs/PivotTable.md +0 -76
  221. data/docs/PivotTableFieldRequest.md +0 -8
  222. data/docs/PivotTableOperateParameter.md +0 -16
  223. data/docs/PivotTableResponse.md +0 -10
  224. data/docs/PivotTables.md +0 -9
  225. data/docs/PivotTablesResponse.md +0 -10
  226. data/docs/ProtectSheetParameter.md +0 -23
  227. data/docs/Range.md +0 -16
  228. data/docs/RangeCopyRequest.md +0 -11
  229. data/docs/RangeSetOutlineBorderRequest.md +0 -11
  230. data/docs/RangeSetStyleRequest.md +0 -9
  231. data/docs/RangeValueResponse.md +0 -10
  232. data/docs/Ranges.md +0 -8
  233. data/docs/RangesResponse.md +0 -10
  234. data/docs/ResultDestination.md +0 -10
  235. data/docs/Row.md +0 -15
  236. data/docs/RowResponse.md +0 -10
  237. data/docs/Rows.md +0 -11
  238. data/docs/RowsResponse.md +0 -10
  239. data/docs/SaveOptions.md +0 -15
  240. data/docs/SaveResponse.md +0 -10
  241. data/docs/SaveResult.md +0 -10
  242. data/docs/SaveResultTaskParameter.md +0 -9
  243. data/docs/ShadowEffect.md +0 -14
  244. data/docs/Shape.md +0 -42
  245. data/docs/ShapeOperateParameter.md +0 -9
  246. data/docs/ShapeResponse.md +0 -10
  247. data/docs/Shapes.md +0 -9
  248. data/docs/ShapesResponse.md +0 -10
  249. data/docs/SingleValue.md +0 -9
  250. data/docs/SingleValueResponse.md +0 -10
  251. data/docs/SmartMarkerTaskParameter.md +0 -10
  252. data/docs/SolidFill.md +0 -10
  253. data/docs/SortKey.md +0 -10
  254. data/docs/SplitResult.md +0 -8
  255. data/docs/SplitResultDocument.md +0 -9
  256. data/docs/SplitResultResponse.md +0 -10
  257. data/docs/SplitWorkbookTaskParameter.md +0 -13
  258. data/docs/SpreadsheetML2003SaveOptions.md +0 -18
  259. data/docs/StorageExist.md +0 -8
  260. data/docs/StorageFile.md +0 -12
  261. data/docs/Style.md +0 -31
  262. data/docs/StyleResponse.md +0 -10
  263. data/docs/SvgSaveOptions.md +0 -16
  264. data/docs/TaskData.md +0 -8
  265. data/docs/TaskDescription.md +0 -9
  266. data/docs/TaskParameter.md +0 -7
  267. data/docs/TextItem.md +0 -9
  268. data/docs/TextItems.md +0 -9
  269. data/docs/TextItemsResponse.md +0 -10
  270. data/docs/TextOptions.md +0 -23
  271. data/docs/TextureFill.md +0 -13
  272. data/docs/ThemeColor.md +0 -9
  273. data/docs/TilePicOption.md +0 -13
  274. data/docs/Title.md +0 -28
  275. data/docs/TitleResponse.md +0 -10
  276. data/docs/Top10.md +0 -10
  277. data/docs/Top10Filter.md +0 -11
  278. data/docs/TxtSaveOptions.md +0 -19
  279. data/docs/Validation.md +0 -24
  280. data/docs/ValidationResponse.md +0 -10
  281. data/docs/Validations.md +0 -10
  282. data/docs/ValidationsResponse.md +0 -10
  283. data/docs/ValueType.md +0 -7
  284. data/docs/VerticalPageBreak.md +0 -10
  285. data/docs/VerticalPageBreakResponse.md +0 -10
  286. data/docs/VerticalPageBreaks.md +0 -9
  287. data/docs/VerticalPageBreaksResponse.md +0 -10
  288. data/docs/Workbook.md +0 -18
  289. data/docs/WorkbookEncryptionRequest.md +0 -10
  290. data/docs/WorkbookOperateParameter.md +0 -8
  291. data/docs/WorkbookProtectionRequest.md +0 -9
  292. data/docs/WorkbookReplaceResponse.md +0 -11
  293. data/docs/WorkbookResponse.md +0 -10
  294. data/docs/WorkbookSettings.md +0 -52
  295. data/docs/WorkbookSettingsOperateParameter.md +0 -9
  296. data/docs/WorkbookSettingsResponse.md +0 -10
  297. data/docs/Worksheet.md +0 -39
  298. data/docs/WorksheetMovingRequest.md +0 -9
  299. data/docs/WorksheetReplaceResponse.md +0 -11
  300. data/docs/WorksheetResponse.md +0 -10
  301. data/docs/Worksheets.md +0 -9
  302. data/docs/WorksheetsResponse.md +0 -10
  303. data/docs/XlsSaveOptions.md +0 -15
  304. data/docs/XlsbSaveOptions.md +0 -15
  305. data/docs/XpsSaveOptions.md +0 -15
  306. data/git_push.sh +0 -55
  307. data/runTest.sh +0 -4
  308. data/spec/api/cells_autoshapes_api_spec.rb +0 -66
  309. data/spec/api/cells_one_spec.rb +0 -37
  310. data/test.pdf +0 -0
  311. data/testResult.txt +0 -15
@@ -0,0 +1,434 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ Copyright (c) 2020 Aspose.Cells Cloud
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ SOFTWARE.
19
+ --------------------------------------------------------------------------------------------------------------------
20
+
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeCellsCloud
26
+
27
+ class SparklineGroup
28
+ attr_accessor :display_hidden
29
+
30
+ attr_accessor :first_point_color
31
+
32
+ attr_accessor :high_point_color
33
+
34
+ attr_accessor :horizontal_axis_color
35
+
36
+ attr_accessor :horizontal_axis_date_range
37
+
38
+ attr_accessor :last_point_color
39
+
40
+ attr_accessor :line_weight
41
+
42
+ attr_accessor :low_point_color
43
+
44
+ attr_accessor :markers_color
45
+
46
+ attr_accessor :negative_points_color
47
+
48
+ attr_accessor :plot_empty_cells_type
49
+
50
+ attr_accessor :plot_right_to_left
51
+
52
+ attr_accessor :preset_style
53
+
54
+ attr_accessor :series_color
55
+
56
+ attr_accessor :show_first_point
57
+
58
+ attr_accessor :show_high_point
59
+
60
+ attr_accessor :show_horizontal_axis
61
+
62
+ attr_accessor :show_last_point
63
+
64
+ attr_accessor :show_low_point
65
+
66
+ attr_accessor :show_markers
67
+
68
+ attr_accessor :show_negative_points
69
+
70
+ attr_accessor :sparkline_collection
71
+
72
+ attr_accessor :type
73
+
74
+ attr_accessor :vertical_axis_max_value
75
+
76
+ attr_accessor :vertical_axis_max_value_type
77
+
78
+ attr_accessor :vertical_axis_min_value
79
+
80
+ attr_accessor :vertical_axis_min_value_type
81
+
82
+
83
+ # Attribute mapping from ruby-style variable name to JSON key.
84
+ def self.attribute_map
85
+ {
86
+ :'display_hidden' => :'DisplayHidden',
87
+ :'first_point_color' => :'FirstPointColor',
88
+ :'high_point_color' => :'HighPointColor',
89
+ :'horizontal_axis_color' => :'HorizontalAxisColor',
90
+ :'horizontal_axis_date_range' => :'HorizontalAxisDateRange',
91
+ :'last_point_color' => :'LastPointColor',
92
+ :'line_weight' => :'LineWeight',
93
+ :'low_point_color' => :'LowPointColor',
94
+ :'markers_color' => :'MarkersColor',
95
+ :'negative_points_color' => :'NegativePointsColor',
96
+ :'plot_empty_cells_type' => :'PlotEmptyCellsType',
97
+ :'plot_right_to_left' => :'PlotRightToLeft',
98
+ :'preset_style' => :'PresetStyle',
99
+ :'series_color' => :'SeriesColor',
100
+ :'show_first_point' => :'ShowFirstPoint',
101
+ :'show_high_point' => :'ShowHighPoint',
102
+ :'show_horizontal_axis' => :'ShowHorizontalAxis',
103
+ :'show_last_point' => :'ShowLastPoint',
104
+ :'show_low_point' => :'ShowLowPoint',
105
+ :'show_markers' => :'ShowMarkers',
106
+ :'show_negative_points' => :'ShowNegativePoints',
107
+ :'sparkline_collection' => :'SparklineCollection',
108
+ :'type' => :'Type',
109
+ :'vertical_axis_max_value' => :'VerticalAxisMaxValue',
110
+ :'vertical_axis_max_value_type' => :'VerticalAxisMaxValueType',
111
+ :'vertical_axis_min_value' => :'VerticalAxisMinValue',
112
+ :'vertical_axis_min_value_type' => :'VerticalAxisMinValueType'
113
+ }
114
+ end
115
+
116
+ # Attribute type mapping.
117
+ def self.swagger_types
118
+ {
119
+ :'display_hidden' => :'BOOLEAN',
120
+ :'first_point_color' => :'CellsColor',
121
+ :'high_point_color' => :'CellsColor',
122
+ :'horizontal_axis_color' => :'CellsColor',
123
+ :'horizontal_axis_date_range' => :'String',
124
+ :'last_point_color' => :'CellsColor',
125
+ :'line_weight' => :'Float',
126
+ :'low_point_color' => :'CellsColor',
127
+ :'markers_color' => :'CellsColor',
128
+ :'negative_points_color' => :'CellsColor',
129
+ :'plot_empty_cells_type' => :'String',
130
+ :'plot_right_to_left' => :'BOOLEAN',
131
+ :'preset_style' => :'String',
132
+ :'series_color' => :'CellsColor',
133
+ :'show_first_point' => :'BOOLEAN',
134
+ :'show_high_point' => :'BOOLEAN',
135
+ :'show_horizontal_axis' => :'BOOLEAN',
136
+ :'show_last_point' => :'BOOLEAN',
137
+ :'show_low_point' => :'BOOLEAN',
138
+ :'show_markers' => :'BOOLEAN',
139
+ :'show_negative_points' => :'BOOLEAN',
140
+ :'sparkline_collection' => :'Array<Sparkline>',
141
+ :'type' => :'String',
142
+ :'vertical_axis_max_value' => :'Float',
143
+ :'vertical_axis_max_value_type' => :'String',
144
+ :'vertical_axis_min_value' => :'Float',
145
+ :'vertical_axis_min_value_type' => :'String'
146
+ }
147
+ end
148
+
149
+ # Initializes the object
150
+ # @param [Hash] attributes Model attributes in the form of hash
151
+ def initialize(attributes = {})
152
+ return unless attributes.is_a?(Hash)
153
+
154
+ # convert string to symbol for hash key
155
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
156
+
157
+ if attributes.has_key?(:'DisplayHidden')
158
+ self.display_hidden = attributes[:'DisplayHidden']
159
+ end
160
+
161
+ if attributes.has_key?(:'FirstPointColor')
162
+ self.first_point_color = attributes[:'FirstPointColor']
163
+ end
164
+
165
+ if attributes.has_key?(:'HighPointColor')
166
+ self.high_point_color = attributes[:'HighPointColor']
167
+ end
168
+
169
+ if attributes.has_key?(:'HorizontalAxisColor')
170
+ self.horizontal_axis_color = attributes[:'HorizontalAxisColor']
171
+ end
172
+
173
+ if attributes.has_key?(:'HorizontalAxisDateRange')
174
+ self.horizontal_axis_date_range = attributes[:'HorizontalAxisDateRange']
175
+ end
176
+
177
+ if attributes.has_key?(:'LastPointColor')
178
+ self.last_point_color = attributes[:'LastPointColor']
179
+ end
180
+
181
+ if attributes.has_key?(:'LineWeight')
182
+ self.line_weight = attributes[:'LineWeight']
183
+ end
184
+
185
+ if attributes.has_key?(:'LowPointColor')
186
+ self.low_point_color = attributes[:'LowPointColor']
187
+ end
188
+
189
+ if attributes.has_key?(:'MarkersColor')
190
+ self.markers_color = attributes[:'MarkersColor']
191
+ end
192
+
193
+ if attributes.has_key?(:'NegativePointsColor')
194
+ self.negative_points_color = attributes[:'NegativePointsColor']
195
+ end
196
+
197
+ if attributes.has_key?(:'PlotEmptyCellsType')
198
+ self.plot_empty_cells_type = attributes[:'PlotEmptyCellsType']
199
+ end
200
+
201
+ if attributes.has_key?(:'PlotRightToLeft')
202
+ self.plot_right_to_left = attributes[:'PlotRightToLeft']
203
+ end
204
+
205
+ if attributes.has_key?(:'PresetStyle')
206
+ self.preset_style = attributes[:'PresetStyle']
207
+ end
208
+
209
+ if attributes.has_key?(:'SeriesColor')
210
+ self.series_color = attributes[:'SeriesColor']
211
+ end
212
+
213
+ if attributes.has_key?(:'ShowFirstPoint')
214
+ self.show_first_point = attributes[:'ShowFirstPoint']
215
+ end
216
+
217
+ if attributes.has_key?(:'ShowHighPoint')
218
+ self.show_high_point = attributes[:'ShowHighPoint']
219
+ end
220
+
221
+ if attributes.has_key?(:'ShowHorizontalAxis')
222
+ self.show_horizontal_axis = attributes[:'ShowHorizontalAxis']
223
+ end
224
+
225
+ if attributes.has_key?(:'ShowLastPoint')
226
+ self.show_last_point = attributes[:'ShowLastPoint']
227
+ end
228
+
229
+ if attributes.has_key?(:'ShowLowPoint')
230
+ self.show_low_point = attributes[:'ShowLowPoint']
231
+ end
232
+
233
+ if attributes.has_key?(:'ShowMarkers')
234
+ self.show_markers = attributes[:'ShowMarkers']
235
+ end
236
+
237
+ if attributes.has_key?(:'ShowNegativePoints')
238
+ self.show_negative_points = attributes[:'ShowNegativePoints']
239
+ end
240
+
241
+ if attributes.has_key?(:'SparklineCollection')
242
+ if (value = attributes[:'SparklineCollection']).is_a?(Array)
243
+ self.sparkline_collection = value
244
+ end
245
+ end
246
+
247
+ if attributes.has_key?(:'Type')
248
+ self.type = attributes[:'Type']
249
+ end
250
+
251
+ if attributes.has_key?(:'VerticalAxisMaxValue')
252
+ self.vertical_axis_max_value = attributes[:'VerticalAxisMaxValue']
253
+ end
254
+
255
+ if attributes.has_key?(:'VerticalAxisMaxValueType')
256
+ self.vertical_axis_max_value_type = attributes[:'VerticalAxisMaxValueType']
257
+ end
258
+
259
+ if attributes.has_key?(:'VerticalAxisMinValue')
260
+ self.vertical_axis_min_value = attributes[:'VerticalAxisMinValue']
261
+ end
262
+
263
+ if attributes.has_key?(:'VerticalAxisMinValueType')
264
+ self.vertical_axis_min_value_type = attributes[:'VerticalAxisMinValueType']
265
+ end
266
+
267
+ end
268
+
269
+ # Show invalid properties with the reasons. Usually used together with valid?
270
+ # @return Array for valid properies with the reasons
271
+ def list_invalid_properties
272
+ invalid_properties = Array.new
273
+ return invalid_properties
274
+ end
275
+
276
+ # Check to see if the all the properties in the model are valid
277
+ # @return true if the model is valid
278
+ def valid?
279
+ return true
280
+ end
281
+
282
+ # Checks equality by comparing each attribute.
283
+ # @param [Object] Object to be compared
284
+ def ==(o)
285
+ return true if self.equal?(o)
286
+ self.class == o.class &&
287
+ display_hidden == o.display_hidden &&
288
+ first_point_color == o.first_point_color &&
289
+ high_point_color == o.high_point_color &&
290
+ horizontal_axis_color == o.horizontal_axis_color &&
291
+ horizontal_axis_date_range == o.horizontal_axis_date_range &&
292
+ last_point_color == o.last_point_color &&
293
+ line_weight == o.line_weight &&
294
+ low_point_color == o.low_point_color &&
295
+ markers_color == o.markers_color &&
296
+ negative_points_color == o.negative_points_color &&
297
+ plot_empty_cells_type == o.plot_empty_cells_type &&
298
+ plot_right_to_left == o.plot_right_to_left &&
299
+ preset_style == o.preset_style &&
300
+ series_color == o.series_color &&
301
+ show_first_point == o.show_first_point &&
302
+ show_high_point == o.show_high_point &&
303
+ show_horizontal_axis == o.show_horizontal_axis &&
304
+ show_last_point == o.show_last_point &&
305
+ show_low_point == o.show_low_point &&
306
+ show_markers == o.show_markers &&
307
+ show_negative_points == o.show_negative_points &&
308
+ sparkline_collection == o.sparkline_collection &&
309
+ type == o.type &&
310
+ vertical_axis_max_value == o.vertical_axis_max_value &&
311
+ vertical_axis_max_value_type == o.vertical_axis_max_value_type &&
312
+ vertical_axis_min_value == o.vertical_axis_min_value &&
313
+ vertical_axis_min_value_type == o.vertical_axis_min_value_type
314
+ end
315
+
316
+ # @see the `==` method
317
+ # @param [Object] Object to be compared
318
+ def eql?(o)
319
+ self == o
320
+ end
321
+
322
+ # Calculates hash code according to all attributes.
323
+ # @return [Fixnum] Hash code
324
+ def hash
325
+ [display_hidden, first_point_color, high_point_color, horizontal_axis_color, horizontal_axis_date_range, last_point_color, line_weight, low_point_color, markers_color, negative_points_color, plot_empty_cells_type, plot_right_to_left, preset_style, series_color, show_first_point, show_high_point, show_horizontal_axis, show_last_point, show_low_point, show_markers, show_negative_points, sparkline_collection, type, vertical_axis_max_value, vertical_axis_max_value_type, vertical_axis_min_value, vertical_axis_min_value_type].hash
326
+ end
327
+
328
+ # Builds the object from hash
329
+ # @param [Hash] attributes Model attributes in the form of hash
330
+ # @return [Object] Returns the model itself
331
+ def build_from_hash(attributes)
332
+ return nil unless attributes.is_a?(Hash)
333
+ self.class.swagger_types.each_pair do |key, type|
334
+ if type =~ /\AArray<(.*)>/i
335
+ # check to ensure the input is an array given that the the attribute
336
+ # is documented as an array but the input is not
337
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
338
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
339
+ end
340
+ elsif !attributes[self.class.attribute_map[key]].nil?
341
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
342
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
343
+ end
344
+
345
+ self
346
+ end
347
+
348
+ # Deserializes the data based on type
349
+ # @param string type Data type
350
+ # @param string value Value to be deserialized
351
+ # @return [Object] Deserialized data
352
+ def _deserialize(type, value)
353
+ case type.to_sym
354
+ when :DateTime
355
+ DateTime.parse(value)
356
+ when :Date
357
+ Date.parse(value)
358
+ when :String
359
+ value.to_s
360
+ when :Integer
361
+ value.to_i
362
+ when :Float
363
+ value.to_f
364
+ when :BOOLEAN
365
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
366
+ true
367
+ else
368
+ false
369
+ end
370
+ when :Object
371
+ # generic object (usually a Hash), return directly
372
+ value
373
+ when /\AArray<(?<inner_type>.+)>\z/
374
+ inner_type = Regexp.last_match[:inner_type]
375
+ value.map { |v| _deserialize(inner_type, v) }
376
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
377
+ k_type = Regexp.last_match[:k_type]
378
+ v_type = Regexp.last_match[:v_type]
379
+ {}.tap do |hash|
380
+ value.each do |k, v|
381
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
382
+ end
383
+ end
384
+ else # model
385
+ temp_model = AsposeCellsCloud.const_get(type).new
386
+ temp_model.build_from_hash(value)
387
+ end
388
+ end
389
+
390
+ # Returns the string representation of the object
391
+ # @return [String] String presentation of the object
392
+ def to_s
393
+ to_hash.to_s
394
+ end
395
+
396
+ # to_body is an alias to to_hash (backward compatibility)
397
+ # @return [Hash] Returns the object in the form of hash
398
+ def to_body
399
+ to_hash
400
+ end
401
+
402
+ # Returns the object in the form of hash
403
+ # @return [Hash] Returns the object in the form of hash
404
+ def to_hash
405
+ hash = {}
406
+ self.class.attribute_map.each_pair do |attr, param|
407
+ value = self.send(attr)
408
+ next if value.nil?
409
+ hash[param] = _to_hash(value)
410
+ end
411
+ hash
412
+ end
413
+
414
+ # Outputs non-array value in the form of hash
415
+ # For object, use to_hash. Otherwise, just return the value
416
+ # @param [Object] value Any valid value
417
+ # @return [Hash] Returns the value in the form of hash
418
+ def _to_hash(value)
419
+ if value.is_a?(Array)
420
+ value.compact.map{ |v| _to_hash(v) }
421
+ elsif value.is_a?(Hash)
422
+ {}.tap do |hash|
423
+ value.each { |k, v| hash[k] = _to_hash(v) }
424
+ end
425
+ elsif value.respond_to? :to_hash
426
+ value.to_hash
427
+ else
428
+ value
429
+ end
430
+ end
431
+
432
+ end
433
+
434
+ end
@@ -0,0 +1,221 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ Copyright (c) 2020 Aspose.Cells Cloud
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ SOFTWARE.
19
+ --------------------------------------------------------------------------------------------------------------------
20
+
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeCellsCloud
26
+
27
+ class SparklineGroupResponse
28
+ attr_accessor :status
29
+
30
+ attr_accessor :code
31
+
32
+ attr_accessor :sparkline_group
33
+
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'status' => :'Status',
39
+ :'code' => :'Code',
40
+ :'sparkline_group' => :'SparklineGroup'
41
+ }
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.swagger_types
46
+ {
47
+ :'status' => :'String',
48
+ :'code' => :'Integer',
49
+ :'sparkline_group' => :'SparklineGroup'
50
+ }
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ return unless attributes.is_a?(Hash)
57
+
58
+ # convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
60
+
61
+ if attributes.has_key?(:'Status')
62
+ self.status = attributes[:'Status']
63
+ end
64
+
65
+ if attributes.has_key?(:'Code')
66
+ self.code = attributes[:'Code']
67
+ end
68
+
69
+ if attributes.has_key?(:'SparklineGroup')
70
+ self.sparkline_group = attributes[:'SparklineGroup']
71
+ end
72
+
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properies with the reasons
77
+ def list_invalid_properties
78
+ invalid_properties = Array.new
79
+ if @code.nil?
80
+ invalid_properties.push("invalid value for 'code', code cannot be nil.")
81
+ end
82
+
83
+ return invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ return false if @code.nil?
90
+ return true
91
+ end
92
+
93
+ # Checks equality by comparing each attribute.
94
+ # @param [Object] Object to be compared
95
+ def ==(o)
96
+ return true if self.equal?(o)
97
+ self.class == o.class &&
98
+ status == o.status &&
99
+ code == o.code &&
100
+ sparkline_group == o.sparkline_group
101
+ end
102
+
103
+ # @see the `==` method
104
+ # @param [Object] Object to be compared
105
+ def eql?(o)
106
+ self == o
107
+ end
108
+
109
+ # Calculates hash code according to all attributes.
110
+ # @return [Fixnum] Hash code
111
+ def hash
112
+ [status, code, sparkline_group].hash
113
+ end
114
+
115
+ # Builds the object from hash
116
+ # @param [Hash] attributes Model attributes in the form of hash
117
+ # @return [Object] Returns the model itself
118
+ def build_from_hash(attributes)
119
+ return nil unless attributes.is_a?(Hash)
120
+ self.class.swagger_types.each_pair do |key, type|
121
+ if type =~ /\AArray<(.*)>/i
122
+ # check to ensure the input is an array given that the the attribute
123
+ # is documented as an array but the input is not
124
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
125
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
126
+ end
127
+ elsif !attributes[self.class.attribute_map[key]].nil?
128
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
129
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
130
+ end
131
+
132
+ self
133
+ end
134
+
135
+ # Deserializes the data based on type
136
+ # @param string type Data type
137
+ # @param string value Value to be deserialized
138
+ # @return [Object] Deserialized data
139
+ def _deserialize(type, value)
140
+ case type.to_sym
141
+ when :DateTime
142
+ DateTime.parse(value)
143
+ when :Date
144
+ Date.parse(value)
145
+ when :String
146
+ value.to_s
147
+ when :Integer
148
+ value.to_i
149
+ when :Float
150
+ value.to_f
151
+ when :BOOLEAN
152
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
153
+ true
154
+ else
155
+ false
156
+ end
157
+ when :Object
158
+ # generic object (usually a Hash), return directly
159
+ value
160
+ when /\AArray<(?<inner_type>.+)>\z/
161
+ inner_type = Regexp.last_match[:inner_type]
162
+ value.map { |v| _deserialize(inner_type, v) }
163
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
164
+ k_type = Regexp.last_match[:k_type]
165
+ v_type = Regexp.last_match[:v_type]
166
+ {}.tap do |hash|
167
+ value.each do |k, v|
168
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
169
+ end
170
+ end
171
+ else # model
172
+ temp_model = AsposeCellsCloud.const_get(type).new
173
+ temp_model.build_from_hash(value)
174
+ end
175
+ end
176
+
177
+ # Returns the string representation of the object
178
+ # @return [String] String presentation of the object
179
+ def to_s
180
+ to_hash.to_s
181
+ end
182
+
183
+ # to_body is an alias to to_hash (backward compatibility)
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_body
186
+ to_hash
187
+ end
188
+
189
+ # Returns the object in the form of hash
190
+ # @return [Hash] Returns the object in the form of hash
191
+ def to_hash
192
+ hash = {}
193
+ self.class.attribute_map.each_pair do |attr, param|
194
+ value = self.send(attr)
195
+ next if value.nil?
196
+ hash[param] = _to_hash(value)
197
+ end
198
+ hash
199
+ end
200
+
201
+ # Outputs non-array value in the form of hash
202
+ # For object, use to_hash. Otherwise, just return the value
203
+ # @param [Object] value Any valid value
204
+ # @return [Hash] Returns the value in the form of hash
205
+ def _to_hash(value)
206
+ if value.is_a?(Array)
207
+ value.compact.map{ |v| _to_hash(v) }
208
+ elsif value.is_a?(Hash)
209
+ {}.tap do |hash|
210
+ value.each { |k, v| hash[k] = _to_hash(v) }
211
+ end
212
+ elsif value.respond_to? :to_hash
213
+ value.to_hash
214
+ else
215
+ value
216
+ end
217
+ end
218
+
219
+ end
220
+
221
+ end